Class FluviusEnergyTimeframeStrategy
java.lang.Object
energy.eddie.regionconnector.be.fluvius.data.needs.FluviusEnergyTimeframeStrategy
- All Implemented Interfaces:
EnergyDataTimeframeStrategy
-
Constructor Summary
ConstructorsConstructorDescriptionFluviusEnergyTimeframeStrategy(RegionConnectorMetadata regionConnectorMetadata) -
Method Summary
Modifier and TypeMethodDescriptionenergyDataTimeframe(DataNeed dataNeed, ZonedDateTime referenceDateTime) 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.
-
Constructor Details
-
FluviusEnergyTimeframeStrategy
-
-
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:
energyDataTimeframein interfaceEnergyDataTimeframeStrategy- Parameters:
dataNeed- The data need is the basis for the timeframe calculationreferenceDateTime- The reference datetime has to be used to calculate the start and end date. Usually the created datetime of thePermissionRequest.- Returns:
- the energy timeframe
- Throws:
UnsupportedDataNeedException- if the data need is not supported
-