org.flexiblepower.efi.buffer
public class BufferRegistration<Q extends javax.measure.quantity.Quantity> extends ControlSpaceRegistration
Constructor and Description |
---|
BufferRegistration(java.lang.String resourceId,
java.util.Date timestamp,
javax.measure.Measurable<javax.measure.quantity.Duration> allocationDelay,
java.lang.String fillLevelLabel,
javax.measure.unit.Unit<Q> fillLevelUnit,
java.util.Collection<Actuator> actuators)
Constructs the
BufferRegistration object with the given parameters. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
Actuator |
getActuator(int id) |
java.util.Collection<Actuator> |
getActuators() |
java.lang.String |
getFillLevelLabel() |
javax.measure.unit.Unit<Q> |
getFillLevelUnit() |
int |
hashCode() |
protected void |
toString(java.lang.StringBuilder sb) |
getAllocationDelay
getResourceId, getResourceMessageId, getTimestamp, toString
public BufferRegistration(java.lang.String resourceId, java.util.Date timestamp, javax.measure.Measurable<javax.measure.quantity.Duration> allocationDelay, java.lang.String fillLevelLabel, javax.measure.unit.Unit<Q> fillLevelUnit, java.util.Collection<Actuator> actuators)
BufferRegistration
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.fillLevelLabel
- A label in human readable format that is being used to refer to the fill level. E.g. tap water
temperature.fillLevelUnit
- The unit that is applicable to this buffer. E.g. degrees Celsius.actuators
- This attribute is being used to express the capabilities of all the actuators this buffer appliance
has. E.g. a gas burner and a Stirling engine. This may not be null
or be empty.public java.util.Collection<Actuator> getActuators()
public Actuator getActuator(int id)
id
- The identifier of the actuatornull
if it is not availablepublic java.lang.String getFillLevelLabel()
public javax.measure.unit.Unit<Q> getFillLevelUnit()
public 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