Class DepartureEvent

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

public class DepartureEvent
extends AbstractEvent

Class for customer departure events. Departure events have priority Event.DEPARTURE_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
DepartureEvent(int time)
          Create a customer departure event.
 
Method Summary
 void process()
          Process a departure 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

DepartureEvent

public DepartureEvent(int time)
Create a customer departure event.

Parameters:
time - The clock time when the departure will occur
Method Detail

process

public void process()
Process a departure event. This occurs when customer is finished with the server.