Sensor metadata base class.
| Modifiers | Name | Description |
|---|---|---|
static class |
SensorMetadata.Metadata |
Sensor metadata by quantity name. |
static class |
SensorMetadata.QuantityMetadata |
Quantity metadata for each quantity that a sensor can measure. |
| Type | Name and description |
|---|---|
String |
infoUser-defined sensor class information. |
SensorMetadata.Metadata |
metadataMetadata for various quantities that the sensor can measure. |
String |
sensorClassSensor class name. |
| Constructor and description |
|---|
protected SensorMetadata
(Performative perf) |
protected SensorMetadata
(Message msg, Performative perf) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
SensorMetadata |
add(String qty, SensorMetadata.QuantityMetadata md)Add sensor metadata by quantity name. |
|
SensorMetadata |
add(String qty, Map md)Convenience method to enable syntax to add metadata easily. |
|
String |
toString() |
| Methods inherited from class | Name |
|---|---|
class Message |
toString, setSender, getSender, setMessageID, getMessageID, setInReplyTo, getInReplyTo, setSentAt, getSentAt, setPerformative, getPerformative, setRecipient, getRecipient, wait, wait, wait, equals, hashCode, getClass, notify, notifyAll |
User-defined sensor class information.
Metadata for various quantities that the sensor can measure.
Sensor class name. The class name is hierarchical, with "/" separators
between parts. Examples:
temperature/TS201: temperature sensor model number TS201temperature/TS201/industrial: temperature sensor model number TS201, industrial variantAdd sensor metadata by quantity name.
qty - quantity namemd - sensor metadata Convenience method to enable syntax to add metadata easily.
Example:
req = new RegisterSensorClassReq(sensorClass: 'CTD/X761').add('salinity', [units: 'ppt', scalar: true, minimum: 0, maximum: 50])
qty - quantity namemd - sensor metadata as key-value pairsCopyright 2013-21, Acoustic Research Laboratory, National University of Singapore, and Subnero Pte Ltd