Package net.solarnetwork.domain.tariff
Interface Tariff
- All Known Subinterfaces:
TemporalTariff
- All Known Implementing Classes:
CompositeTariff,SimpleTariff,SimpleTemporalTariff,TemporalRangesTariff
public interface Tariff
A tariff.
- Since:
- 1.71
- Version:
- 1.0
- Author:
- matt
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptiongetRates()Get the rates that apply with this tariff.default TemporalTarifftoTemporalTariff(LocalDateTime dateTime) Create a temporal tariff.
-
Method Details
-
getRates
Map<String,Tariff.Rate> getRates()Get the rates that apply with this tariff.- Returns:
- the rates, as a mapping of rate IDs to associated rates, never null
-
toTemporalTariff
Create a temporal tariff.- Parameters:
dateTime- the date time for the tariff- Returns:
- the new temporal tariff
-