Class WaitForGridAvailable
- java.lang.Object
-
- io.openems.edge.ess.mr.gridcon.state.onoffgrid.BaseState
-
- io.openems.edge.ess.mr.gridcon.state.onoffgrid.WaitForGridAvailable
-
- All Implemented Interfaces:
StateObject
public class WaitForGridAvailable extends BaseState
-
-
Field Summary
-
Fields inherited from class io.openems.edge.ess.mr.gridcon.state.onoffgrid.BaseState
condition, ONOFF_GRID_FREQUENCY_FACTOR_ONLY_ONGRID, ONOFF_GRID_VOLTAGE_FACTOR
-
-
Constructor Summary
Constructors Constructor Description WaitForGridAvailable(ComponentManager manager, DecisionTableCondition condition, java.lang.String gridconPcsId, java.lang.String b1Id, java.lang.String b2Id, java.lang.String b3Id, java.lang.String inputNa1, java.lang.String inputNa2, java.lang.String inputSyncBridge, java.lang.String outputSyncBridge, java.lang.String meterId, float targetFrequencyOffgrid, boolean na1Inverted, boolean na2Inverted, boolean inputSyncInverted)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
act()
in this method everything should be executed what there is to do in this state.GridconSettings
getGridconSettings()
Getter for GridconSettings.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.onoffgrid.BaseState
getFrequencyOnMeter, getVoltageOnMeter, isBatteriesStarted, isNextStateError, isNextStateGoingOnGrid, isNextStateOffGrid, isNextStateOnGridRunning, isNextStateOnGridStopped, isNextStateUndefined, isSystemOffgrid, isSystemOngrid, setDateAndTime, setStringControlMode, setStringWeighting, setSyncBridge
-
-
-
-
Constructor Detail
-
WaitForGridAvailable
public WaitForGridAvailable(ComponentManager manager, DecisionTableCondition condition, java.lang.String gridconPcsId, java.lang.String b1Id, java.lang.String b2Id, java.lang.String b3Id, java.lang.String inputNa1, java.lang.String inputNa2, java.lang.String inputSyncBridge, java.lang.String outputSyncBridge, java.lang.String meterId, float targetFrequencyOffgrid, boolean na1Inverted, boolean na2Inverted, boolean inputSyncInverted)
-
-
Method Detail
-
getState
public IState getState()
Description copied from interface:StateObject
Returns the corresponding state.- Returns:
- the state
-
getNextState
public IState getNextState()
Description copied from interface:StateObject
Depending on the circumstances the next state according to the state machine is returned.- Returns:
- the next state
-
act
public void act() throws OpenemsError.OpenemsNamedException
Description copied from interface:StateObject
in this method everything should be executed what there is to do in this state.- Throws:
OpenemsError.OpenemsNamedException
- on error
-
getGridconSettings
public GridconSettings getGridconSettings()
Description copied from interface:StateObject
Getter for GridconSettings.- Returns:
- the relevant settings for the gridcon
-
-