Package io.openems.edge.energy.api
Class EnergyScheduleHandler<STATE,CONTEXT>
java.lang.Object
io.openems.edge.energy.api.EnergyScheduleHandler<STATE,CONTEXT>
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionEnergyScheduleHandler
(Supplier<STATE[]> availableStates, Supplier<CONTEXT> context) -
Method Summary
Modifier and TypeMethodDescriptionSTATE[]
Gets the available States.Gets the Context.Gets the current essChargeInChargeGrid or null.Gets the current State or null.void
setSchedule
(com.google.common.collect.ImmutableMap<ZonedDateTime, EnergyScheduleHandler.Period<STATE>> schedule) Sets the Schedule.
-
Constructor Details
-
EnergyScheduleHandler
-
-
Method Details
-
getAvailableStates
Gets the available States.- Returns:
- an Array of States
-
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
Gets the current State or null.- Returns:
- the State or null
-
getCurrentEssChargeInChargeGrid
Gets the current essChargeInChargeGrid or null.- Returns:
- the essChargeInChargeGrid or null
-