Class SchedulerFixedOrderImpl

All Implemented Interfaces:
OpenemsComponent, Scheduler, SchedulerFixedOrder

public class SchedulerFixedOrderImpl extends AbstractOpenemsComponent implements SchedulerFixedOrder, Scheduler
This Scheduler takes a list of Component IDs and returns the Controllers statically sorted by this order.
  • Constructor Details

    • SchedulerFixedOrderImpl

      public SchedulerFixedOrderImpl()
  • Method Details

    • deactivate

      protected void deactivate()
      Description copied from class: AbstractOpenemsComponent
      Handles @Deactivate of implementations. Prints log output.
      deactivate in class AbstractOpenemsComponent
    • getControllers

      public LinkedHashSet<String> getControllers()
      Description copied from interface: Scheduler
      Returns Component-IDs of Controllers ordered by their current execution priority.

      This method is called once every Cycle, i.e. once per second. The LinkedHashSet is used, as it preserves insertion order

      Specified by:
      getControllers in interface Scheduler
      a ordered set of Component-IDs of Controllers