Class Coefficients

java.lang.Object
io.openems.edge.ess.power.api.Coefficients

public class Coefficients extends Object
  • Constructor Details

    • Coefficients

      public Coefficients()
  • Method Details

    • initialize

      public void initialize(boolean symmetricMode, Set<String> essIds)
      Initialize the Coefficients for the linear equation system.
      Parameters:
      symmetricMode - if activated, Coefficients are only added for Sum of all Phases. Otherwise Coefficients for Sum and each Phase are added.
      essIds - Set of ESS-Ids
    • of

      public Coefficient of(String essId, Phase phase, Pwr pwr) throws OpenemsException
      Gets the Coefficient for the given Ess-ID, Phase and Pwr.
      Parameters:
      essId - the Ess-ID
      phase - the Phase
      pwr - the Pwr
      Returns:
      the Coefficient
      Throws:
      OpenemsException - on error
    • getAll

      public List<Coefficient> getAll()
    • getNoOfCoefficients

      public int getNoOfCoefficients()