org.flexiblepower.ral.messages
public abstract class ControlSpaceRegistration extends ResourceMessage
ControllerManager
), it will send a
ControlSpaceRegistration
message. This message is used to inform the energy application about the
capabilities of the appliance. Each of the ControlSpace categories will have its own registration class that is
derived from this one. There are no additional attributes in this class. Attributes about specific capabilities are
added in the implementation classes.Constructor and Description |
---|
ControlSpaceRegistration(java.lang.String resourceId,
java.util.Date timestamp,
javax.measure.Measurable<javax.measure.quantity.Duration> allocationDelay)
Constructs the
ControlSpaceRegistration object with the given parameters. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
javax.measure.Measurable<javax.measure.quantity.Duration> |
getAllocationDelay() |
int |
hashCode() |
protected void |
toString(java.lang.StringBuilder sb) |
getResourceId, getResourceMessageId, getTimestamp, toString
public ControlSpaceRegistration(java.lang.String resourceId, java.util.Date timestamp, javax.measure.Measurable<javax.measure.quantity.Duration> allocationDelay)
ControlSpaceRegistration
object with the given parameters.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.public javax.measure.Measurable<javax.measure.quantity.Duration> getAllocationDelay()
public int hashCode()
hashCode
in class ResourceMessage
public boolean equals(java.lang.Object obj)
equals
in class ResourceMessage
protected void toString(java.lang.StringBuilder sb)
toString
in class ResourceMessage