Class OneWireThermometerImpl
java.lang.Object
io.openems.edge.common.component.AbstractOpenemsComponent
io.openems.edge.onewire.thermometer.OneWireThermometerImpl
- All Implemented Interfaces:
OpenemsComponent
,Thermometer
public class OneWireThermometerImpl
extends AbstractOpenemsComponent
implements Thermometer, OpenemsComponent
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.openems.edge.common.component.OpenemsComponent
OpenemsComponent.ChannelId
Nested classes/interfaces inherited from interface io.openems.edge.thermometer.api.Thermometer
Thermometer.ChannelId
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
_setCommunicationFailed
(boolean value) Internal method to set the 'nextValue' oninvalid reference
ThisChannelId#COMMUNICATION_FAILED
protected void
Handles @Deactivate of implementations.debugLog()
Gets some output that is suitable for a continuous Debug log.Gets the Communication Failed Fault State.Gets the Channel forinvalid reference
ThisChannelId#COMMUNICATION_FAILED
Methods inherited from class io.openems.edge.common.component.AbstractOpenemsComponent
_channel, activate, activate, addChannel, addChannels, addChannels, alias, channels, getComponentContext, id, isEnabled, logDebug, logError, logInfo, logWarn, modified, removeChannel
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.openems.edge.common.component.OpenemsComponent
_channel, _getChannelAs, alias, channel, channel, channels, getComponentContext, getState, getStateChannel, hasFaults, id, isEnabled, serviceFactoryPid, servicePid
Methods inherited from interface io.openems.edge.thermometer.api.Thermometer
_setTemperature, _setTemperature, getTemperature, getTemperatureChannel
-
Constructor Details
-
OneWireThermometerImpl
public OneWireThermometerImpl()
-
-
Method Details
-
deactivate
protected void deactivate()Description copied from class:AbstractOpenemsComponent
Handles @Deactivate of implementations. Prints log output.- Overrides:
deactivate
in classAbstractOpenemsComponent
-
debugLog
Description copied from interface:OpenemsComponent
Gets some output that is suitable for a continuous Debug log. Returns 'null' by default which causes no output.- Specified by:
debugLog
in interfaceOpenemsComponent
- Returns:
- the debug log output
-
getCommunicationFailedChannel
Gets the Channel forinvalid reference
ThisChannelId#COMMUNICATION_FAILED
- Returns:
- the Channel
-
getCommunicationFailed
Gets the Communication Failed Fault State. Seeinvalid reference
ThisChannelId#COMMUNICATION_FAILED
- Returns:
- the Channel
Value
-
_setCommunicationFailed
public void _setCommunicationFailed(boolean value) Internal method to set the 'nextValue' oninvalid reference
ThisChannelId#COMMUNICATION_FAILED
- Parameters:
value
- the next value
-