Package io.openems.edge.common.channel
Class StateChannel
java.lang.Object
io.openems.edge.common.channel.internal.AbstractReadChannel<OpenemsTypeDoc<Boolean>,Boolean>
io.openems.edge.common.channel.BooleanReadChannel
io.openems.edge.common.channel.StateChannel
Represents a single state. Changes to the value are reported to the
StateCollectorChannel
"State" of the OpenEMS Component.-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class io.openems.edge.common.channel.internal.AbstractReadChannel
parent
Fields inherited from interface io.openems.edge.common.channel.Channel
NO_OF_PAST_VALUES
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
StateChannel
(OpenemsComponent component, ChannelId channelId, BooleanDoc channelDoc, Level level, int debounce, Debounce debounceMode) -
Method Summary
Methods inherited from class io.openems.edge.common.channel.BooleanReadChannel
_setNextValue
Methods inherited from class io.openems.edge.common.channel.internal.AbstractReadChannel
address, channelDoc, channelId, deactivate, getComponent, getMetaInfo, getNextValue, getOnSetNextWrites, getPastValues, getType, nextProcessImage, onChange, onSetNextValue, onUpdate, removeOnChangeCallback, removeOnSetNextValueCallback, removeOnUpdateCallback, setMetaInfo, toString, value
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.openems.edge.common.channel.Channel
setNextValue
-
Constructor Details
-
StateChannel
protected StateChannel(OpenemsComponent component, ChannelId channelId, BooleanDoc channelDoc, Level level, int debounce, Debounce debounceMode)
-
-
Method Details
-
getLevel
Gets the Level of thisStateChannel
.- Returns:
- the level
-