Package energy.eddie.dataneeds.needs
Class ValidatedHistoricalDataDataNeed
java.lang.Object
energy.eddie.dataneeds.needs.DataNeed
energy.eddie.dataneeds.needs.TimeframedDataNeed
energy.eddie.dataneeds.needs.ValidatedHistoricalDataDataNeed
- All Implemented Interfaces:
DataNeedInterface
@Entity
@GroupSequence({BasicValidationsGroup.class,CustomValidationsGroup.class,ValidatedHistoricalDataDataNeed.class})
public class ValidatedHistoricalDataDataNeed
extends TimeframedDataNeed
A data need designed to request validated historical data from the MDA. If the
TimeframedDataNeed.duration() ends in the
future, new data should be fetched daily.-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedValidatedHistoricalDataDataNeed(DataNeedDuration duration, EnergyType energyType, Granularity minGranularity, Granularity maxGranularity) -
Method Summary
Modifier and TypeMethodDescriptionReturns which type of energy should be requested for the associated data need.Returns the highest acceptable data granularity.Returns the granularity in which data should be requested from the MDA.Methods inherited from class energy.eddie.dataneeds.needs.TimeframedDataNeed
durationMethods inherited from class energy.eddie.dataneeds.needs.DataNeed
createdAt, description, id, isEnabled, name, policyLink, purpose, regionConnectorFilter, setId, type
-
Field Details
-
DISCRIMINATOR_VALUE
- See Also:
-
-
Constructor Details
-
ValidatedHistoricalDataDataNeed
protected ValidatedHistoricalDataDataNeed() -
ValidatedHistoricalDataDataNeed
public ValidatedHistoricalDataDataNeed(DataNeedDuration duration, EnergyType energyType, Granularity minGranularity, Granularity maxGranularity)
-
-
Method Details
-
energyType
Returns which type of energy should be requested for the associated data need. -
minGranularity
Returns the granularity in which data should be requested from the MDA. If the data is not available in this granularity andmaxGranularity()is a higher granularity, the region connector should automatically retry to fetch the data in the next highest granularity that is supported by the region connector until data is received. If no data can be retrieved for the granularity specified bymaxGranularity(), then the permission request should be transitioned into an error state. -
maxGranularity
Returns the highest acceptable data granularity.- See Also:
-