Package net.solarnetwork.domain.tariff
Interface TemporalRangesTariffEvaluator
- All Superinterfaces:
Identifiable
- All Known Implementing Classes:
SimpleTemporalRangesTariffEvaluator
API for a function that can evaluate a given
TemporalRangesTariff
rule to see if it applies based on an input date and parameter map.-
Field Summary
Fields inherited from interface net.solarnetwork.service.Identifiable
GROUP_UID_PROPERTY, UID_PROPERTY -
Method Summary
Modifier and TypeMethodDescriptionbooleanapplies(TemporalRangesTariff rule, LocalDateTime date, Map<String, ?> parameters) Test if a rule applies to a given date and set of parameters.Methods inherited from interface net.solarnetwork.service.Identifiable
getDisplayName, getGroupUid, getUid
-
Method Details
-
applies
Test if a rule applies to a given date and set of parameters.- Parameters:
rule- the ruledate- the dateparameters- the parameters- Returns:
- true if the tariff applies
-