Interface StateObject

All Known Implementing Classes:
AdjustParameter, BaseState, BasteState, Error, OffGrid, OffGridGridBack, OnGrid, OnGrid, StartSystem, Undefined, Undefined, WaitForDevices, WaitForGridAvailable

public interface StateObject
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    act()
    in this method everything should be executed what there is to do in this state.
    Getter for GridconSettings.
    Depending on the circumstances the next state according to the state machine is returned.
    Returns the corresponding state.
  • Method Details

    • getState

      IState getState()
      Returns the corresponding state.
      Returns:
      the state
    • getNextState

      IState getNextState()
      Depending on the circumstances the next state according to the state machine is returned.
      Returns:
      the next state
    • act

      in this method everything should be executed what there is to do in this state.
      Throws:
      OpenemsError.OpenemsNamedException - on error
    • getGridconSettings

      GridconSettings getGridconSettings()
      Getter for GridconSettings.
      Returns:
      the relevant settings for the gridcon