- Enclosing class:
- public static class DoorSensor.State
- extends java.lang.Object
|Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
private java.lang.String name
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().
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().
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.
private DoorSensor.State(java.lang.String state)
public java.lang.String toString()