Class CycleTasksManager
java.lang.Object
io.openems.edge.bridge.modbus.api.worker.internal.CycleTasksManager
Manages the Read-, Write- and Wait-Tasks for one Cycle.
onBeforeProcessImage()
initialize the next Cycle if previous
Cycle had finished
onExecuteWrite()
puts Write-Tasks as highest priority-
Constructor Summary
ModifierConstructorDescriptionprotected
CycleTasksManager
(TasksSupplier tasksSupplier, DefectiveComponents defectiveComponents, Consumer<Boolean> cycleTimeIsTooShortChannel, Consumer<Long> cycleDelayChannel) CycleTasksManager
(TasksSupplier tasksSupplier, DefectiveComponents defectiveComponents, Consumer<Boolean> cycleTimeIsTooShortChannel, Consumer<Long> cycleDelayChannel, AtomicReference<LogVerbosity> logVerbosity) -
Method Summary
Modifier and TypeMethodDescriptionGets the nextTask
.void
Called on BEFORE_PROCESS_IMAGE event.void
Called on EXECUTE_WRITE event.
-
Constructor Details
-
CycleTasksManager
public CycleTasksManager(TasksSupplier tasksSupplier, DefectiveComponents defectiveComponents, Consumer<Boolean> cycleTimeIsTooShortChannel, Consumer<Long> cycleDelayChannel, AtomicReference<LogVerbosity> logVerbosity) -
CycleTasksManager
protected CycleTasksManager(TasksSupplier tasksSupplier, DefectiveComponents defectiveComponents, Consumer<Boolean> cycleTimeIsTooShortChannel, Consumer<Long> cycleDelayChannel)
-
-
Method Details
-
onBeforeProcessImage
public void onBeforeProcessImage()Called on BEFORE_PROCESS_IMAGE event. -
onExecuteWrite
public void onExecuteWrite()Called on EXECUTE_WRITE event. -
getNextTask
Gets the nextTask
. This is called in a separate Thread byModbusWorker
.- Returns:
- next
Task
-