#include <new_sim_sensor.h>
Inheritance diagram for NewSimulatorSensor:


| Public Member Functions | |
| NewSimulatorSensor (NewSimulatorResource *res) | |
| Constructor. | |
| NewSimulatorSensor (NewSimulatorResource *res, SaHpiRdrT rdr, SaHpiSensorReadingT data, SaHpiEventStateT event_state, SaHpiEventStateT event_amask, SaHpiEventStateT event_dmask, SaHpiBoolT enabled, SaHpiBoolT event_enabled) | |
| Full qualified constructor to fill an object with the parsed data. | |
| virtual | ~NewSimulatorSensor () | 
| Destructor. | |
| virtual unsigned int | Num () const | 
| Return sensor Number. | |
| SaHpiSensorTypeT | Type () const | 
| Return Sensor Type. | |
| SaHpiEventCategoryT | EventCategory () const | 
| Return Sensor Event Category. | |
| SaHpiBoolT | EnableCtrl () const | 
| Return if Sensor is enabbled or not. | |
| SaHpiSensorEventCtrlT | EventCtrl () const | 
| Return the event change capability of the sensor. | |
| SaHpiEventStateT | EventStates () const | 
| Return Sensor Event States. | |
| SaHpiSensorDataFormatT | DataFormat () const | 
| Return Sensor Data Format. | |
| SaHpiSensorThdDefnT | ThresholdDefn () const | 
| Return Sensor Threshold definitions. | |
| SaHpiUint32T | Oem () const | 
| Return Sensor Oem information. | |
| virtual void | HandleNew (NewSimulatorDomain *domain) | 
| Not clear if this function is really needed. | |
| virtual bool | Cmp (const NewSimulatorSensor &s2) const | 
| Not implemented - to be verified if needed. | |
| void | CreateEnableChangeEvent () | 
| create and send HPI sensor enable change event | |
| virtual void | Dump (NewSimulatorLog &dump) const | 
| Dump the sensor information. | |
| virtual bool | CreateRdr (SaHpiRptEntryT &resource, SaHpiRdrT &rdr) | 
| create an RDR sensor record | |
| virtual SaErrorT | GetSensorReading (SaHpiSensorReadingT &data, SaHpiEventStateT &state)=0 | 
| abstract method for the GetSensorReading command | |
| SaErrorT | GetEnable (SaHpiBoolT &enable) | 
| HPI function saHpiSensorEnableGet(). | |
| SaErrorT | GetEventEnables (SaHpiBoolT &enables) | 
| HPI function saHpiSensorEventEnableGet(). | |
| SaErrorT | GetEventMasks (SaHpiEventStateT &AssertEventMask, SaHpiEventStateT &DeassertEventMask) | 
| HPI function saHpiSensorEventMasksGet(). | |
| SaErrorT | SetEnable (const SaHpiBoolT &enable) | 
| HPI function saHpiSensorEnableSet(). | |
| SaErrorT | SetEventEnables (const SaHpiBoolT &enables) | 
| HPI function saHpiSensorEventEnableSet(). | |
| SaErrorT | SetEventMasks (const SaHpiSensorEventMaskActionT &act, SaHpiEventStateT &AssertEventMask, SaHpiEventStateT &DeassertEventMask) | 
| HPI function saHpiSensorEventMasksSet(). | |
| Protected Member Functions | |
| virtual bool | gt (const SaHpiSensorReadingT &val1, const SaHpiSensorReadingT &val2) | 
| Check if val1 > val2. | |
| virtual bool | ge (const SaHpiSensorReadingT &val1, const SaHpiSensorReadingT &val2) | 
| Check if val1 >= val2. | |
| virtual bool | lt (const SaHpiSensorReadingT &val1, const SaHpiSensorReadingT &val2) | 
| Check if val1 < val2. | |
| virtual bool | le (const SaHpiSensorReadingT &val1, const SaHpiSensorReadingT &val2) | 
| Check if val1 <= val2. | |
| virtual bool | eq (const SaHpiSensorReadingT &val1, const SaHpiSensorReadingT &val2) | 
| Check if val1 == val2. | |
| virtual bool | ltZero (const SaHpiSensorReadingT &val1) | 
| Check if val1 < 0. | |
| Protected Attributes | |
| SaHpiSensorRecT | m_sensor_record | 
| Record with the sensor information. | |
| SaHpiBoolT | m_enabled | 
| Is this sensor enabled. | |
| SaHpiBoolT | m_events_enabled | 
| Are events from this sensor enabled. | |
| SaHpiBoolT | m_read_support | 
| Is the reading supported. | |
| SaHpiEventStateT | m_assert_mask | 
| Events assertion mask. | |
| SaHpiEventStateT | m_deassert_mask | 
| Events deassertion mask. | |
| SaHpiSensorReadingT | m_read_data | 
| SensorReading values. | |
| SaHpiEventStateT | m_event_data | 
| EventState. | |
| 
 | 
