|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.architecture.lift.InOutput
public class InOutput
This file is licensed under the GNU Public Licens (GPL).
This is a fundamental class that is used as Passenger to CA Inputs (call panels and command
panels) and as CA to Passenger Outputs (indicators). It supports both the two-button model (UP
and DOWN) and the destination-call model (a button for each floor).
| Constructor Summary | |
|---|---|
InOutput(int Floor,
int MaxFloor)
Creates a new InOutput on the Floorth floor with support
up to MaxFloor floors. |
|
| Method Summary | |
|---|---|
boolean |
getDown()
Gets the down attribute of the InOutput object |
int |
getFloor()
Returns the floor of this InOutput. |
int |
getMaxFloor()
Returns the maximum floor of this InOutput |
boolean |
getSignal(int Level)
Returns true if and only if the Levelth signal has been
activated in the past (via setSignal(int, boolean)) and had not been
deactiveted since. |
boolean[] |
getSignals()
Gets the signals attribute of the InOutput object |
boolean |
getUp()
Gets the up attribute of the InOutput object |
void |
setSignal(int Level,
boolean Value)
Sets the signal attribute of the InOutput object |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InOutput(int Floor,
int MaxFloor)
InOutput on the Floorth floor with support
up to MaxFloor floors.
| Method Detail |
|---|
public int getMaxFloor()
InOutput
public int getFloor()
InOutput. In other words, this
InOutput is on the getFloor()th floor.
public boolean getSignal(int Level)
Levelth signal has been
activated in the past (via setSignal(int, boolean)) and had not been
deactiveted since.
Level - DOCUMENT ME!
public boolean getUp()
public boolean getDown()
public boolean[] getSignals()
public void setSignal(int Level,
boolean Value)
Level - The new signal valueValue - The new signal value
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||