org.flexiblepower.efi.timeshifter
public class TimeShifterRegistration extends ControlSpaceRegistration
TimeShifterRegistration contains information about the commodities supported by the appliance.| Constructor and Description |
|---|
TimeShifterRegistration(java.lang.String resourceId,
java.util.Date timestamp,
javax.measure.Measurable<javax.measure.quantity.Duration> allocationDelay,
CommoditySet supportedCommodities) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
CommoditySet |
getSupportedCommodities() |
int |
hashCode() |
boolean |
supportsCommodity(Commodity<?,?> commodity) |
protected void |
toString(java.lang.StringBuilder sb) |
getAllocationDelaygetResourceId, getResourceMessageId, getTimestamp, toStringpublic TimeShifterRegistration(java.lang.String resourceId,
java.util.Date timestamp,
javax.measure.Measurable<javax.measure.quantity.Duration> allocationDelay,
CommoditySet supportedCommodities)
resourceId - The resource identifiertimestamp - The moment when this constructor is calledallocationDelay - The duration of the delay in communications channel from the moment of sending to the moment the
command is executed up by the device.supportedCommodities - The set of all commodities that can be produced or consumed by the appliance.public CommoditySet getSupportedCommodities()
public boolean supportsCommodity(Commodity<?,?> commodity)
true if the commodity is supportedpublic int hashCode()
hashCode in class ControlSpaceRegistrationpublic boolean equals(java.lang.Object obj)
equals in class ControlSpaceRegistrationprotected void toString(java.lang.StringBuilder sb)
toString in class ControlSpaceRegistration