Class CoilElement
java.lang.Object
io.openems.edge.bridge.modbus.api.element.ModbusElement
io.openems.edge.bridge.modbus.api.element.AbstractModbusElement<CoilElement,Boolean,Boolean>
io.openems.edge.bridge.modbus.api.element.CoilElement
A CoilElement has a size of one Modbus Coil or 1 bit.
-
Nested Class Summary
Nested classes/interfaces inherited from class io.openems.edge.bridge.modbus.api.element.AbstractModbusElement
AbstractModbusElement.FillElementsPriority
-
Field Summary
Fields inherited from class io.openems.edge.bridge.modbus.api.element.AbstractModbusElement
nextWriteValue, type
Fields inherited from class io.openems.edge.bridge.modbus.api.element.ModbusElement
length, startAddress
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Boolean
rawToValue
(Boolean value) Converts the RAW value from j2mod to the expected type.protected CoilElement
self()
Gets an instance of the correct subclass of myself.protected Boolean
valueToRaw
(Boolean value) Methods inherited from class io.openems.edge.bridge.modbus.api.element.AbstractModbusElement
_getFillElementsPriority, deactivate, debug, fillElementsPriority, getNextWriteValueAndReset, invalidate, isDebug, onNextWriteValueReset, onSetNextWrite, onUpdateCallback, setInputValue, setNextWriteValue, setNextWriteValueFromObject, toString
Methods inherited from class io.openems.edge.bridge.modbus.api.element.ModbusElement
getModbusTask, setModbusTask
-
Constructor Details
-
CoilElement
public CoilElement(int startAddress)
-
-
Method Details
-
self
Description copied from class:AbstractModbusElement
Gets an instance of the correct subclass of myself.- Specified by:
self
in classAbstractModbusElement<CoilElement,
Boolean, Boolean> - Returns:
- myself
-
valueToRaw
- Specified by:
valueToRaw
in classAbstractModbusElement<CoilElement,
Boolean, Boolean>
-
rawToValue
Description copied from class:AbstractModbusElement
Converts the RAW value from j2mod to the expected type.- Specified by:
rawToValue
in classAbstractModbusElement<CoilElement,
Boolean, Boolean> - Parameters:
value
- the raw value- Returns:
- the typed/converted value
-