Class BaseState
- java.lang.Object
-
- io.openems.edge.ess.mr.gridcon.state.onoffgrid.BaseState
-
- All Implemented Interfaces:
StateObject
- Direct Known Subclasses:
AdjustParameter
,OffGrid
,OffGridGridBack
,OnGrid
,StartSystem
,Undefined
,WaitForDevices
,WaitForGridAvailable
public abstract class BaseState extends java.lang.Object implements StateObject
-
-
Field Summary
Fields Modifier and Type Field Description protected DecisionTableCondition
condition
static float
ONOFF_GRID_FREQUENCY_FACTOR_ONLY_ONGRID
static float
ONOFF_GRID_VOLTAGE_FACTOR
-
Constructor Summary
Constructors Constructor Description BaseState(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, boolean na1Inverted, boolean na2Inverted)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected float
getFrequencyOnMeter()
protected float
getVoltageOnMeter()
protected boolean
isBatteriesStarted()
protected boolean
isNextStateError()
protected boolean
isNextStateGoingOnGrid()
protected boolean
isNextStateOffGrid()
protected boolean
isNextStateOnGridRunning()
protected boolean
isNextStateOnGridStopped()
protected boolean
isNextStateUndefined()
protected boolean
isSystemOffgrid()
protected boolean
isSystemOngrid()
protected void
setDateAndTime()
protected void
setStringControlMode()
protected void
setStringWeighting()
protected void
setSyncBridge(boolean b)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.openems.edge.ess.mr.gridcon.StateObject
act, getGridconSettings, getNextState, getState
-
-
-
-
Field Detail
-
ONOFF_GRID_VOLTAGE_FACTOR
public static final float ONOFF_GRID_VOLTAGE_FACTOR
- See Also:
- Constant Field Values
-
ONOFF_GRID_FREQUENCY_FACTOR_ONLY_ONGRID
public static final float ONOFF_GRID_FREQUENCY_FACTOR_ONLY_ONGRID
- See Also:
- Constant Field Values
-
condition
protected DecisionTableCondition condition
-
-
Constructor Detail
-
BaseState
public BaseState(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, boolean na1Inverted, boolean na2Inverted)
-
-
Method Detail
-
isNextStateUndefined
protected boolean isNextStateUndefined()
-
isNextStateError
protected boolean isNextStateError()
-
isNextStateOnGridStopped
protected boolean isNextStateOnGridStopped()
-
isNextStateOnGridRunning
protected boolean isNextStateOnGridRunning()
-
isNextStateOffGrid
protected boolean isNextStateOffGrid()
-
isNextStateGoingOnGrid
protected boolean isNextStateGoingOnGrid()
-
getVoltageOnMeter
protected float getVoltageOnMeter()
-
getFrequencyOnMeter
protected float getFrequencyOnMeter()
-
setSyncBridge
protected void setSyncBridge(boolean b)
-
isSystemOngrid
protected boolean isSystemOngrid()
-
isSystemOffgrid
protected boolean isSystemOffgrid()
-
isBatteriesStarted
protected boolean isBatteriesStarted()
-
setStringControlMode
protected void setStringControlMode()
-
setStringWeighting
protected void setStringWeighting()
-
setDateAndTime
protected void setDateAndTime()
-
-