Class SimpleTemporalRangesTariffEvaluator

java.lang.Object
net.solarnetwork.service.support.BasicIdentifiable
net.solarnetwork.domain.tariff.SimpleTemporalRangesTariffEvaluator
All Implemented Interfaces:
TemporalRangesTariffEvaluator, Identifiable

public final class SimpleTemporalRangesTariffEvaluator extends BasicIdentifiable implements TemporalRangesTariffEvaluator
Simple implementation of TemporalRangesTariffEvaluator.

Each of the fields in the given rule are compared to the given date. If a range exists for a given field, and the associated value of that field in the given date is not within that range, false is returned. All ranges are treated as inclusive, except the MINUTE_OF_DAY range whose maximum value is treated as an exclusive value.

Since:
1.71
Version:
1.0
Author:
matt