Class TasksSupplierImpl

java.lang.Object
io.openems.edge.bridge.modbus.api.worker.internal.TasksSupplierImpl
All Implemented Interfaces:
TasksSupplier

public class TasksSupplierImpl extends Object implements TasksSupplier
Supplies Tasks.
  • Constructor Details

    • TasksSupplierImpl

      public TasksSupplierImpl()
  • Method Details

    • addProtocol

      public void addProtocol(String sourceId, ModbusProtocol protocol)
      Adds the protocol.
      Parameters:
      sourceId - Component-ID of the source
      protocol - the ModbusProtocol
    • removeProtocol

      public void removeProtocol(String sourceId)
      Removes the protocol.
      Parameters:
      sourceId - Component-ID of the source
    • getCycleTasks

      public CycleTasks getCycleTasks(DefectiveComponents defectiveComponents)
      Description copied from interface: TasksSupplier
      Supplies the Tasks for one Cycle.
      Specified by:
      getCycleTasks in interface TasksSupplier
      Parameters:
      defectiveComponents - the DefectiveComponents handler
      Returns:
      a CycleTasks object
    • getTotalNumberOfTasks

      public int getTotalNumberOfTasks()
      Description copied from interface: TasksSupplier
      Gets the total number of tasks.
      Specified by:
      getTotalNumberOfTasks in interface TasksSupplier
      Returns:
      total number of tasks