BooleanControl function provides a boolean control support. The
eventable function state is accessible with getData() getter and
setData(boolean) setter. The state can be reversed with
inverse() method, can be set to true value with
setTrue() method and can be set to false value with
setFalse() method.
The control type can be:
Types#LIGHTTypes#DOORTypes#WINDOWTypes#POWERTypesBooleanData
| Modifier and Type | Field and Description |
|---|---|
| public static final String | OPERATION_INVERSE
Specifies the inverse operation name. |
| public static final String | OPERATION_SET_FALSE
Specifies the operation name, which sets the control state to
|
| public static final String | OPERATION_SET_TRUE
Specifies the operation name, which sets the control state to
|
| public static final String | PROPERTY_DATA
Specifies the state property name. |
| Modifier and Type | Method and Description |
|---|---|
| public BooleanData | |
| public void | |
| public void | |
| public void | |
| public void |
| OPERATION_INVERSE | back to summary |
|---|---|
| public static final String OPERATION_INVERSE Specifies the inverse operation name. The operation can be executed with
| |
| OPERATION_SET_FALSE | back to summary |
|---|---|
| public static final String OPERATION_SET_FALSE Specifies the operation name, which sets the control state to
| |
| OPERATION_SET_TRUE | back to summary |
|---|---|
| public static final String OPERATION_SET_TRUE Specifies the operation name, which sets the control state to
| |
| PROPERTY_DATA | back to summary |
|---|---|
| public static final String PROPERTY_DATA Specifies the state property name. The eventable property value is
accessible with
| |
| getData | back to summary |
|---|---|
| public BooleanData getData() throws DeviceException Returns the current state of
| |
| inverse | back to summary |
|---|---|
| public void inverse() throws DeviceException Reverses the
| |
| setData | back to summary |
|---|---|
| public void setData(boolean data) throws DeviceException Sets the
| |
| setFalse | back to summary |
|---|---|
| public void setFalse() throws DeviceException Sets the
| |
| setTrue | back to summary |
|---|---|
| public void setTrue() throws DeviceException Sets the
| |