public interface PowerSwitch extends GenericDevice
| Modifier and Type | Field and Description |
|---|---|
static String |
POWER_SWITCH_CURRENT_STATUS
Service Property indicating the current Status of the power switch
This property is mandatory
Type of values :
java.lang.Boolean
Description : value is expressed in boolean so it is true or false.
|
DEFAULT_HEIGHT, DEFAULT_WIDTH, DEVICE_SERIAL_NUMBER, FAULT_NO, FAULT_PROPERTY_NAME, FAULT_UNKNOWN, FAULT_YES, LOCATION_PROPERTY_NAME, LOCATION_UNKNOWN, STATE_ACTIVATED, STATE_DEACTIVATED, STATE_PROPERTY_NAME, STATE_UNKNOWN| Modifier and Type | Method and Description |
|---|---|
boolean |
getStatus()
Return the current status of the powerswitch
returns 'true' if switch is on,
'false' if switch is off
|
boolean |
switchOff()
Switches the power off
|
boolean |
switchOn()
Switches the power on
|
addListener, constainsProperty, enterInZones, getFault, getProperties, getPropertyValue, getSerialNumber, getState, hasPropertyValue, leavingZones, removeListener, removeProperty, setFault, setPropertyValue, setStatestatic final String POWER_SWITCH_CURRENT_STATUS
java.lang.Booleantrue or false.getStatus(),
Constant Field Valuesboolean getStatus()
POWER_SWITCH_CURRENT_STATUSboolean switchOn()
switchOff()boolean switchOff()
switchOn()Copyright © 2012-2013 ADELE Research Group. All Rights Reserved.