Class DummyTimeOfUseTariffProvider
java.lang.Object
io.openems.edge.timeofusetariff.test.DummyTimeOfUseTariffProvider
- All Implemented Interfaces:
TimeOfUseTariff
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DummyTimeOfUseTariffProvider
fromHourlyPrices
(ZonedDateTime now, Float... hourlyPrices) Builds aDummyTimeOfUseTariffProvider
from hourly prices.Gives electricity prices for the next 24 h; one value per 15 minutes; 96 values in total.void
setPrices
(ZonedDateTime now, Float... quarterlyPrices)
-
Constructor Details
-
DummyTimeOfUseTariffProvider
-
-
Method Details
-
fromHourlyPrices
public static DummyTimeOfUseTariffProvider fromHourlyPrices(ZonedDateTime now, Float... hourlyPrices) Builds aDummyTimeOfUseTariffProvider
from hourly prices.- Parameters:
hourlyPrices
- an array of hourly prices.now
- given during test.- Returns:
- a
DummyTimeOfUseTariffProvider
.
-
setPrices
-
getPrices
Description copied from interface:TimeOfUseTariff
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.
- Specified by:
getPrices
in interfaceTimeOfUseTariff
- Returns:
- the prices;
TimeOfUsePrices.empty(java.time.ZonedDateTime)
if no prices are known
-