Data Science, Product Analytics, Simulation, Deep Dives, Programming.
self._timeline.get_next_item() # returns free agent if we have one def get_free_agent(self, customer_request): for agent in self.agents: if agent.is_ready_for_task(self.current_time): return agent # finds and processes the next event def process_next_event(self): event = self.get_next_event() if