org.intranet.elevator.model
Class DoorSensor.State

java.lang.Object
  extended byorg.intranet.elevator.model.DoorSensor.State
Enclosing class:
DoorSensor

public static class DoorSensor.State
extends java.lang.Object


Field Summary
static DoorSensor.State CLEAR
          The sensor is unobstructed and the door is available to be closed.
private  java.lang.String name
           
static DoorSensor.State OBSTRUCTED
          Someone is obstructing the way.
static DoorSensor.State UNOBSTRUCTED
          There is noone in the way of the door, and after a timeout the state will change to CLEAR unless another obstruct() occurs.
 
Constructor Summary
private DoorSensor.State(java.lang.String state)
           
 
Method Summary
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

private java.lang.String name

CLEAR

public static final DoorSensor.State CLEAR
The sensor is unobstructed and the door is available to be closed. The only way out of this state is to obstruct().


OBSTRUCTED

public static final DoorSensor.State OBSTRUCTED
Someone is obstructing the way. The door cannot be closed. The only way out of this state is to unobstruct().


UNOBSTRUCTED

public static final DoorSensor.State UNOBSTRUCTED
There is noone in the way of the door, and after a timeout the state will change to CLEAR unless another obstruct() occurs.

Constructor Detail

DoorSensor.State

private DoorSensor.State(java.lang.String state)
Method Detail

toString

public java.lang.String toString()