Package io.openems.edge.common.channel
Class StateChannel
- java.lang.Object
-
- io.openems.edge.common.channel.internal.AbstractReadChannel<OpenemsTypeDoc<java.lang.Boolean>,java.lang.Boolean>
-
- io.openems.edge.common.channel.BooleanReadChannel
-
- io.openems.edge.common.channel.StateChannel
-
- All Implemented Interfaces:
Channel<java.lang.Boolean>
public class StateChannel extends BooleanReadChannel
Represents a single state. Changes to the value are reported to theStateCollectorChannel
"State" of the OpenEMS Component.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
StateChannel.TriggerOnAny
OnInit-Function forStateChannelDoc
.
-
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
Constructors Modifier Constructor Description protected
StateChannel(OpenemsComponent component, ChannelId channelId, BooleanDoc channelDoc, Level level, int debounce, Debounce debounceMode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Level
getLevel()
Gets the Level of thisStateChannel
.-
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 Detail
-
StateChannel
protected StateChannel(OpenemsComponent component, ChannelId channelId, BooleanDoc channelDoc, Level level, int debounce, Debounce debounceMode)
-
-
Method Detail
-
getLevel
public Level getLevel()
Gets the Level of thisStateChannel
.- Returns:
- the level
-
-