java.lang.Object
java.lang.Record
io.openems.edge.controller.ess.timeofusetariff.optimizer.Params

public record Params(int numberOfPeriods, ZonedDateTime time, int essTotalEnergy, int essMinSocEnergy, int essMaxSocEnergy, int essInitialEnergy, int essMaxEnergyPerPeriod, int essChargeInChargeGrid, int maxBuyFromGrid, int[] productions, int[] consumptions, double[] prices, StateMachine[] states, StateMachine[] existingSchedule) extends Record
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Params(int numberOfPeriods, ZonedDateTime time, int essTotalEnergy, int essMinSocEnergy, int essMaxSocEnergy, int essInitialEnergy, int essMaxEnergyPerPeriod, int essChargeInChargeGrid, int maxBuyFromGrid, int[] productions, int[] consumptions, double[] prices, StateMachine[] states, StateMachine[] existingSchedule)
    Creates an instance of a Params record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    int[]
    Returns the value of the consumptions record component.
    protected static Params.Builder
     
    final boolean
    Indicates whether some other object is "equal to" this one.
    int
    Returns the value of the essChargeInChargeGrid record component.
    int
    Returns the value of the essInitialEnergy record component.
    int
    Returns the value of the essMaxEnergyPerPeriod record component.
    int
    Returns the value of the essMaxSocEnergy record component.
    int
    Returns the value of the essMinSocEnergy record component.
    int
    Returns the value of the essTotalEnergy record component.
    Returns the value of the existingSchedule record component.
    final int
    Returns a hash code value for this object.
    int
    Returns the value of the maxBuyFromGrid record component.
    int
    Returns the value of the numberOfPeriods record component.
    double[]
    Returns the value of the prices record component.
    int[]
    Returns the value of the productions record component.
    Returns the value of the states record component.
    Returns the value of the time record component.
    Returns a string representation of this record class.
    protected String
    toString(boolean full)
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Params

      public Params(int numberOfPeriods, ZonedDateTime time, int essTotalEnergy, int essMinSocEnergy, int essMaxSocEnergy, int essInitialEnergy, int essMaxEnergyPerPeriod, int essChargeInChargeGrid, int maxBuyFromGrid, int[] productions, int[] consumptions, double[] prices, StateMachine[] states, StateMachine[] existingSchedule)
      Creates an instance of a Params record class.
      Parameters:
      numberOfPeriods - the value for the numberOfPeriods record component
      time - the value for the time record component
      essTotalEnergy - the value for the essTotalEnergy record component
      essMinSocEnergy - the value for the essMinSocEnergy record component
      essMaxSocEnergy - the value for the essMaxSocEnergy record component
      essInitialEnergy - the value for the essInitialEnergy record component
      essMaxEnergyPerPeriod - the value for the essMaxEnergyPerPeriod record component
      essChargeInChargeGrid - the value for the essChargeInChargeGrid record component
      maxBuyFromGrid - the value for the maxBuyFromGrid record component
      productions - the value for the productions record component
      consumptions - the value for the consumptions record component
      prices - the value for the prices record component
      states - the value for the states record component
      existingSchedule - the value for the existingSchedule record component
  • Method Details

    • create

      protected static Params.Builder create()
    • toString

      public String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • toString

      protected String toString(boolean full)
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • numberOfPeriods

      public int numberOfPeriods()
      Returns the value of the numberOfPeriods record component.
      Returns:
      the value of the numberOfPeriods record component
    • time

      public ZonedDateTime time()
      Returns the value of the time record component.
      Returns:
      the value of the time record component
    • essTotalEnergy

      public int essTotalEnergy()
      Returns the value of the essTotalEnergy record component.
      Returns:
      the value of the essTotalEnergy record component
    • essMinSocEnergy

      public int essMinSocEnergy()
      Returns the value of the essMinSocEnergy record component.
      Returns:
      the value of the essMinSocEnergy record component
    • essMaxSocEnergy

      public int essMaxSocEnergy()
      Returns the value of the essMaxSocEnergy record component.
      Returns:
      the value of the essMaxSocEnergy record component
    • essInitialEnergy

      public int essInitialEnergy()
      Returns the value of the essInitialEnergy record component.
      Returns:
      the value of the essInitialEnergy record component
    • essMaxEnergyPerPeriod

      public int essMaxEnergyPerPeriod()
      Returns the value of the essMaxEnergyPerPeriod record component.
      Returns:
      the value of the essMaxEnergyPerPeriod record component
    • essChargeInChargeGrid

      public int essChargeInChargeGrid()
      Returns the value of the essChargeInChargeGrid record component.
      Returns:
      the value of the essChargeInChargeGrid record component
    • maxBuyFromGrid

      public int maxBuyFromGrid()
      Returns the value of the maxBuyFromGrid record component.
      Returns:
      the value of the maxBuyFromGrid record component
    • productions

      public int[] productions()
      Returns the value of the productions record component.
      Returns:
      the value of the productions record component
    • consumptions

      public int[] consumptions()
      Returns the value of the consumptions record component.
      Returns:
      the value of the consumptions record component
    • prices

      public double[] prices()
      Returns the value of the prices record component.
      Returns:
      the value of the prices record component
    • states

      public StateMachine[] states()
      Returns the value of the states record component.
      Returns:
      the value of the states record component
    • existingSchedule

      public StateMachine[] existingSchedule()
      Returns the value of the existingSchedule record component.
      Returns:
      the value of the existingSchedule record component