public interface Cooler extends GenericDevice
Modifier and Type | Field and Description |
---|---|
static String |
COOLER_MAX_POWER_LEVEL
Service property indicating the max power level of the cooler in Watts.
|
static String |
COOLER_POWER_LEVEL
Service property indicating the current power level of the cooler.
|
static String |
COOLER_UPDATE_PERIOD |
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 max power level of this cooler
|
double |
getPowerLevel()
Return the current power level of this cooler.
|
double |
setPowerLevel(double level)
Change the power level of this cooler.
|
addListener, constainsProperty, enterInZones, getFault, getProperties, getPropertyValue, getSerialNumber, getState, hasPropertyValue, leavingZones, removeListener, removeProperty, setFault, setPropertyValue, setState
static final String COOLER_POWER_LEVEL
java.lang.Double
, between
0.0d
and 1.0d
0.0d
when the cooler is
completely turned off, 1.0d
when completely turned on.static final String COOLER_MAX_POWER_LEVEL
java.lang.Double
fixed to 1000.0 Watts.
getMaxPowerLevel()
,
Constant Field Valuesstatic final String COOLER_UPDATE_PERIOD
double getPowerLevel()
setPowerLevel(double)
,
COOLER_POWER_LEVEL
double setPowerLevel(double level)
level
- the new power level of this cooler.getPowerLevel()
,
COOLER_POWER_LEVEL
double getMaxPowerLevel()
COOLER_MAX_POWER_LEVEL
Copyright © 2012-2013 ADELE Research Group. All Rights Reserved.