java.lang.Object
io.openems.edge.common.statemachine.AbstractContext<GenericManagedEss>
io.openems.edge.ess.generic.offgrid.statemachine.Context

public class Context extends AbstractContext<GenericManagedEss>
  • Field Details

  • Constructor Details

  • Method Details

    • isChannelsDefined

      public boolean isChannelsDefined()
      Proof if all channels are present.
      Returns:
      true if all defined.
    • isOnGridContactorsSet

      public boolean isOnGridContactorsSet()
      Checks if contactors set properly for on-grid connection.
      Returns:
      true if all contactors adjust as they are required.
    • isOffGridContactorsSet

      public boolean isOffGridContactorsSet()
      Checks if contactors set properly for off-grid connection.
      Returns:
      true if all contactors adjust as they are required.
    • setContactorsForOnGrid

      public void setContactorsForOnGrid() throws OpenemsError.OpenemsNamedException
      Set contactors for on-grid connection.
      Throws:
      OpenemsError.OpenemsNamedException - on error.
    • setContactorsForOffGrid

      public void setContactorsForOffGrid() throws OpenemsError.OpenemsNamedException
      Set contactors for on-grid connection.
      Throws:
      OpenemsError.OpenemsNamedException - on error.
    • isFromOffToOnGrid

      public boolean isFromOffToOnGrid()
      Gets the grid state changes from off to on grid in StartedInOffGridHandler state.
      Returns:
      true if it goes from off to on grid.
    • setFromOffToOnGrid

      public void setFromOffToOnGrid(boolean isFromOffToOnGrid)
      Sets if grid state changes from off to on grid.
      Parameters:
      isFromOffToOnGrid - value to be set.