Package net.solarnetwork.domain.tariff
Class SimpleTariff
java.lang.Object
net.solarnetwork.domain.tariff.SimpleTariff
- All Implemented Interfaces:
Tariff
Simple implementation of
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
ConstructorsConstructorDescriptionSimpleTariff(Iterable<Tariff.Rate> rates) Constructor.SimpleTariff(Map<String, Tariff.Rate> rates) Constructor. -
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
-
SimpleTariff
Constructor.- Parameters:
rates- the rate mapping of rate IDs to associated rates
-
SimpleTariff
Constructor.This will create a map from the given rates, using the rate IDs as the map keys.
- Parameters:
rates- the rate collection
-
-
Method Details