|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectm865.simulation.Event
m865.simulation.DepartmentStoreEvent
m865.simulation.OffLoadEvent
public class OffLoadEvent
OffLoadEvent will remove passengers from the elevator and have them begin their task on a given floor
Field Summary | |
---|---|
protected Elevator |
elevator
The elevator |
protected int |
now
The time each passenger disembarks |
Fields inherited from class m865.simulation.DepartmentStoreEvent |
---|
departmentStore |
Fields inherited from class m865.simulation.Event |
---|
firingTime |
Constructor Summary | |
---|---|
OffLoadEvent(java.lang.Integer time,
DepartmentStore ds,
Elevator elevator)
Constructor for objects of class OffLoadEvent |
Method Summary | |
---|---|
void |
fire()
Determines how many and which passengers to remove. |
java.lang.String |
toString()
The toString method |
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 |
Field Detail |
---|
protected Elevator elevator
protected int now
Constructor Detail |
---|
public OffLoadEvent(java.lang.Integer time, DepartmentStore ds, Elevator elevator)
Method Detail |
---|
public void fire()
fire
in class Event
public java.lang.String toString()
toString
in class Event
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |