Package io.openems.edge.common.channel
Class EnumReadChannel
- java.lang.Object
-
- io.openems.edge.common.channel.internal.AbstractReadChannel<EnumDoc,java.lang.Integer>
-
- io.openems.edge.common.channel.EnumReadChannel
-
- All Implemented Interfaces:
Channel<java.lang.Integer>
- Direct Known Subclasses:
EnumWriteChannel
,StateCollectorChannel
public class EnumReadChannel extends AbstractReadChannel<EnumDoc,java.lang.Integer>
-
-
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
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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
_setNextValue(java.lang.Integer value)
Sets the next value.-
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
-
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
protected EnumReadChannel(OpenemsComponent component, ChannelId channelId, EnumDoc channelDoc)
-
EnumReadChannel
protected EnumReadChannel(OpenemsComponent component, ChannelId channelId, EnumDoc channelDoc, OptionsEnum initialValue)
-
-
Method Detail
-
_setNextValue
public void _setNextValue(java.lang.Integer value)
Description copied from class:AbstractReadChannel
Sets the next value. Internal method. Do not call directly.- Specified by:
_setNextValue
in interfaceChannel<java.lang.Integer>
- Overrides:
_setNextValue
in classAbstractReadChannel<EnumDoc,java.lang.Integer>
- Parameters:
value
- the next value
-
-