m865.simulation
Class StartTaskEvent
java.lang.Object
m865.simulation.Event
m865.simulation.DepartmentStoreEvent
m865.simulation.StartTaskEvent
- All Implemented Interfaces:
- java.lang.Comparable, Prioritizeable
public class StartTaskEvent
- extends DepartmentStoreEvent
The StartTastEvent: This event is created and added to the queue, fired at
the appropriate time. In the StartTastEvent, we update a Passenger's
timing records, and make a decision, either scheduling a PressButtonEvent
or sending the Passenger to the Statistician.
Method Summary |
void |
fire()
Here we update the passengers time keeping information. |
java.lang.String |
toString()
A simple toString() method for debugging |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
StartTaskEvent
public StartTaskEvent(java.lang.Integer time,
DepartmentStore store,
Passenger p,
int floorNum)
- Constructor for objects of class StartTaskEvent
- Parameters:
pass
- The passenger for which this StartEventTask takes
fire
public void fire()
- Here we update the passengers time keeping information. We then make
the decision to schedule a new PressButtonEvent or to send the
passenger to the statistician.
- Specified by:
fire
in class Event
toString
public java.lang.String toString()
- A simple toString() method for debugging
- Overrides:
toString
in class Event
- Returns:
- a string identifying this event.