| Not implemented - to be verified if needed. if ( m_entity_path != s2.m_entity_path ) return false; if ( m_sensor_init_scanning != s2.m_sensor_init_scanning ) return false; if ( m_sensor_init_events != s2.m_sensor_init_events ) return false; if ( m_sensor_init_type != s2.m_sensor_init_type ) return false; if ( m_sensor_init_pu_events != s2.m_sensor_init_pu_events ) return false; if ( m_sensor_init_pu_scanning != s2.m_sensor_init_pu_scanning ) return false; if ( m_ignore_if_no_entity != s2.m_ignore_if_no_entity ) return false; if ( m_supports_auto_rearm != s2.m_supports_auto_rearm ) return false; if ( m_event_support != s2.m_event_support ) return false; if ( m_sensor_type != s2.m_sensor_type ) return false; if ( m_event_reading_type != s2.m_event_reading_type ) return false; if ( m_oem != s2.m_oem ) return false; if ( IdString() != s2.IdString() ) return false; Reimplemented in NewSimulatorSensorThreshold. | 
| 
 | ||||||||||||
| create an RDR sensor record This method is called by method NewSimulatorRdr::Populate(). 
 
 
 Reimplemented from NewSimulatorRdr. Reimplemented in NewSimulatorSensorCommon, and NewSimulatorSensorThreshold. | 
| 
 | 
| Dump the sensor information. 
 
 Implements NewSimulatorRdr. Reimplemented in NewSimulatorSensorCommon, and NewSimulatorSensorThreshold. | 
| 
 | ||||||||||||
| Check if val1 == val2. 
 
 
 | 
| 
 | ||||||||||||
| Check if val1 >= val2. 
 
 
 | 
| 
 | 
| HPI function saHpiSensorEnableGet(). See also the description of the function inside the specification or header file. Copying the internal reading values (if a read is allowed). 
 
 
 | 
| 
 | 
| HPI function saHpiSensorEventEnableGet(). See also the description of the function inside the specification or header file. Copying the internal reading values (if a read is allowed). 
 
 
 | 
| 
 | ||||||||||||
| HPI function saHpiSensorEventMasksGet(). See also the description of the function inside the specification or header file. Copying the internal reading values (if a read is allowed). 
 
 
 | 
| 
 | ||||||||||||
| Check if val1 > val2. 
 
 
 | 
| 
 | ||||||||||||
| Check if val1 <= val2. 
 
 
 | 
| 
 | ||||||||||||
| Check if val1 < val2. 
 
 
 | 
| 
 | 
| Check if val1 < 0. 
 
 
 | 
| 
 | 
| HPI function saHpiSensorEnableSet(). See also the description of the function inside the specification or header file. Copying the internal reading values (if a read is allowed). 
 
 
 | 
| 
 | 
| HPI function saHpiSensorEventEnableSet(). See also the description of the function inside the specification or header file. Copying the internal reading values (if a read is allowed). 
 
 
 | 
| 
 | ||||||||||||||||
| HPI function saHpiSensorEventMasksSet(). See also the description of the function inside the specification or header file. Copying the internal reading values (if a read is allowed). 
 
 
 | 
 1.4.4
 1.4.4