Previous Topic

Next Topic

Book Contents

Book Index

General Attributes

The General Attributes (com.prosyst.mbs.services.da.attributes.Attributes) are grouped into four groups.

The key of the first group of attributes must be Attributes.ATTRIBUTE_QUANTITY, which represents the quantity that the item uses. For example Sensor might be com.prosyst.mbs.services.units.quantity.Temperature. The value of this attribute must be a string that is equal to the fully qualified class name of the quantity. For example com.prosyst.mbs.services.units.quantity.Temperature.

The key of the second group of attributes must be Attributes.ATTRIBUTE_OPERATES, which represents the equipment operated by the item. The value of this attribute must be one of the following constants:

The key of the third group of attributes must be Attributes.ATTRIBUTE_CHARACTERISTIC, which define some property of the measured value. For example when it comes to Attributes.ATTRIBUTE_QUANTITY=com.prosyst.mbs.services.units.quantity.Time there is not real medium to be measured but the value itself may represent different things like remaining time of a program or elapsed time of a timer. Another example might be a smart grid where the produced and consumed power are measured separately, with the need for the SensorAttributes.ATTRIBUTE_MEDIUM to clarify that the unit measures electricity and the value of this attribute shows whether it is produced/exported or consumed/imported. The value of this attribute must be one of the following constants:

The key of the fourth group attributes must be Attributes.ATTRIBUTE_EQUIPMENT which represents the Device Item configures. The value can be one of the following constants: