Class SimulationEndEvent

java.lang.Object
  extended by AbstractEvent
      extended by SimulationEndEvent
All Implemented Interfaces:
Event, java.lang.Comparable<Event>

public class SimulationEndEvent
extends AbstractEvent

Class for simulation termination events. SimulationEnd events have priority Event.SIMULATIONEND_PRIORITY, where a higher value is a higher priority. Priority is used as the tiebreaker when two events are scheduled for the same time.
COMP 2100
Project 3
October 2014


Field Summary
 
Fields inherited from interface Event
ARRIVAL_PRIORITY, DEPARTURE_PRIORITY, SIMULATIONEND_PRIORITY, SIMULATIONREPORT_PRIORITY
 
Constructor Summary
SimulationEndEvent(int time)
          Create a simulation end event.
 
Method Summary
 void process()
          Process a simulation end event.
 
Methods inherited from class AbstractEvent
compareTo, getPriority, getTime, setPriority, setTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimulationEndEvent

public SimulationEndEvent(int time)
Create a simulation end event.

Parameters:
time - The clock time when the simulation will terminate.
Method Detail

process

public void process()
Process a simulation end event.