Class CESUJoinRequestDataNeed

java.lang.Object
energy.eddie.dataneeds.needs.DataNeed
energy.eddie.dataneeds.needs.CESUJoinRequestDataNeed
All Implemented Interfaces:
DataNeedInterface

@Entity public class CESUJoinRequestDataNeed extends DataNeed
This data need is used to request the addition of a metering point to an already existing Collective Energy Sharing Unit (CESU).
  • Field Details

  • Constructor Details

    • CESUJoinRequestDataNeed

      protected CESUJoinRequestDataNeed()
    • CESUJoinRequestDataNeed

      public CESUJoinRequestDataNeed(@Nullable Integer participationFactor, Granularity minGranularity, Granularity maxGranularity, @Nullable EnergyDirection energyDirection)
  • Method Details

    • participationFactor

      public Optional<Integer> 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

      public Granularity minGranularity()
      Returns the granularity in which data should be requested from the MDA. If the data is not available in this granularity and maxGranularity() 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 by maxGranularity(), then the permission request should be transitioned into an error state.
    • maxGranularity

      public Granularity maxGranularity()
      Returns the highest acceptable data granularity.
      See Also:
    • energyDirection

      public Optional<EnergyDirection> 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.