#include <new_sim_sensor_threshold.h>
Inheritance diagram for NewSimulatorSensorThreshold:
Public Member Functions | |
NewSimulatorSensorThreshold (NewSimulatorResource *res) | |
Constructor. | |
NewSimulatorSensorThreshold (NewSimulatorResource *res, SaHpiRdrT rdr, SaHpiSensorReadingT data, SaHpiEventStateT event_state, SaHpiEventStateT event_amask, SaHpiEventStateT event_dmask, SaHpiSensorThresholdsT thresholds, SaHpiBoolT enabled, SaHpiBoolT event_enabled) | |
Fully qualified constructor to fill an object with the parsed data. | |
virtual | ~NewSimulatorSensorThreshold () |
Destructor. | |
virtual void | HandleNew (NewSimulatorDomain *domain) |
TBD: Check where and whether it is needed. | |
virtual void | Dump (NewSimulatorLog &dump) const |
Dump the sensor information. | |
bool | Cmp (const NewSimulatorSensor &s2) const |
TBD: Check where and whether it is needed TODO: Change it properly due to new data structure. | |
virtual bool | CreateRdr (SaHpiRptEntryT &resource, SaHpiRdrT &rdr) |
A rdr structure is filled with the internally data. | |
SaErrorT | GetSensorReading (SaHpiSensorReadingT &data, SaHpiEventStateT &state) |
HPI function saHpiSensorReadingGet(). | |
SaErrorT | GetThresholds (SaHpiSensorThresholdsT &thres) |
HPI function saHpiSensorThresholdsGet(). | |
SaErrorT | SetThresholds (const SaHpiSensorThresholdsT &thres) |
HPI function saHpiSensorThresholdsSet(). |
|
TBD: Check where and whether it is needed TODO: Change it properly due to new data structure. TODO Should be changed due to other private variables if ( m_sensor_init_thresholds != t->m_sensor_init_thresholds ) return false; if ( m_sensor_init_hysteresis != t->m_sensor_init_hysteresis ) return false; if ( m_hysteresis_support != t->m_hysteresis_support ) return false; if ( m_threshold_access != t->m_threshold_access ) return false; if ( m_assertion_event_mask != t->m_assertion_event_mask ) return false; if ( m_deassertion_event_mask != t->m_deassertion_event_mask ) return false; if ( m_reading_mask != t->m_reading_mask ) return false; if ( m_threshold_readable != t->m_threshold_readable ) return false; if ( m_threshold_settable != t->m_threshold_settable ) return false; if ( m_rate_unit != t->m_rate_unit ) return false; if ( m_modifier_unit_use != t->m_modifier_unit_use ) return false; if ( m_percentage != t->m_percentage ) return false; if ( m_base_unit != t->m_base_unit ) return false; if ( m_modifier_unit != t->m_modifier_unit ) return false; bool sf1 = m_sensor_factors ? true : false; bool sf2 = t->m_sensor_factors ? true : false; if ( sf1 != sf2 ) return false; if ( m_sensor_factors ) if ( m_sensor_factors->Cmp( *t->m_sensor_factors ) == false ) return false; if ( m_normal_min_specified != t->m_normal_min_specified ) return false; if ( m_normal_max_specified != t->m_normal_max_specified ) return false; if ( m_nominal_reading_specified != t->m_nominal_reading_specified ) return false; if ( m_nominal_reading != t->m_nominal_reading ) return false; if ( m_normal_max != t->m_normal_max ) return false; if ( m_normal_min != t->m_normal_min ) return false; if ( m_sensor_max != t->m_sensor_max ) return false; if ( m_sensor_min != t->m_sensor_min ) return false; if ( m_upper_non_recoverable_threshold != t->m_upper_non_recoverable_threshold ) return false; if ( m_upper_critical_threshold != t->m_upper_critical_threshold ) return false; if ( m_upper_non_critical_threshold != t->m_upper_non_critical_threshold ) return false; if ( m_lower_non_recoverable_threshold != t->m_lower_non_recoverable_threshold ) return false; if ( m_lower_critical_threshold != t->m_lower_critical_threshold ) return false; if ( m_lower_non_critical_threshold != t->m_lower_non_critical_threshold ) return false; if ( m_positive_going_threshold_hysteresis != t->m_positive_going_threshold_hysteresis ) return false; if ( m_negative_going_threshold_hysteresis != t->m_negative_going_threshold_hysteresis ) return false; Reimplemented from NewSimulatorSensor. |
|
A rdr structure is filled with the internally data. This method is called by method NewSimulatorRdr::Populate().
Reimplemented from NewSimulatorSensor. |
|
Dump the sensor information.
Reimplemented from NewSimulatorSensor. |
|
HPI function saHpiSensorReadingGet(). See also the description of the function inside the specification or header file. Copying the internal reading values (if a read is allowed).
Implements NewSimulatorSensor. |
|
HPI function saHpiSensorThresholdsGet(). See also the description of the function inside the specification or header file. Copy of the internal threshold values (if a read is allowed).
|
|
HPI function saHpiSensorThresholdsSet().
See also the description of the function inside the specification or header file. The checks are done in the methods
|