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 Summary
ConstructorsConstructorDescriptionCCMORequest(AtPermissionRequest permissionRequest, @Nullable AllowedGranularity replacementGranularity, AtConfiguration configuration, DataNeed dataNeed) CCMORequest(DsoIdAndMeteringPoint dsoIdAndMeteringPoint, CCMOTimeFrame timeframe, String cmRequestId, String messageId, AllowedGranularity granularity, AllowedTransmissionCycle transmissionCycle, AtConfiguration configuration, ZonedDateTime timestamp, DataNeed dataNeed) 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) Creates an instance of aCCMORequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecmRequestIdrecord component.Returns the value of theconfigurationrecord component.dataNeed()Returns the value of thedataNeedrecord component.dsoId()Returns the value of thedsoIdAndMeteringPointrecord component.end()@Nullable String@Nullable EnergyDirectionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thegivenEnergyDirectionrecord component.Returns the value of thegranularityrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of themessageIdrecord component.@Nullable BigDecimalpartFact()Returns the value of theparticipationFactorrecord component.Returns theRequestDataTypedepending on the given data need.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.start()Returns the value of thetimeframerecord component.Returns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetransmissionCyclerecord component.
-
Constructor Details
-
CCMORequest
public CCMORequest(AtPermissionRequest permissionRequest, @Nullable AllowedGranularity replacementGranularity, AtConfiguration configuration, DataNeed dataNeed) -
CCMORequest
public CCMORequest(DsoIdAndMeteringPoint dsoIdAndMeteringPoint, CCMOTimeFrame timeframe, String cmRequestId, String messageId, AllowedGranularity granularity, AllowedTransmissionCycle transmissionCycle, AtConfiguration configuration, ZonedDateTime timestamp, DataNeed dataNeed) -
CCMORequest
public 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) Creates an instance of aCCMORequestrecord class.- Parameters:
dsoIdAndMeteringPoint- the value for thedsoIdAndMeteringPointrecord componenttimeframe- the value for thetimeframerecord componentcmRequestId- the value for thecmRequestIdrecord componentmessageId- the value for themessageIdrecord componentgranularity- the value for thegranularityrecord componenttransmissionCycle- the value for thetransmissionCyclerecord componentconfiguration- the value for theconfigurationrecord componenttimestamp- the value for thetimestamprecord componentdataNeed- the value for thedataNeedrecord componentgivenEnergyDirection- the value for thegivenEnergyDirectionrecord componentparticipationFactor- the value for theparticipationFactorrecord component
-
-
Method Details
-
dsoId
-
start
-
end
-
meteringPointId
-
eligiblePartyId
-
energyCommunityId
-
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
Returns theRequestDataTypedepending 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
RequestDataTypedepending on the given data need.
-
messageCode
-
partFact
-
energyDirection
-
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. -
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. -
equals
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 withObjects::equals(Object,Object). -
dsoIdAndMeteringPoint
Returns the value of thedsoIdAndMeteringPointrecord component.- Returns:
- the value of the
dsoIdAndMeteringPointrecord component
-
timeframe
Returns the value of thetimeframerecord component.- Returns:
- the value of the
timeframerecord component
-
cmRequestId
Returns the value of thecmRequestIdrecord component.- Returns:
- the value of the
cmRequestIdrecord component
-
messageId
Returns the value of themessageIdrecord component.- Returns:
- the value of the
messageIdrecord component
-
granularity
Returns the value of thegranularityrecord component.- Returns:
- the value of the
granularityrecord component
-
transmissionCycle
Returns the value of thetransmissionCyclerecord component.- Returns:
- the value of the
transmissionCyclerecord component
-
configuration
Returns the value of theconfigurationrecord component.- Returns:
- the value of the
configurationrecord component
-
timestamp
Returns the value of thetimestamprecord component.- Returns:
- the value of the
timestamprecord component
-
dataNeed
Returns the value of thedataNeedrecord component.- Returns:
- the value of the
dataNeedrecord component
-
givenEnergyDirection
Returns the value of thegivenEnergyDirectionrecord component.- Returns:
- the value of the
givenEnergyDirectionrecord component
-
participationFactor
Returns the value of theparticipationFactorrecord component.- Returns:
- the value of the
participationFactorrecord component
-