6 #ifndef __TFW_SENSOR_IDL__
7 #define __TFW_SENSOR_IDL__
17 constant
int ERR_NOT_SUPPORTED = 1;
20 constant
int NUMERIC = 0;
21 constant
int DISCRETE_ON_OFF = 1;
22 constant
int DISCRETE_MULTI = 2;
46 constant
int UNSPECIFIED = 0;
48 constant
int VOLTAGE = 1;
49 constant
int CURRENT = 2;
50 constant
int UNBALANCE_CURRENT = 3;
51 constant
int POWER = 4;
52 constant
int POWER_FACTOR = 5;
53 constant
int ENERGY = 6;
54 constant
int FREQUENCY = 7;
55 constant
int TEMPERATURE = 8;
56 constant
int HUMIDITY = 9;
57 constant
int AIR_FLOW = 10;
58 constant
int AIR_PRESSURE = 11;
59 constant
int CONTACT_CLOSURE = 12;
60 constant
int ON_OFF_SENSOR = 13;
61 constant
int TRIP_SENSOR = 14;
62 constant
int VIBRATION = 15;
63 constant
int WATER_LEAK = 16;
64 constant
int SMOKE_DETECTOR = 17;
66 constant
int TOTAL_HARMONIC_DISTORTION = 18;
68 constant
int MASS = 19;
69 constant
int ELECTRICAL_RESISTANCE = 20;
70 constant
int FLUX = 21;
72 constant
int LUMINOUS_INTENSITY = 22;
73 constant
int ACCELERATION = 23;
74 constant
int MAGNETIC_FLUX_DENSITY = 24;
75 constant
int ELECTRIC_FIELD_STRENGTH = 25;
76 constant
int MAGNETIC_FIELD_STRENGTH = 26;
77 constant
int ANGLE = 27;
79 constant
int SELECTION = 28;
80 constant
int FAULT_STATE = 29;
81 constant
int POWER_QUALITY = 30;
82 constant
int ROTATIONAL_SPEED = 31;
84 constant
int LUMINOUS_ENERGY = 32;
85 constant
int LUMINOUS_FLUX = 33;
86 constant
int ILLUMINANCE = 34;
87 constant
int LUMINOUS_EMITTANCE = 35;
89 constant
int MOTION = 36;
90 constant
int OCCUPANCY = 37;
91 constant
int TAMPER = 38;
92 constant
int DRY_CONTACT = 39;
93 constant
int POWERED_DRY_CONTACT = 40;
95 constant
int ABSOLUTE_HUMIDITY = 41;
96 constant
int DOOR_STATE = 42;
97 constant
int DOOR_LOCK_STATE = 43;
98 constant
int DOOR_HANDLE_LOCK = 44;
100 constant
int CREST_FACTOR = 45;
102 constant
int DISTANCE = 46;
103 constant
int LENGTH = 47;
106 constant
int NONE = 0;
107 constant
int VOLT = 1;
108 constant
int AMPERE = 2;
109 constant
int WATT = 3;
110 constant
int VOLT_AMP = 4;
111 constant
int WATT_HOUR = 5;
112 constant
int VOLT_AMP_HOUR = 6;
113 constant
int DEGREE_CELSIUS = 7;
115 constant
int PERCENT = 9;
116 constant
int METER_PER_SEC = 10;
117 constant
int PASCAL = 11;
119 constant
int RPM = 13;
120 constant
int METER = 14;
121 constant
int HOUR = 15;
122 constant
int MINUTE = 16;
123 constant
int SECOND = 17;
125 constant
int VOLT_AMP_REACTIVE = 18;
126 constant
int VOLT_AMP_REACTIVE_HOUR = 19;
128 constant
int GRAM = 20;
129 constant
int OHM = 21;
130 constant
int LITERS_PER_HOUR = 22;
132 constant
int CANDELA = 23;
133 constant
int METER_PER_SQARE_SEC = 24;
134 constant
int TESLA = 25;
135 constant
int VOLT_PER_METER = 26;
136 constant
int VOLT_PER_AMPERE = 27;
137 constant
int DEGREE = 28;
139 constant
int DEGREE_FAHRENHEIT = 29;
140 constant
int KELVIN = 30;
141 constant
int JOULE = 31;
142 constant
int COULOMB = 32;
143 constant
int NIT = 33;
144 constant
int LUMEN = 34;
145 constant
int LUMEN_SECOND = 35;
146 constant
int LUX = 36;
147 constant
int PSI = 37;
148 constant
int NEWTON = 38;
149 constant
int FOOT = 39;
150 constant
int FOOT_PER_SEC = 40;
151 constant
int CUBIC_METER = 41;
152 constant
int RADIANT = 42;
153 constant
int STERADIANT = 43;
154 constant
int HENRY = 44;
155 constant
int FARAD = 45;
156 constant
int MOL = 46;
157 constant
int BECQUEREL = 47;
158 constant
int GRAY = 48;
159 constant
int SIEVERT = 49;
160 constant
int G_PER_CUBIC_METER = 50;
170 valueobject TypeSpecChangedEvent extends
idl.Event {
Sensor interface
Definition: Sensor.idl:15
boolean isTypeChangeAllowed()
Check whether the sensor type can be changed using setType().
int setType(in int type, in int unit)
Set sensor type and unit.
TypeSpec newTypeSpec
Type specification after change.
Definition: Sensor.idl:172
NormalAlarmedState
Definition: Sensor.idl:35
@ NORMAL
normal (not alarmed)
Definition: Sensor.idl:36
OnOffState
Sensor states for DISCRETE_ON_OFF sensors.
Definition: Sensor.idl:25
@ OFF
off
Definition: Sensor.idl:26
OkFaultState
Definition: Sensor.idl:40
@ OK
OK.
Definition: Sensor.idl:41
TypeSpec getTypeSpec()
Retrieve the sensor type specification.
OpenClosedState
Definition: Sensor.idl:30
@ OPEN
open
Definition: Sensor.idl:31
Basic IDL definitions.
Definition: Event.idl:10
Sensors Model.
Definition: AccumulatingNumericSensor.idl:13
Complete sensor type specification.
Definition: Sensor.idl:163
int readingtype
Sensor reading type
Definition: Sensor.idl:164
int unit
Sensor unit
Definition: Sensor.idl:166
int type
Sensor type
Definition: Sensor.idl:165