org.flexiblepower.efi.timeshifter
public final class TimeShifterAllocation extends Allocation
Constructor and Description |
---|
TimeShifterAllocation(TimeShifterUpdate resourceUpdate,
java.util.Date timestamp,
boolean isEmergencyAllocation,
java.util.List<SequentialProfileAllocation> sequentialProfileAllocation)
Constructs a new
TimeShifterAllocation object as a response to a specific ControlSpaceUpdate . |
TimeShifterAllocation(TimeShifterUpdate resourceUpdate,
java.util.Date timestamp,
boolean isEmergencyAllocation,
SequentialProfileAllocation... sequentialProfileAllocation)
Constructs a new
TimeShifterAllocation object as a response to a specific ControlSpaceUpdate . |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.util.List<SequentialProfileAllocation> |
getSequentialProfileAllocation() |
int |
hashCode() |
protected void |
toString(java.lang.StringBuilder sb) |
getControlSpaceUpdateId, isEmergencyAllocation
getResourceId, getResourceMessageId, getTimestamp, toString
public TimeShifterAllocation(TimeShifterUpdate resourceUpdate, java.util.Date timestamp, boolean isEmergencyAllocation, java.util.List<SequentialProfileAllocation> sequentialProfileAllocation)
TimeShifterAllocation
object as a response to a specific ControlSpaceUpdate
.timestamp
- The moment when this constructor is calledresourceUpdate
- 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.sequentialProfileAllocation
- A list containing one or more SequentialProfileAllocations.public TimeShifterAllocation(TimeShifterUpdate resourceUpdate, java.util.Date timestamp, boolean isEmergencyAllocation, SequentialProfileAllocation... sequentialProfileAllocation)
TimeShifterAllocation
object as a response to a specific ControlSpaceUpdate
.timestamp
- The moment when this constructor is calledresourceUpdate
- 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.sequentialProfileAllocation
- A list containing one or more SequentialProfileAllocations.public java.util.List<SequentialProfileAllocation> getSequentialProfileAllocation()
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