public interface BinaryLight extends GenericDevice
Modifier and Type | Field and Description |
---|---|
static String |
BINARY_LIGHT_MAX_POWER_LEVEL
Device property indicating the maximum power level of the binary light.
|
static String |
BINARY_LIGHT_POWER_STATUS
Service property indicating whether the binary light is is turned on or
off.
|
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 |
---|---|
double |
getMaxPowerLevel()
Return the current power level of this binary light
|
boolean |
getPowerStatus()
Return the current power state of this binary light.
|
boolean |
setPowerStatus(boolean state)
Change the power status of this binary light.
|
void |
turnOff()
Change the power status to false
|
void |
turnOn()
Change the power status to true
|
addListener, constainsProperty, enterInZones, getFault, getProperties, getPropertyValue, getSerialNumber, getState, hasPropertyValue, leavingZones, removeListener, removeProperty, setFault, setPropertyValue, setState
static final String BINARY_LIGHT_POWER_STATUS
java.lang.Boolean
true
when the light is turned on,
false
otherwise.static final String BINARY_LIGHT_MAX_POWER_LEVEL
java.lang.Double
, is
100
Watts100
watts for a normal lamp.getMaxPowerLevel()
,
Constant Field Valuesboolean getPowerStatus()
setPowerStatus(boolean)
,
BINARY_LIGHT_POWER_STATUS
boolean setPowerStatus(boolean state)
state
- the new power state of this binary light.getPowerStatus()
,
BINARY_LIGHT_POWER_STATUS
void turnOn()
void turnOff()
double getMaxPowerLevel()
BINARY_LIGHT_MAX_POWER_LEVEL
Copyright © 2012-2013 ADELE Research Group. All Rights Reserved.