Jafar
|
Base class for sensors. More...
Base class for sensors.
It groups main sensor characteristics such as period, processing time ans stores the measures in a chronologically sorted buffer
Definition at line 30 of file sensorbase.hpp.
#include <sensorbase.hpp>
Public Member Functions | |
SensorBase (unsigned short measSize) | |
SensorBase (SensorBase const &sensor) | |
SensorBase & | operator= (SensorBase const &sensor) |
unsigned short | GetID () |
Returns the ID of the sensor. | |
SENSOR_TYPE | GetTypeName () |
char const * | GetName () |
OBS_MODEL_TYPE | GetObservationType () |
void | SetPeriod (const time &t) |
void | SetPeriod (double period) |
time const & | GetPeriod () const |
double | GetPeriodSec () const |
void | SetFrequency (double freq) |
double | GetFrequencySec () const |
void | SetProcTime (const time &t) |
void | SetProcTime (double ptime) |
double | GetProcTimeSec () const |
time | GetProcTime () const |
unsigned short | GetMeasureSize () const |
void | AddMeasurement (time sensed, time available, VEC &data) |
void | AddMeasurementWithNoise (time sensed, time available, VEC &data) |
void | ClearMeasurements () |
void | SortMeasurements_AvailableTime () |
void | SortMeasurements_SensedTime () |
unsigned short | GetMeasurementsNr () |
void | PrintData () |
double | GetMinTimeSlice () const |
MeasureItem const & | GetMeasurement (unsigned short idx) const |
time | GetSensedTime (unsigned short idx) |
time | GetAvailableTime (unsigned short idx) |
double | GetNextSensedTimeSec () |
bool | EndBuf () const |
double | GetNextAvailableTimeSec () |
time | GetNextAvailableTime () |
time | GetNextSensedTime () |
time | GetCurrentSensedTime () |
int | GetNextMeasurement (MeasureItem &meas) |
MeasureItem const & | GetNextMeasurement () |
MeasureItem const & | GetCurrentMeasurement () const |
bool | IncCounter () |
VEC | GetNextData () |
void | ResetGetNext () |
unsigned short | GetCurrent () const |
void | DumpMeasurements (const char *fname) |
Protected Attributes | |
Measurements | m_data |
buffer storing the history of the measurements | |
SENSOR_TYPE | m_type_name |
OBS_MODEL_TYPE | m_obs_model_type |
Private Types | |
typedef std::deque< MeasureItem > | Measurements |
Private Member Functions | |
virtual void | Dynamic_Cast () |
void | DumpMeasure (unsigned short nb, MeasureItem const &meas, std::ofstream &stream) const |
Static Private Member Functions | |
static bool | compare_available (MeasureItem const &t1, MeasureItem const &t2) |
static bool | compare_sensed (MeasureItem const &t1, MeasureItem const &t2) |
Private Attributes | |
unsigned short | m_id |
time | m_period |
time | m_proc_time |
unsigned short | m_size |
unsigned short | m_current |
Static Private Attributes | |
static unsigned short | m_static_id |
Friends | |
std::ostream & | operator<< (std::ostream &stream, SensorBase const &pd) |
Generated on Wed Oct 15 2014 00:37:34 for Jafar by doxygen 1.7.6.1 |