Class CycleImpl

    • Field Detail

      • eventAdmin

        protected org.osgi.service.event.EventAdmin eventAdmin
      • sumComponent

        protected Sum sumComponent
      • schedulers

        protected final java.util.TreeSet<Scheduler> schedulers
        Holds the Schedulers and their relative cycleTime. They are sorted ascending by their cycleTimes.
    • Constructor Detail

      • CycleImpl

        public CycleImpl()
    • Method Detail

      • addScheduler

        protected void addScheduler​(Scheduler newScheduler)
      • removeScheduler

        protected void removeScheduler​(Scheduler scheduler)
      • logInfo

        protected void logInfo​(org.slf4j.Logger log,
                               java.lang.String message)
        Description copied from class: AbstractOpenemsComponent
        Log an info message including the Component ID.
        Overrides:
        logInfo in class AbstractOpenemsComponent
        Parameters:
        log - the Logger instance
        message - the message
      • logWarn

        protected void logWarn​(org.slf4j.Logger log,
                               java.lang.String message)
        Description copied from class: AbstractOpenemsComponent
        Log a warn message including the Component ID.
        Overrides:
        logWarn in class AbstractOpenemsComponent
        Parameters:
        log - the Logger instance
        message - the message
      • getCycleTime

        public int getCycleTime()
        Description copied from interface: Cycle
        Gets the duration of one global OpenEMS Cycle in [ms].
        Specified by:
        getCycleTime in interface Cycle
        Returns:
        the duration in milliseconds