Interface Tariff

All Known Subinterfaces:
TemporalTariff
All Known Implementing Classes:
CompositeTariff, SimpleTariff, SimpleTemporalTariff, TemporalRangesTariff

public interface Tariff
A tariff.
Since:
1.71
Version:
1.0
Author:
matt
  • Method Details

    • getRates

      Map<String,Tariff.Rate> getRates()
      Get the rates that apply with this tariff.
      Returns:
      the rates, as a mapping of rate IDs to associated rates, never null
    • toTemporalTariff

      default TemporalTariff toTemporalTariff(LocalDateTime dateTime)
      Create a temporal tariff.
      Parameters:
      dateTime - the date time for the tariff
      Returns:
      the new temporal tariff