(self, evt)
Add a new event to the queue; events outside the simulation time bounds will be ignored

        :param evt: an Event object or subclass
Add a new event to the queue; events outside the simulation time bounds will be ignored
Add a new event to the queue ; events outside the simulation time bounds will be ignored
def add_event(self, evt):
        """ Add a new event to the queue; events outside the simulation time bounds will be ignored

        :param evt: an Event object or subclass
        """
        if evt.time >= self.end_time:
            logger.info(f"Adding event after simulation end time ({evt.time}); event ignored")
            return
        elif evt.time < self.current_time:
            logger.info(f"Adding event before self.current_time ({evt.time}); event ignored")
            return

        heappush(self.event_queue, evt)
def add_event ( self , evt ) : if evt . time >= self . end_time : logger . info ( f"Adding event after simulation end time ({evt.time}); event ignored" ) return elif evt . time < self . current_time : logger . info ( f"Adding event before self.current_time ({evt.time}); event ignored" ) return heappush ( self . event_queue , evt )