code: def apply(self, sim_time):
          
          if not self.n:
              return
  
          # skip if already applied
          if self._last_time != sim_time:
              self._last_time = sim_time
          else:
              return
docs: Apply the event and
          :param sim_time:
          :return: