Class WritePojo
java.lang.Object
io.openems.edge.controller.api.common.WriteObject
io.openems.edge.controller.api.common.WritePojo
A Wrapper for writing a POJO (plain old java object) to a WriteChannel.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isNull()
Is there a defined value?.void
setNextWriteValue
(WriteChannel<?> writeChannel) Set the next write value of the Channel.Gets the value as a String for logging purposes.Methods inherited from class io.openems.edge.controller.api.common.WriteObject
notifyError, notifySuccess, notifyTimeout, onError, onFirstError, onFirstSuccess, onSuccess, onTimeout
-
Field Details
-
value
-
-
Constructor Details
-
WritePojo
-
-
Method Details
-
setNextWriteValue
public void setNextWriteValue(WriteChannel<?> writeChannel) throws OpenemsError.OpenemsNamedException Description copied from class:WriteObject
Set the next write value of the Channel.- Specified by:
setNextWriteValue
in classWriteObject
- Parameters:
writeChannel
- theWriteChannel
- Throws:
OpenemsError.OpenemsNamedException
- on error
-
valueToString
Description copied from class:WriteObject
Gets the value as a String for logging purposes.- Specified by:
valueToString
in classWriteObject
- Returns:
- the value as String
-
isNull
public boolean isNull()Description copied from class:WriteObject
Is there a defined value?.- Specified by:
isNull
in classWriteObject
- Returns:
- true if no value is there; false if a value is available.
-