Class WritePojo
- java.lang.Object
-
- io.openems.edge.controller.api.common.WriteObject
-
- io.openems.edge.controller.api.common.WritePojo
-
public class WritePojo extends WriteObject
A Wrapper for writing a POJO (plain old java object) to a WriteChannel.
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.Object
value
-
Constructor Summary
Constructors Constructor Description WritePojo(java.lang.Object value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isNull()
Is there a defined value?.void
setNextWriteValue(WriteChannel<?> writeChannel)
Set the next write value of the Channel.java.lang.String
valueToString()
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
-
-
-
-
Method Detail
-
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
public java.lang.String 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.
-
-