Raritan PX2/PX3 JSON-RPC API
Classes | Public Member Functions | Public Attributes | List of all members
lhxmodel::Sensor_4_0_2 Interface Reference

LHX Sensor Interface. More...

import"LhxSensor.idl";

Inheritance diagram for lhxmodel::Sensor_4_0_2:
sensors::Sensor_4_0_2

Classes

struct  MetaData
 Sensor's self describing data. More...
 
struct  NumThresholds
 Numerical sensor thresholds. More...
 
struct  Reading
 Sensor reading. More...
 

Public Member Functions

MetaData getMetaData ()
 Retrieve the LHX metadata. More...
 
NumThresholds getThresholds ()
 Retrieve Numeric Thresholds. More...
 
int setThresholds (in NumThresholds thresholds)
 Set Numeric Thresholds. More...
 
Reading getReading ()
 Retrieve sensors reading. More...
 
- Public Member Functions inherited from sensors::Sensor_4_0_2
TypeSpec getTypeSpec ()
 Retrieve the sensor type specification. More...
 
int setType (in int type, in int unit)
 Set sensor type and unit. More...
 

Public Attributes

constant int STATE_NOT_AVAILABLE = -1
 Communication to sensor lost.
 
constant int STATE_CLOSED = 0
 Closed.
 
constant int STATE_OPEN = 1
 Open.
 
constant int STATE_NUM_NORMAL = 0
 Numerical sensor in normal range.
 
constant int STATE_NUM_ABOVE_UPPER_CRITICAL = 1
 Above upper critical threshold.
 
constant int STATE_NUM_ABOVE_UPPER_WARNING = 2
 Above upper warning threshold.
 
constant int STATE_NUM_BELOW_LOWER_WARNING = 3
 Below lower warning threshold.
 
constant int STATE_NUM_BELOW_LOWER_CRITICAL = 4
 Below lower critical threshold.
 
