|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--edu.lmu.liftor.Elevator.Landing
A part of a floor that an Elevator may interact with.
| Field Summary | |
Floor |
floor
The floor that this landing is on. |
| Constructor Summary | |
Elevator.Landing(Floor f)
Construct a new landing on the given floor. |
|
| Method Summary | |
void |
addElevator(Elevator e)
Add an elevator to this landing. |
boolean |
boardElevator(Elevator e,
Person v)
Attempt to board the elevator. |
void |
elevatorClose(Elevator e)
The given elevator is trying to revoke boarding on this landing. |
void |
elevatorOpen(Elevator e)
The given elevator is offering boarding on this landing. |
int |
getDownWaiters()
|
Floor |
getFloor()
|
int |
getUpWaiters()
|
boolean |
leaveElevator(Elevator e,
Person v)
Attempt to leave the elevator. |
void |
notifyPassengersOfArrival(Elevator e)
The given elevator has arrived at this landing. |
java.lang.String |
toString()
|
Elevator |
waitForDownElevator()
Wait, indefinitely, for a down elevator to arrive at this floor. |
Elevator |
waitForUpElevator()
Wait, indefinitely, for an up elevator to arrive at this floor. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public final Floor floor
| Constructor Detail |
public Elevator.Landing(Floor f)
| Method Detail |
public Floor getFloor()
public void notifyPassengersOfArrival(Elevator e)
public Elevator waitForDownElevator()
public Elevator waitForUpElevator()
public int getUpWaiters()
public int getDownWaiters()
public boolean leaveElevator(Elevator e,
Person v)
public boolean boardElevator(Elevator e,
Person v)
public void elevatorOpen(Elevator e)
public void elevatorClose(Elevator e)
public void addElevator(Elevator e)
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||