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;
105 constant
int UNBALANCE_VOLTAGE = 48;
107 constant
int PARTICLE_DENSITY = 49;
110 constant
int NONE = 0;
111 constant
int VOLT = 1;
112 constant
int AMPERE = 2;
113 constant
int WATT = 3;
114 constant
int VOLT_AMP = 4;
115 constant
int WATT_HOUR = 5;
116 constant
int VOLT_AMP_HOUR = 6;
117 constant
int DEGREE_CELSIUS = 7;
119 constant
int PERCENT = 9;
120 constant
int METER_PER_SEC = 10;
121 constant
int PASCAL = 11;
123 constant
int RPM = 13;
124 constant
int METER = 14;
125 constant
int HOUR = 15;
126 constant
int MINUTE = 16;
127 constant
int SECOND = 17;
129 constant
int VOLT_AMP_REACTIVE = 18;
130 constant
int VOLT_AMP_REACTIVE_HOUR = 19;
132 constant
int GRAM = 20;
133 constant
int OHM = 21;
134 constant
int LITERS_PER_HOUR = 22;
136 constant
int CANDELA = 23;
137 constant
int METER_PER_SQUARE_SEC = 24;
138 constant
int METER_PER_SQARE_SEC = 24;
139 constant
int TESLA = 25;
140 constant
int VOLT_PER_METER = 26;
141 constant
int VOLT_PER_AMPERE = 27;
142 constant
int DEGREE = 28;
144 constant
int DEGREE_FAHRENHEIT = 29;
145 constant
int KELVIN = 30;
146 constant
int JOULE = 31;
147 constant
int COULOMB = 32;
148 constant
int NIT = 33;
149 constant
int LUMEN = 34;
150 constant
int LUMEN_SECOND = 35;
151 constant
int LUX = 36;
152 constant
int PSI = 37;
153 constant
int NEWTON = 38;
154 constant
int FOOT = 39;
155 constant
int FOOT_PER_SEC = 40;
156 constant
int CUBIC_METER = 41;
157 constant
int RADIANT = 42;
158 constant
int STERADIANT = 43;
159 constant
int HENRY = 44;
160 constant
int FARAD = 45;
161 constant
int MOL = 46;
162 constant
int BECQUEREL = 47;
163 constant
int GRAY = 48;
164 constant
int SIEVERT = 49;
165 constant
int G_PER_CUBIC_METER = 50;
166 constant
int UG_PER_CUBIC_METER = 51;
Sensor interface
Definition: Sensor.idl:15
NormalAlarmedState
Definition: Sensor.idl:35
@ NORMAL
normal (not alarmed)
Definition: Sensor.idl:36
boolean isTypeChangeAllowed()
Check whether the sensor type can be changed using setType().
OnOffState
Sensor states for DISCRETE_ON_OFF sensors.
Definition: Sensor.idl:25
@ OFF
off
Definition: Sensor.idl:26
OpenClosedState
Definition: Sensor.idl:30
@ OPEN
open
Definition: Sensor.idl:31
TypeSpec getTypeSpec()
Retrieve the sensor type specification.
int setType(in int type, in int unit)
Set sensor type and unit.
OkFaultState
Definition: Sensor.idl:40
@ OK
OK.
Definition: Sensor.idl:41
Basic IDL definitions.
Definition: Event.idl:10
Sensors Model.
Definition: AccumulatingNumericSensor.idl:13
Common base for all events.
Definition: Event.idl:13
Event: The type specification of the sensor changed.
Definition: Sensor.idl:176
TypeSpec newTypeSpec
Type specification after change.
Definition: Sensor.idl:178
TypeSpec oldTypeSpec
Type specification before change.
Definition: Sensor.idl:177
Complete sensor type specification.
Definition: Sensor.idl:169
int unit
Sensor unit
Definition: Sensor.idl:172
int readingtype
Sensor reading type
Definition: Sensor.idl:170
int type
Sensor type
Definition: Sensor.idl:171