org.flexiblepower.efi.unconstrained
public class UnconstrainedAllocation extends Allocation
Allocation
and contains specific allocation information for a unconstrained
appliance.Constructor and Description |
---|
UnconstrainedAllocation(UnconstrainedUpdate resourceUpdate,
java.util.Date timestamp,
boolean isEmergencyAllocation,
java.util.Collection<RunningModeSelector> runningModeSelectors)
Constructs a new
UnconstrainedAllocation object as a response to a specific ControlSpaceUpdate . |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.util.Set<RunningModeSelector> |
getRunningModeSelectors() |
int |
hashCode() |
protected void |
toString(java.lang.StringBuilder sb) |
getControlSpaceUpdateId, isEmergencyAllocation
getResourceId, getResourceMessageId, getTimestamp, toString
public UnconstrainedAllocation(UnconstrainedUpdate resourceUpdate, java.util.Date timestamp, boolean isEmergencyAllocation, java.util.Collection<RunningModeSelector> runningModeSelectors)
UnconstrainedAllocation
object as a response to a specific ControlSpaceUpdate
.resourceUpdate
- The ControlSpaceUpdate
object to which this Allocation
is responding to.timestamp
- The moment when this constructor is calledisEmergencyAllocation
- 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.runningModeSelectors
- public java.util.Set<RunningModeSelector> getRunningModeSelectors()
RunningModeSelector
objects.public int hashCode()
hashCode
in class Allocation
public boolean equals(java.lang.Object obj)
equals
in class Allocation
protected void toString(java.lang.StringBuilder sb)
toString
in class Allocation