org.flexiblepower.efi.uncontrolled
public final class UncontrolledRegistration extends ControlSpaceRegistration
Constructor and Description |
---|
UncontrolledRegistration(java.lang.String resourceId,
java.util.Date timestamp,
javax.measure.Measurable<javax.measure.quantity.Duration> allocationDelay,
CommoditySet supportedCommodities,
ConstraintListMap supportedCommodityCurtailments) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
<FQ extends javax.measure.quantity.Quantity> |
getCurtailment(Commodity<?,FQ> commodity) |
CommoditySet |
getSupportedCommodities() |
int |
hashCode() |
boolean |
supportsCommodity(Commodity<?,?> commodity) |
protected void |
toString(java.lang.StringBuilder sb) |
getAllocationDelay
getResourceId, getResourceMessageId, getTimestamp, toString
public UncontrolledRegistration(java.lang.String resourceId, java.util.Date timestamp, javax.measure.Measurable<javax.measure.quantity.Duration> allocationDelay, CommoditySet supportedCommodities, ConstraintListMap supportedCommodityCurtailments)
resourceId
- The resource identifiertimestamp
- The moment when this constructor is called)allocationDelay
- The duration of the delay in communications channel from the moment of sending to the moment the
command is executed up by the device.supportedCommodityCurtailments
- A map of every applicable Commodity for the appliance as key and a ConstriantList representing the
list of possible curtail steps as an value. The value of the map is optional and will only be provided
if the appliance support curtailing, otherwise it must be null.public <FQ extends javax.measure.quantity.Quantity> ConstraintList<FQ> getCurtailment(Commodity<?,FQ> commodity)
commodity
- The commodity for which the ConstraintList
will be returnednull
if not availablepublic CommoditySet getSupportedCommodities()
public boolean supportsCommodity(Commodity<?,?> commodity)
true
if the given commodity is supportedpublic int hashCode()
hashCode
in class ControlSpaceRegistration
public boolean equals(java.lang.Object obj)
equals
in class ControlSpaceRegistration
protected void toString(java.lang.StringBuilder sb)
toString
in class ControlSpaceRegistration