Class EnergyScheduleHandler<STATE,CONTEXT>

java.lang.Object
io.openems.edge.energy.api.EnergyScheduleHandler<STATE,CONTEXT>

public class EnergyScheduleHandler<STATE,CONTEXT> extends Object
  • Constructor Details

  • Method Details

    • getAvailableStates

      public STATE[] getAvailableStates()
      Gets the available States.
      Returns:
      an Array of States
    • getContext

      public CONTEXT getContext()
      Gets the Context.
      Returns:
      the Context
    • setSchedule

      public void setSchedule(com.google.common.collect.ImmutableMap<ZonedDateTime,EnergyScheduleHandler.Period<STATE>> schedule)
      Sets the Schedule. Called by Optimizer.
      Parameters:
      schedule - the Schedule
    • getCurrentState

      public STATE getCurrentState()
      Gets the current State or null.
      Returns:
      the State or null
    • getCurrentEssChargeInChargeGrid

      public Integer getCurrentEssChargeInChargeGrid()
      Gets the current essChargeInChargeGrid or null.
      Returns:
      the essChargeInChargeGrid or null