Class Run
- java.lang.Object
-
- io.openems.edge.ess.mr.gridcon.state.gridconstate.BaseState
-
- io.openems.edge.ess.mr.gridcon.state.gridconstate.Run
-
- All Implemented Interfaces:
GridconStateObject
public class Run extends BaseState
-
-
Field Summary
-
Fields inherited from class io.openems.edge.ess.mr.gridcon.state.gridconstate.BaseState
battery1Id, battery2Id, battery3Id, gridconPcsId, hardRestartRelayAdress
-
-
Constructor Summary
Constructors Constructor Description Run(ComponentManager manager, java.lang.String gridconPcsId, java.lang.String b1Id, java.lang.String b2Id, java.lang.String b3Id, boolean enableIpu1, boolean enableIpu2, boolean enableIpu3, java.lang.String hardRestartRelayAdress, float offsetCurrent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
act(GridconSettings settings)
in this method everything should be executed what there is to do in this state.IState
getNextState()
Depending on the circumstances the next state according to the state machine is returned.IState
getState()
Returns the corresponding state.-
Methods inherited from class io.openems.edge.ess.mr.gridcon.state.gridconstate.BaseState
isBatteriesStarted, isNextStateError, isNextStateRunning, isNextStateStopped, isNextStateUndefined, setDateAndTime, setHardRestartRelay, setStringControlMode, setStringWeighting, startBatteries
-
-
-
-
Constructor Detail
-
Run
public Run(ComponentManager manager, java.lang.String gridconPcsId, java.lang.String b1Id, java.lang.String b2Id, java.lang.String b3Id, boolean enableIpu1, boolean enableIpu2, boolean enableIpu3, java.lang.String hardRestartRelayAdress, float offsetCurrent)
-
-
Method Detail
-
getState
public IState getState()
Description copied from interface:GridconStateObject
Returns the corresponding state.- Returns:
- the state
-
getNextState
public IState getNextState()
Description copied from interface:GridconStateObject
Depending on the circumstances the next state according to the state machine is returned.- Returns:
- the next state
-
act
public void act(GridconSettings settings)
Description copied from interface:GridconStateObject
in this method everything should be executed what there is to do in this state.- Parameters:
settings
- theGridconSettings
-
-