Class TimeOfUsePrices


public class TimeOfUsePrices extends Object
Holds time of use prices for 24 h and the time when it is retrieved; // prices are one value per 15 minutes; 96 values in total.

Values have unit EUR/MWh.

  • Field Details

  • Constructor Details

    • TimeOfUsePrices

      public TimeOfUsePrices(ZonedDateTime updateTime, Float... values)
      Constructs a TimeOfUsePrices.
      updateTime - Retrieved time of the prices.
      values - the 96 quarterly price values[24 hours].
  • Method Details

    • empty

      public static TimeOfUsePrices empty(ZonedDateTime updateTime)
      Factory method for an 'empty' TimeOfUsePrices object, i.e. all values are 'null'.
      updateTime - the update time as ZonedDateTime
      an 'empty' TimeOfUsePrices object
    • getValues

      public Float[] getValues()
      Gives electricity prices for the next 24 h; one value per 15 minutes; 96 values in total.

      E.g. if called at 10:05, the first value stands for 10:00 to 10:15; second value for 10:15 to 10:30.

      the prices
    • getUpdateTime

      public ZonedDateTime getUpdateTime()
      Gets the time of the last update of prices.
      the time
    • isEmpty

      public boolean isEmpty()
      Is this TimeOfUsePrices empty, i.e. every value is 'null'?.
      true if all values are null; false otherwise