m865.simulation
Class PassengerArrivalEvent
java.lang.Object
m865.simulation.Event
m865.simulation.DepartmentStoreEvent
m865.simulation.PassengerArrivalEvent
- All Implemented Interfaces:
- java.lang.Comparable, Prioritizeable
public class PassengerArrivalEvent
- extends DepartmentStoreEvent
When a passenger arrives, they are immediately sent to the PushButtonEvent.
Method Summary |
void |
fire()
This method schedules a PushButtonEvent. |
java.lang.String |
toString()
Simple to string method to help with debugging. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
passenger
protected Passenger passenger
- the passenger that just arrived
PassengerArrivalEvent
public PassengerArrivalEvent(java.lang.Integer arrivalTime,
DepartmentStore store,
Passenger p)
- Constructor for objects of class PassengerArrivalEvent
- Parameters:
arrivaltime
- store
- p
- The passenger.
fire
public void fire()
- This method schedules a PushButtonEvent.
- Specified by:
fire
in class Event
toString
public java.lang.String toString()
- Simple to string method to help with debugging.
- Overrides:
toString
in class Event
- Returns:
- a string identifying this event.