Class PowerTuple

java.lang.Object
io.openems.edge.ess.core.power.solver.PowerTuple

public class PowerTuple extends Object
  • Constructor Details

    • PowerTuple

      public PowerTuple()
  • Method Details

    • setValue

      public void setValue(Pwr pwr, int value)
      Set a value.
      Parameters:
      pwr - the Pwr
      value - the value
    • getActivePower

      public int getActivePower()
      Get the Active-Power value.
      Returns:
      value for Pwr.ACTIVE.
    • getReactivePower

      public int getReactivePower()
      Get the Reactive-Power value.
      Returns:
      value for Pwr.REACTIVE.
    • toString

      public String toString()
      Overrides:
      toString in class Object