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