// Complete the service of an entity by removing it from the calendar. // Nothing more should happen to the entity. public override void ProcessEvent() { RemoveSelfFromCalendar(); // Set the entity exit system time to the current time. EventSimulation.CompleteService(EventEntity); EventEntity.ExitTimeSystem = EventSimulation.CurrentTime; }
// Add the entity to the queue. public override void ProcessEvent() { RemoveSelfFromCalendar(); // Set the entity queue start time for the entity to the current time. EventEntity.StartTimeQueue = EventSimulation.CurrentTime; // Add the entity to the queue. EventSimulation.AddEntityToQueue(EventEntity); }
public override void ProcessEvent() { EventSimulation.EndSimulation(); }