org.flexiblepower.ral.messages
public final class AllocationStatusUpdate extends ResourceMessage
Allocation
message, it is good practice to provide feedback to the
energy application on the follow up actions. This can be done via this message. All ControlSpace categories use this
AllocationStatusUpdate
message; there are no specific derivations in use.Constructor and Description |
---|
AllocationStatusUpdate(java.util.Date timestamp,
Allocation allocation,
AllocationStatus status,
java.lang.String additionalInfo) |
AllocationStatusUpdate(java.lang.String resourceId,
java.util.Date timestamp,
java.util.UUID allocationId,
AllocationStatus status,
java.lang.String additionalInfo) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAdditionalInfo() |
java.util.UUID |
getAllocationId() |
AllocationStatus |
getStatus() |
int |
hashCode() |
protected void |
toString(java.lang.StringBuilder sb) |
getResourceId, getResourceMessageId, getTimestamp, toString
public AllocationStatusUpdate(java.util.Date timestamp, Allocation allocation, AllocationStatus status, java.lang.String additionalInfo)
timestamp
- The moment when this constructor is calledallocation
- the Allocation
to which this update is the responsestatus
- This attribute indicates the current status of the Allocation
. It assumes one of the values
specified in the AllocationStatus
enumeration.additionalInfo
- In addition to the status attribute additional and more specific information can be expressed in a
human readable format.public AllocationStatusUpdate(java.lang.String resourceId, java.util.Date timestamp, java.util.UUID allocationId, AllocationStatus status, java.lang.String additionalInfo)
resourceId
- The resource identifiertimestamp
- The moment when this constructor is calledallocationId
- An identifier that uniquely identifies the Allocation
message that this update refers to (the
ResourceMessage.getResourceMessageId()
).status
- This attribute indicates the current status of the Allocation
. It assumes one of the values
specified in the AllocationStatus
enumeration.additionalInfo
- In addition to the status attribute additional and more specific information can be expressed in a
human readable format.public java.util.UUID getAllocationId()
Allocation
message that this update refers to (the
ResourceMessage.getResourceMessageId()
).public AllocationStatus getStatus()
Allocation
. It assumes one of the values
specified in the AllocationStatus
enumeration.public java.lang.String getAdditionalInfo()
public int hashCode()
hashCode
in class ResourceMessage
public boolean equals(java.lang.Object obj)
equals
in class ResourceMessage
protected void toString(java.lang.StringBuilder sb)
toString
in class ResourceMessage