Package io.openems.edge.thermometer.api
Interface Thermometer
- All Superinterfaces:
OpenemsComponent
- All Known Subinterfaces:
OneWireThermometer
,SimulatorThermometer
- All Known Implementing Classes:
OneWireThermometerImpl
,SimulatorThermometerImpl
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
_setTemperature
(int value) Internal method to set the 'nextValue' onThermometer.ChannelId.TEMPERATURE
Channel.default void
_setTemperature
(Integer value) Internal method to set the 'nextValue' onThermometer.ChannelId.TEMPERATURE
Channel.Gets the Temperature in [deci degC].default IntegerReadChannel
Gets the Channel forThermometer.ChannelId.TEMPERATURE
.Methods inherited from interface io.openems.edge.common.component.OpenemsComponent
_channel, _getChannelAs, alias, channel, channel, channels, debugLog, getComponentContext, getState, getStateChannel, hasFaults, id, isEnabled, serviceFactoryPid, servicePid
-
Method Details
-
getTemperatureChannel
Gets the Channel forThermometer.ChannelId.TEMPERATURE
.- Returns:
- the Channel
-
getTemperature
Gets the Temperature in [deci degC]. SeeThermometer.ChannelId.TEMPERATURE
.- Returns:
- the Channel
Value
-
_setTemperature
Internal method to set the 'nextValue' onThermometer.ChannelId.TEMPERATURE
Channel.- Parameters:
value
- the next value
-
_setTemperature
default void _setTemperature(int value) Internal method to set the 'nextValue' onThermometer.ChannelId.TEMPERATURE
Channel.- Parameters:
value
- the next value
-