Adds an IEvent event to this command set.
        
        :param event: an event instance to be added

def add_event(self, event):
        """
        Adds an IEvent event to this command set.
        
        :param event: an event instance to be added
        """
        self._events.append(event)
        self._events_by_name[event.get_name] = event