Package io.openems.edge.common.channel
Class EnumReadChannel
java.lang.Object
io.openems.edge.common.channel.internal.AbstractReadChannel<EnumDoc,Integer>
io.openems.edge.common.channel.EnumReadChannel
- Direct Known Subclasses:
EnumWriteChannel
,StateCollectorChannel
-
Field Summary
Fields inherited from class io.openems.edge.common.channel.internal.AbstractReadChannel
parent
Fields inherited from interface io.openems.edge.common.channel.Channel
MAX_AGE_OF_PAST_VALUES
-
Constructor Summary
ModifierConstructorDescriptionprotected
EnumReadChannel
(OpenemsComponent component, ChannelId channelId, EnumDoc channelDoc) protected
EnumReadChannel
(OpenemsComponent component, ChannelId channelId, EnumDoc channelDoc, int debounce) protected
EnumReadChannel
(OpenemsComponent component, ChannelId channelId, EnumDoc channelDoc, OptionsEnum initialValue) protected
EnumReadChannel
(OpenemsComponent component, ChannelId channelId, EnumDoc channelDoc, OptionsEnum initialValue, int debounce) -
Method Summary
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
-
EnumReadChannel
protected EnumReadChannel(OpenemsComponent component, ChannelId channelId, EnumDoc channelDoc, int debounce) -
EnumReadChannel
protected EnumReadChannel(OpenemsComponent component, ChannelId channelId, EnumDoc channelDoc, OptionsEnum initialValue, int debounce) -
EnumReadChannel
-
EnumReadChannel
protected EnumReadChannel(OpenemsComponent component, ChannelId channelId, EnumDoc channelDoc, OptionsEnum initialValue)
-
-
Method Details
-
_setNextValue
Description copied from class:AbstractReadChannel
Sets the next value. Internal method. Do not call directly.If the
Unit
of the Channel is cumulated and 'value' is null, it is silently ignored. Cumulated values must be steadily increasing and should never get reset to null. SeeUnit
.- Specified by:
_setNextValue
in interfaceChannel<Integer>
- Overrides:
_setNextValue
in classAbstractReadChannel<EnumDoc,
Integer> - Parameters:
value
- the next value
-