org.flexiblepower.ral.messages
public abstract class Allocation extends ResourceMessage
Allocation message is always a response from the energy application to a ControlSpaceUpdate
message. It contains instructions on how to use (or fix) the flexibility described in the ControlSpaceUpdate.
Each ControlSpace category has its own Allocation message that is derived from this one.| Constructor and Description |
|---|
Allocation(java.util.Date timestamp,
ControlSpaceUpdate controlSpaceUpdate)
Constructs a new
Allocation object as a response to a specific ControlSpaceUpdate which is no
emergency. |
Allocation(java.util.Date timestamp,
ControlSpaceUpdate controlSpaceUpdate,
boolean isEmergencyAllocation)
Constructs a new
Allocation object as a response to a specific ControlSpaceUpdate. |
Allocation(java.lang.String resourceId,
java.util.Date timestamp,
java.util.UUID controlSpaceUpdateId,
boolean isEmergencyAllocation)
Constructs a new
Allocation object. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.util.UUID |
getControlSpaceUpdateId() |
int |
hashCode() |
boolean |
isEmergencyAllocation() |
protected void |
toString(java.lang.StringBuilder sb) |
getResourceId, getResourceMessageId, getTimestamp, toStringpublic Allocation(java.util.Date timestamp,
ControlSpaceUpdate controlSpaceUpdate)
Allocation object as a response to a specific ControlSpaceUpdate which is no
emergency. This object will return false for the isEmergencyAllocation() method.timestamp - The moment when this constructor is calledcontrolSpaceUpdate - The ControlSpaceUpdate object to which this Allocation is responding to.public Allocation(java.util.Date timestamp,
ControlSpaceUpdate controlSpaceUpdate,
boolean isEmergencyAllocation)
Allocation object as a response to a specific ControlSpaceUpdate.timestamp - The moment when this constructor is calledcontrolSpaceUpdate - The ControlSpaceUpdate object to which this Allocation is responding to.isEmergencyAllocation - This Boolean value is optional and is true when a grid emergency situation occurs. (e.g. congestion,
black start etc.) The energy app then strongly advices the appliance driver to adapt to the sent
allocation in order to maintain grid stability.public Allocation(java.lang.String resourceId,
java.util.Date timestamp,
java.util.UUID controlSpaceUpdateId,
boolean isEmergencyAllocation)
Allocation object.resourceId - The resource identifiertimestamp - The moment when this constructor is calledcontrolSpaceUpdateId - An identifier that uniquely identifies the ControlSpaceUpdate message that this message is a
response to.isEmergencyAllocation - This Boolean value is optional and is true when a grid emergency situation occurs. (e.g. congestion,
black start etc.) The energy app then strongly advices the appliance driver to adapt to the sent
allocation in order to maintain grid stability.public java.util.UUID getControlSpaceUpdateId()
public boolean isEmergencyAllocation()
public int hashCode()
hashCode in class ResourceMessagepublic boolean equals(java.lang.Object obj)
equals in class ResourceMessageprotected void toString(java.lang.StringBuilder sb)
toString in class ResourceMessage