public class DefaultThermostatEvent extends AbstractEvent<ej.basedriver.Thermostat> implements ThermostatEvent
device
Constructor and Description |
---|
DefaultThermostatEvent(ej.basedriver.Thermostat device) |
Modifier and Type | Method and Description |
---|---|
ej.basedriver.ThermostatMode |
getMode()
Gets the mode.
|
double |
getValue(ej.basedriver.ThermostatMode mode)
Gets the value for a specific mode.
|
getDevice
public DefaultThermostatEvent(ej.basedriver.Thermostat device)
device
- public ej.basedriver.ThermostatMode getMode()
getMode
in interface ThermostatEvent
public double getValue(ej.basedriver.ThermostatMode mode)
ThermostatEvent
getValue
in interface ThermostatEvent
mode
- The mode.