Class TimeOfUsePrices
java.lang.Object
io.openems.edge.timeofusetariff.api.TimeOfUsePrices
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 Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTimeOfUsePrices
(ZonedDateTime updateTime, Float... values) Constructs aTimeOfUsePrices
. -
Method Summary
Modifier and TypeMethodDescriptionstatic TimeOfUsePrices
empty
(ZonedDateTime updateTime) Factory method for an 'empty'TimeOfUsePrices
object, i.e.Gets the time of the last update of prices.Float[]
Gives electricity prices for the next 24 h; one value per 15 minutes; 96 values in total.boolean
isEmpty()
Is thisTimeOfUsePrices
empty, i.e.
-
Field Details
-
NUMBER_OF_VALUES
public static final int NUMBER_OF_VALUES- See Also:
-
-
Constructor Details
-
TimeOfUsePrices
Constructs aTimeOfUsePrices
.- Parameters:
updateTime
- Retrieved time of the prices.values
- the 96 quarterly price values[24 hours].
-
-
Method Details
-
empty
Factory method for an 'empty'TimeOfUsePrices
object, i.e. all values are 'null'.- Parameters:
updateTime
- the update time asZonedDateTime
- Returns:
- an 'empty'
TimeOfUsePrices
object
-
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.
- Returns:
- the prices
-
getUpdateTime
Gets the time of the last update of prices.- Returns:
- the time
-
isEmpty
public boolean isEmpty()Is thisTimeOfUsePrices
empty, i.e. every value is 'null'?.- Returns:
- true if all values are null; false otherwise
-