Interface TemporalRangesTariffEvaluator

All Superinterfaces:
Identifiable
All Known Implementing Classes:
SimpleTemporalRangesTariffEvaluator

public interface TemporalRangesTariffEvaluator extends Identifiable
API for a function that can evaluate a given TemporalRangesTariff rule to see if it applies based on an input date and parameter map.
  • Method Details

    • applies

      boolean applies(TemporalRangesTariff rule, LocalDateTime date, Map<String,?> parameters)
      Test if a rule applies to a given date and set of parameters.
      Parameters:
      rule - the rule
      date - the date
      parameters - the parameters
      Returns:
      true if the tariff applies