m865.simulation
Class StartTaskEvent

java.lang.Object
  extended by m865.simulation.Event
      extended by m865.simulation.DepartmentStoreEvent
          extended by 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.


Field Summary
 
Fields inherited from class m865.simulation.DepartmentStoreEvent
departmentStore
 
Fields inherited from class m865.simulation.Event
firingTime
 
Constructor Summary
StartTaskEvent(java.lang.Integer time, DepartmentStore store, Passenger p, int floorNum)
          Constructor for objects of class StartTaskEvent
 
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 m865.simulation.Event
adjustPriority, compareTo, getFiringTime, setFiringTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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
Method Detail

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.