|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ElevatorForUsers
The interface offered by the elevator to the users
(see ElevatorSpecification
)
Method Summary | |
---|---|
boolean |
downPressedAtFloor(int floor)
Permits elevator users to see if a request to go down has been made at a specified floor |
boolean |
floorPressedInElevator(int floor)
Permits elevator users inside the elevator to see if there is a request to a particular floor |
void |
pressDown(int floor)
Permits elevator users to request elevator to take them down |
void |
pressFloorInElevator(int floor)
Permits elevator users inside the elevator to request elevator to take them to a particular floor |
void |
pressUp(int floor)
Permits elevator users to request elevator to take them up |
boolean |
upPressedAtFloor(int floor)
Permits elevator users to see if a request to go up has been made at a specified floor |
Method Detail |
---|
boolean downPressedAtFloor(int floor) throws java.lang.IllegalArgumentException
floor
- specifies the floor at which the request is being checked
java.lang.IllegalArgumentException
- if the floor is not valid (from 1.. NUMBER_OF_FLOORS-1)boolean floorPressedInElevator(int floor) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
- if the number of floors specified is not in rangevoid pressDown(int floor) throws java.lang.IllegalArgumentException
floor
- specifies the floor at which the down request is made
java.lang.IllegalArgumentException
- if the floor is not valid (from 1.. NUMBER_OF_FLOORS-1)void pressFloorInElevator(int floor) throws java.lang.IllegalArgumentException
floor
-
java.lang.IllegalArgumentException
- if the number of floors specified is not in rangevoid pressUp(int floor) throws java.lang.IllegalArgumentException
floor
- specifies the floor at which the up request is made
java.lang.IllegalArgumentException
- if the floor is not valid (from 0.. NUMBER_OF_FLOORS-2)boolean upPressedAtFloor(int floor) throws java.lang.IllegalArgumentException
floor
- specifies the floor at which the request is being checked
java.lang.IllegalArgumentException
- if the floor is not valid (from 0.. NUMBER_OF_FLOORS-2)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |