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