public interface Sprinkler extends GenericDevice
Modifier and Type | Field and Description |
---|---|
static String |
SPRINKLER_POWER_STATUS
Service property indicating whether the sprinkler 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 |
---|---|
boolean |
getPowerStatus()
Return the current power state of this sprinkler.
|
boolean |
setPowerStatus(boolean state)
Change the power status of this sprinkler.
|
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 SPRINKLER_POWER_STATUS
java.lang.Boolean
true
when the sprinkler is turned on,
false
otherwise.boolean getPowerStatus()
setPowerStatus(boolean)
,
SPRINKLER_POWER_STATUS
boolean setPowerStatus(boolean state)
state
- the new power state of this sprinkler.getPowerStatus()
,
SPRINKLER_POWER_STATUS
void turnOn()
void turnOff()
Copyright © 2012–2015 ADELE Research Group. All rights reserved.