It's hard not toe be affectedby such an incident. Even though you came out alright I'm sure you felt (and will be feeling) some residual hate/resentment/fear from what's happened and that's ok and quite normal. I was attacked on the bus once (a crazy guy who started shouting obsceneties to myself and my wife) I managed to take him down but I felt all to cautious (as I wasn't sure how the police would take the incident) and left myself open had he been carrying a knife or a gun. Even though I had "won" the fight and the guy was taken by the police, for weeks I just felt like my personal space was violated and struggled to not keep trying to defend that space.
The key is to (slowly) be able to let go of those feelings and make sure you don't transfer them to another person cause otehrwise you'll end up as a very bitter person who just seems to be getting into fights alot.