org.jscience.architecture.lift
Class InOutput

java.lang.Object
  extended by org.jscience.architecture.lift.InOutput

public class InOutput
extends java.lang.Object

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

InOutput

public InOutput(int Floor,
                int MaxFloor)
Creates a new InOutput on the Floorth floor with support up to MaxFloor floors.

Method Detail

getMaxFloor

public int getMaxFloor()
Returns the maximum floor of this InOutput

Returns:
DOCUMENT ME!

getFloor

public int getFloor()
Returns the floor of this InOutput. In other words, this InOutput is on the getFloor()th floor.

Returns:
DOCUMENT ME!

getSignal

public 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.

Parameters:
Level - DOCUMENT ME!
Returns:
DOCUMENT ME!

getUp

public boolean getUp()
Gets the up attribute of the InOutput object

Returns:
The up value

getDown

public boolean getDown()
Gets the down attribute of the InOutput object

Returns:
The down value

getSignals

public boolean[] getSignals()
Gets the signals attribute of the InOutput object

Returns:
The signals value

setSignal

public void setSignal(int Level,
                      boolean Value)
Sets the signal attribute of the InOutput object

Parameters:
Level - The new signal value
Value - The new signal value