Class FluviusEnergyTimeframeStrategy

java.lang.Object
energy.eddie.regionconnector.be.fluvius.data.needs.FluviusEnergyTimeframeStrategy
All Implemented Interfaces:
EnergyDataTimeframeStrategy

public class FluviusEnergyTimeframeStrategy extends Object implements EnergyDataTimeframeStrategy
  • Constructor Details

    • FluviusEnergyTimeframeStrategy

      public FluviusEnergyTimeframeStrategy(RegionConnectorMetadata regionConnectorMetadata)
  • Method Details

    • energyDataTimeframe

      @Nullable public Timeframe energyDataTimeframe(DataNeed dataNeed, ZonedDateTime referenceDateTime) throws UnsupportedDataNeedException
      For Fluvius one extra day has to be requested for energy data, otherwise the last 15 or 30 minutes will be missing for a granularity of PT15M or PT30M. For daily data, the permission request is fulfilled if the meter reading end data is the same data as the end - 1.
      Specified by:
      energyDataTimeframe in interface EnergyDataTimeframeStrategy
      Parameters:
      dataNeed - The data need is the basis for the timeframe calculation
      referenceDateTime - The reference datetime has to be used to calculate the start and end date. Usually the created datetime of the PermissionRequest.
      Returns:
      the energy timeframe
      Throws:
      UnsupportedDataNeedException - if the data need is not supported