valueobject ThresholdsChangedEvent: event::UserEvent { NumThresholds oldThresholds
 Event: Sensor thresholds have been changed. More...
 
NumThresholds newThresholds
 Thresholds after change.
 
valueobject StateChangedEvent: idl::Event { Reading oldReading
 Event: Sensor state has changed. More...
 
Reading newReading
 Reading after change.
 
valueobject ReadingChangedEvent: idl::Event { Reading newReading
 Event: Sensor numeric reading has changed. More...
 
constant int ERR_INVALID_PARAM = 1
 Invalid parameters.
 
constant int ERR_NOT_SUPPORTED = 2
 Not supported.
 
- Public Attributes inherited from sensors::Sensor_4_0_2
constant int ERR_NOT_SUPPORTED = 1
 The operation is not supported.
 
constant int NUMERIC = 0
 Sensor reading type
 
constant int DISCRETE_ON_OFF = 1
 
constant int DISCRETE_MULTI = 2
 
constant int UNSPECIFIED = 0
 Sensor type
 
constant int VOLTAGE = 1
 
constant int CURRENT = 2
 
constant int UNBALANCE_CURRENT = 3
 
constant int POWER = 4
 
constant int POWER_FACTOR = 5
 
constant int ENERGY = 6
 
constant int FREQUENCY = 7
 
constant int TEMPERATURE = 8
 
constant int HUMIDITY = 9
 
constant int AIR_FLOW = 10
 
constant int AIR_PRESSURE = 11
 
constant int CONTACT_CLOSURE = 12
 
constant int ON_OFF_SENSOR = 13
 
constant int TRIP_SENSOR = 14
 
constant int VIBRATION = 15
 
constant int WATER_LEAK = 16
 
constant int SMOKE_DETECTOR = 17
 
constant int TOTAL_HARMONIC_DISTORTION = 18
 
constant int MASS = 19
 
constant int ELECTRICAL_RESISTANCE = 20
 
constant int FLUX = 21
 
constant int LUMINOUS_INTENSITY = 22
 
constant int ACCELERATION = 23
 
constant int MAGNETIC_FLUX_DENSITY = 24
 
constant int ELECTRIC_FIELD_STRENGTH = 25
 
constant int MAGNETIC_FIELD_STRENGTH = 26
 
constant int ANGLE = 27
 
constant int SELECTION = 28
 
constant int FAULT_STATE = 29
 
constant int POWER_QUALITY = 30
 
constant int ROTATIONAL_SPEED = 31
 
constant int LUMINOUS_ENERGY = 32
 
constant int LUMINOUS_FLUX = 33
 
constant int ILLUMINANCE = 34
 
constant int LUMINOUS_EMITTANCE = 35
 
constant int MOTION = 36
 
constant int OCCUPANCY = 37
 
constant int TAMPER = 38
 
constant int DRY_CONTACT = 39
 
constant int POWERED_DRY_CONTACT = 40
 
constant int ABSOLUTE_HUMIDITY = 41
 
constant int DOOR_STATE = 42
 
constant int DOOR_LOCK_STATE = 43
 
constant int DOOR_HANDLE_LOCK = 44
 
constant int NONE = 0
 Sensor unit
 
constant int VOLT = 1
 
constant int AMPERE = 2
 
constant int WATT = 3
 
constant int VOLT_AMP = 4
 
constant int WATT_HOUR = 5
 
constant int VOLT_AMP_HOUR = 6
 
constant int DEGREE_CELSIUS = 7
 
constant int HZ = 8
 
constant int PERCENT = 9
 
constant int METER_PER_SEC = 10
 
constant int PASCAL = 11
 
constant int G = 12
 
constant int RPM = 13
 
constant int METER = 14
 
constant int HOUR = 15
 
constant int MINUTE = 16
 
constant int SECOND = 17
 
constant int VOLT_AMP_REACTIVE = 18
 
constant int VOLT_AMP_REACTIVE_HOUR = 19
 
constant int GRAM = 20
 
constant int OHM = 21
 
constant int LITERS_PER_HOUR = 22
 
constant int CANDELA = 23
 
constant int METER_PER_SQARE_SEC = 24
 
constant int TESLA = 25
 
constant int VOLT_PER_METER = 26
 
constant int VOLT_PER_AMPERE = 27
 
constant int DEGREE = 28
 
constant int DEGREE_FAHRENHEIT = 29
 
constant int KELVIN = 30
 
constant int JOULE = 31
 
constant int COULOMB = 32
 
constant int NIT = 33
 
constant int LUMEN = 34
 
constant int LUMEN_SECOND = 35
 
constant int LUX = 36
 
constant int PSI = 37
 
constant int NEWTON = 38
 
constant int FOOT = 39
 
constant int FOOT_PER_SEC = 40
 
constant int CUBIC_METER = 41
 
constant int RADIANT = 42
 
constant int STERADIANT = 43
 
constant int HENRY = 44
 
constant int FARAD = 45
 
constant int MOL = 46
 
constant int BECQUEREL = 47
 
constant int GRAY = 48
 
constant int SIEVERT = 49
 
constant int G_PER_CUBIC_METER = 50
 
valueobject TypeSpecChangedEvent: idl::Event { TypeSpec oldTypeSpec
 Event: The type specification of the sensor changed. More...
 
TypeSpec newTypeSpec
 Type specification after change.
 

Additional Inherited Members

- Public Types inherited from sensors::Sensor_4_0_2
enum  OnOffState { OFF, ON }
 Sensor states for DISCRETE_ON_OFF sensors. More...
 
enum  OpenClosedState { OPEN, CLOSED }
 
enum  NormalAlarmedState { NORMAL, ALARMED }
 
enum  OkFaultState { OK, FAULT }
 

Detailed Description

LHX Sensor Interface.

Member Function Documentation

MetaData lhxmodel::Sensor_4_0_2::getMetaData ( )

Retrieve the LHX metadata.

Returns
metadata
Reading lhxmodel::Sensor_4_0_2::getReading ( )

Retrieve sensors reading.

Returns
reading
NumThresholds lhxmodel::Sensor_4_0_2::getThresholds ( )

Retrieve Numeric Thresholds.

Returns
sensor thresholds
int lhxmodel::Sensor_4_0_2::setThresholds ( in NumThresholds  thresholds)

Set Numeric Thresholds.

Returns
0 if OK
ERR_INVALID_PARAM if any parameters are invalid

Member Data Documentation

valueobject lhxmodel::Sensor_4_0_2::ReadingChangedEvent

Event: Sensor numeric reading has changed.

New reading

valueobject lhxmodel::Sensor_4_0_2::StateChangedEvent

Event: Sensor state has changed.

Reading before change

valueobject lhxmodel::Sensor_4_0_2::ThresholdsChangedEvent

Event: Sensor thresholds have been changed.

Thresholds before change


The documentation for this interface was generated from the following file: