示例#1
0
 // 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;
 }
示例#2
0
 // 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);
 }
示例#3
0
 public override void ProcessEvent()
 {
     EventSimulation.EndSimulation();
 }