Previous Topic

Next Topic

Book Contents

Book Index

Sensor

The Sensor (com.prosyst.mbs.services.da.items.Sensor) device item represents a sensor that measures a physical property. All valid values lie within the range. To present the type of the value you should use the generic parameter Q which extends Quantity<Q>.

Property

Access

Property Class

Description

range

RE

Range<Q>

Property for the value range. All valid values lie within this range.

value

RE

Q

Property for the measured value.

To specify what the Sensor measures it is necessary to add a specific attribute. The key of this attribute is SensorAttributes.ATTRIBUTE_MEDIUM and the value can be one of the following constants:

To specify the Sensor type it is necessary to add a specific attribute with key SensorAttributes.ATTRIBUTE_TYPE. The value of this attribute can be one of the following constants: