def act(self, entity, data=None): if (self.logs): print(self.name + ": Dequeued to " + data.name + " at Tick:" + str(self.simulation.tick)) Actor.leave(self, entity) data.enter(entity)
def act(self, entity, data=None): if (self.logs): print(self.name + ": Disposed Entity at Tick:" + str(self.simulation.tick)) entity.dispose(self.simulation.tick) if (self.deleteentityfrommemory): Actor.leave(self, entity) del entity
def act(self, entity, data=None): if (self.logs): print(self.name + ": Disposed Entity at Tick:" + str(self.simulation.tick)) entity.dispose(self.simulation.tick) if (self.deleteentityfrommemory): Actor.leave(self, entity) del entity
def enddelay(self, data): if (self.logs): print(self.name + ": Delay ended at Tick:" + str(self.simulation.tick)) if (self.maxentities != 0 and self.maxentities > len(self.entities) - 1): self.accepts_new = True Actor.leave(self, data) self.destination.enter(data)
def enddelay(self, data): if (self.logs): print(self.name + ": Delay ended at Tick:" + str(self.simulation.tick)) if (self.maxentities != 0 and self.maxentities > len(self.entities) - 1): self.accepts_new = True Actor.leave(self, data) self.destination.enter(data)
def act(self, entity): Actor.leave(self, entity) nextactor = self.branchactors[self.branchfunction(entity)] nextactor.enter(entity)
def act(self, entity): Actor.leave(self, entity) nextactor = self.branchactors[self.branchfunction(entity)] nextactor.enter(entity)
def act(self, entity, data=None): if (self.logs): print(self.name + ": Dequeued to " + data.name + " at Tick:" + str(self.simulation.tick)) Actor.leave(self, entity) data.enter(entity)
def act(self, entity, data=None): Actor.leave(self, entity) data.enter(entity)
def act(self, entity, data=None): Actor.leave(self, entity) data.enter(entity)
def act(self, entity, data=None): function(entity) Actor.leave(self, entity) self.destination.enter(entity)