Record Class CCMORequest

java.lang.Object
java.lang.Record
energy.eddie.regionconnector.at.eda.requests.CCMORequest

public record CCMORequest(DsoIdAndMeteringPoint dsoIdAndMeteringPoint, CCMOTimeFrame timeframe, String cmRequestId, String messageId, AllowedGranularity granularity, AllowedTransmissionCycle transmissionCycle, AtConfiguration configuration, ZonedDateTime timestamp, DataNeed dataNeed, Optional<EnergyDirection> givenEnergyDirection, Optional<Integer> participationFactor) extends Record
  • Constructor Details

  • Method Details

    • dsoId

      public String dsoId()
    • start

      public LocalDate start()
    • end

      public Optional<LocalDate> end()
    • meteringPointId

      public Optional<String> meteringPointId()
    • eligiblePartyId

      public String eligiblePartyId()
    • energyCommunityId

      public @Nullable String energyCommunityId()
    • senderId

      public String senderId()
      Returns either the eligible party ID or the energy community ID depending on whether this is a request for an energy community process or not.
      Returns:
      either the eligble party ID or the energy community ID depending on the market process.
      See Also:
    • requestDataType

      public RequestDataType requestDataType()
      Returns the RequestDataType depending on the given data need. The RequestDataType determines in which kind of ebutilities process the CCMO Request is going to be used in.
      Returns:
      the RequestDataType depending on the given data need.
    • messageCode

      public String messageCode()
    • partFact

      public @Nullable BigDecimal partFact()
    • energyDirection

      public @Nullable EnergyDirection energyDirection()
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • dsoIdAndMeteringPoint

      public DsoIdAndMeteringPoint dsoIdAndMeteringPoint()
      Returns the value of the dsoIdAndMeteringPoint record component.
      Returns:
      the value of the dsoIdAndMeteringPoint record component
    • timeframe

      public CCMOTimeFrame timeframe()
      Returns the value of the timeframe record component.
      Returns:
      the value of the timeframe record component
    • cmRequestId

      public String cmRequestId()
      Returns the value of the cmRequestId record component.
      Returns:
      the value of the cmRequestId record component
    • messageId

      public String messageId()
      Returns the value of the messageId record component.
      Returns:
      the value of the messageId record component
    • granularity

      public AllowedGranularity granularity()
      Returns the value of the granularity record component.
      Returns:
      the value of the granularity record component
    • transmissionCycle

      public AllowedTransmissionCycle transmissionCycle()
      Returns the value of the transmissionCycle record component.
      Returns:
      the value of the transmissionCycle record component
    • configuration

      public AtConfiguration configuration()
      Returns the value of the configuration record component.
      Returns:
      the value of the configuration record component
    • timestamp

      public ZonedDateTime timestamp()
      Returns the value of the timestamp record component.
      Returns:
      the value of the timestamp record component
    • dataNeed

      public DataNeed dataNeed()
      Returns the value of the dataNeed record component.
      Returns:
      the value of the dataNeed record component
    • givenEnergyDirection

      public Optional<EnergyDirection> givenEnergyDirection()
      Returns the value of the givenEnergyDirection record component.
      Returns:
      the value of the givenEnergyDirection record component
    • participationFactor

      public Optional<Integer> participationFactor()
      Returns the value of the participationFactor record component.
      Returns:
      the value of the participationFactor record component