Class AbstractReadInputRegistersTask
- java.lang.Object
-
- io.openems.edge.bridge.modbus.api.task.AbstractTask
-
- io.openems.edge.bridge.modbus.api.task.AbstractReadTask<com.ghgande.j2mod.modbus.procimg.InputRegister>
-
- io.openems.edge.bridge.modbus.api.task.AbstractReadInputRegistersTask
-
- All Implemented Interfaces:
ReadTask
,Task
,ManagedTask
- Direct Known Subclasses:
FC3ReadRegistersTask
,FC4ReadInputRegistersTask
public abstract class AbstractReadInputRegistersTask extends AbstractReadTask<com.ghgande.j2mod.modbus.procimg.InputRegister>
-
-
Constructor Summary
Constructors Constructor Description AbstractReadInputRegistersTask(int startAddress, Priority priority, AbstractModbusElement<?>... elements)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doElementSetInput(ModbusElement<?> modbusElement, int position, com.ghgande.j2mod.modbus.procimg.InputRegister[] response)
protected java.lang.String
getRequiredElementName()
protected int
increasePosition(int position, ModbusElement<?> modbusElement)
protected boolean
isCorrectElementInstance(ModbusElement<?> modbusElement)
-
Methods inherited from class io.openems.edge.bridge.modbus.api.task.AbstractReadTask
_execute, fillElements, getPriority, getRequest, handleResponse, readElements
-
Methods inherited from class io.openems.edge.bridge.modbus.api.task.AbstractTask
deactivate, debug, execute, getActiondescription, getElements, getExecuteDuration, getLength, getLogVerbosity, getParent, getStartAddress, hasBeenExecuted, isDebug, setParent, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.openems.edge.bridge.modbus.api.task.Task
deactivate, execute, getElements, getExecuteDuration, getLength, getParent, getStartAddress, hasBeenExecuted, setParent
-
-
-
-
Constructor Detail
-
AbstractReadInputRegistersTask
public AbstractReadInputRegistersTask(int startAddress, Priority priority, AbstractModbusElement<?>... elements)
-
-
Method Detail
-
isCorrectElementInstance
protected boolean isCorrectElementInstance(ModbusElement<?> modbusElement)
- Specified by:
isCorrectElementInstance
in classAbstractReadTask<com.ghgande.j2mod.modbus.procimg.InputRegister>
-
doElementSetInput
protected void doElementSetInput(ModbusElement<?> modbusElement, int position, com.ghgande.j2mod.modbus.procimg.InputRegister[] response) throws OpenemsException
- Specified by:
doElementSetInput
in classAbstractReadTask<com.ghgande.j2mod.modbus.procimg.InputRegister>
- Throws:
OpenemsException
-
getRequiredElementName
protected java.lang.String getRequiredElementName()
- Specified by:
getRequiredElementName
in classAbstractReadTask<com.ghgande.j2mod.modbus.procimg.InputRegister>
-
increasePosition
protected int increasePosition(int position, ModbusElement<?> modbusElement)
- Specified by:
increasePosition
in classAbstractReadTask<com.ghgande.j2mod.modbus.procimg.InputRegister>
-
-