Package net.solarnetwork.domain.tariff
Class SimpleTemporalTariff
java.lang.Object
net.solarnetwork.domain.tariff.SimpleTemporalTariff
- All Implemented Interfaces:
Tariff,TemporalTariff
A simple implementation of
TemporalTariff that delegates to another
Tariff.- Since:
- 1.71
- Version:
- 1.0
- Author:
- matt
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.solarnetwork.domain.tariff.Tariff
Tariff.Rate -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.solarnetwork.domain.tariff.Tariff
toTemporalTariff
-
Constructor Details
-
SimpleTemporalTariff
Constructor.- Parameters:
dateTime- a date timedelegate- the tariff
-
-
Method Details
-
getRates
Description copied from interface:TariffGet the rates that apply with this tariff. -
getDate
Description copied from interface:TemporalTariffGet a date associated with this tariff.- Specified by:
getDatein interfaceTemporalTariff- Returns:
- the date, or null
-
getTime
Description copied from interface:TemporalTariffGet a time associated with this tariff.- Specified by:
getTimein interfaceTemporalTariff- Returns:
- the time, or null
-