|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectm865.simulation.ButtonSystem
public class ButtonSystem
Maintains the status of the buttons on each floor. The status of each button can be queried, set/reset.
Constructor Summary | |
---|---|
ButtonSystem(DepartmentStore store)
Constructor for objects of class ButtonSystem |
Method Summary | |
---|---|
boolean |
getButtonStatus(int floor,
int direction)
Gets the status of a button at a floor |
void |
resetButton(int floor,
int direction)
Resets(Removes) "Press" status for a button at a floor |
void |
setButton(int floor,
int direction)
Sets "Press" status for a button at a floor |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ButtonSystem(DepartmentStore store)
Method Detail |
---|
public void setButton(int floor, int direction)
floor
- Floor number (starts with 1)direction
- Up Button or Down Button (0 -> Up, 1 -> Down)public void resetButton(int floor, int direction)
floor
- Floor number (starts with 1)direction
- Up Button or Down Button (0 -> Up, 1 -> Down)public boolean getButtonStatus(int floor, int direction)
floor
- Floor number (starts with 1)direction
- Up Button or Down Button (0 -> Up, 1 -> Down)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |