Class AiidaEnergyDataTimeframeStrategy
java.lang.Object
energy.eddie.regionconnector.aiida.data.needs.AiidaEnergyDataTimeframeStrategy
- All Implemented Interfaces:
EnergyDataTimeframeStrategy
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionenergyDataTimeframe(DataNeed dataNeed, ZonedDateTime referenceDateTime) Creates a timeframe for in which the energy data should lie in.
-
Constructor Details
-
AiidaEnergyDataTimeframeStrategy
public AiidaEnergyDataTimeframeStrategy()
-
-
Method Details
-
energyDataTimeframe
@Nullable public Timeframe energyDataTimeframe(DataNeed dataNeed, ZonedDateTime referenceDateTime) throws UnsupportedDataNeedException Description copied from interface:EnergyDataTimeframeStrategyCreates a timeframe for in which the energy data should lie in. Can return null if the provided data need does not require an energy data timeframe.- 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 timeframe of the energy data.
- Throws:
UnsupportedDataNeedException- if the strategy does not support the data need.
-