Package io.openems.edge.common.channel
Class StringWriteChannel
java.lang.Object
io.openems.edge.common.channel.internal.AbstractReadChannel<OpenemsTypeDoc<String>,String>
io.openems.edge.common.channel.StringReadChannel
io.openems.edge.common.channel.StringWriteChannel
- All Implemented Interfaces:
Channel<String>
,WriteChannel<String>
-
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
ConstructorsConstructorDescriptionStringWriteChannel
(OpenemsComponent component, ChannelId channelId, StringDoc channelDoc) -
Method Summary
Modifier and TypeMethodDescriptionvoid
_setNextWriteValue
(String value) Deprecated.Gets the next write value.Gets the onSetNextWrite callbacks.void
Add an onSetNextWrite callback.Methods inherited from class io.openems.edge.common.channel.internal.AbstractReadChannel
_setNextValue, address, channelDoc, channelId, deactivate, getComponent, getMetaInfo, getNextValue, 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, address, channelDoc, channelId, deactivate, getComponent, getMetaInfo, getNextValue, getPastValues, getType, nextProcessImage, onChange, onSetNextValue, onUpdate, removeOnChangeCallback, removeOnSetNextValueCallback, removeOnUpdateCallback, setMetaInfo, setNextValue, value
Methods inherited from interface io.openems.edge.common.channel.WriteChannel
getNextWriteValueAndReset, setNextWriteValue, setNextWriteValueFromObject
-
Constructor Details
-
StringWriteChannel
-
-
Method Details
-
_setNextWriteValue
Deprecated.Internal method. Do not call directly.- Specified by:
_setNextWriteValue
in interfaceWriteChannel<String>
- Parameters:
value
- the value asString
-
getNextWriteValue
Description copied from interface:WriteChannel
Gets the next write value.- Specified by:
getNextWriteValue
in interfaceWriteChannel<String>
- Returns:
- the next write value; not-present if no write value had been set
-
getOnSetNextWrites
Description copied from interface:WriteChannel
Gets the onSetNextWrite callbacks.- Specified by:
getOnSetNextWrites
in interfaceWriteChannel<String>
- Overrides:
getOnSetNextWrites
in classAbstractReadChannel<OpenemsTypeDoc<String>,
String> - Returns:
- a List of callbacks
-
onSetNextWrite
Description copied from interface:WriteChannel
Add an onSetNextWrite callback. It is called when a 'next write value' was set.The callback can throw an
OpenemsError.OpenemsNamedException
.- Specified by:
onSetNextWrite
in interfaceWriteChannel<String>
- Parameters:
callback
- the callback
-