Package energy.eddie.dataneeds.needs
Class CESUJoinRequestDataNeed
java.lang.Object
energy.eddie.dataneeds.needs.DataNeed
energy.eddie.dataneeds.needs.CESUJoinRequestDataNeed
- All Implemented Interfaces:
DataNeedInterface
This data need is used to request the addition of a metering point to an already existing Collective Energy Sharing Unit (CESU).
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCESUJoinRequestDataNeed(@Nullable Integer participationFactor, Granularity minGranularity, Granularity maxGranularity, @Nullable EnergyDirection energyDirection) -
Method Summary
Modifier and TypeMethodDescriptionIndicates whether the final customer should produce or consume energy.Returns the highest acceptable data granularity.Returns the granularity in which data should be requested from the MDA.The factor with which the accounting point will participate in the CESU.Methods 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
-
CESUJoinRequestDataNeed
protected CESUJoinRequestDataNeed() -
CESUJoinRequestDataNeed
public CESUJoinRequestDataNeed(@Nullable Integer participationFactor, Granularity minGranularity, Granularity maxGranularity, @Nullable EnergyDirection energyDirection)
-
-
Method Details
-
participationFactor
The factor with which the accounting point will participate in the CESU.- Returns:
- the participation factor of the accounting point in the CESU.
-
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:
-
energyDirection
Indicates whether the final customer should produce or consume energy.- Returns:
- consumption, if the final customer is going to consume electricity produced by other members of the CESU, or if the final customer is going to produce energy for the other members.
-