|
OpenWAM
|
#include <TSensor.h>
Public Member Functions | |
| TSensor (int i) | |
| ~TSensor () | |
| void | ReadSensor (const char *FileWAM, fpos_t &filepos) |
| void | AsignaObjeto (TObject *Object) |
| double | Output () |
| void | ActualizaMedida (double Time) |
| nmObjectSensed | ObjectSensed () |
| int | ObjectID () |
| void | LeeResultadosMedSensor (const char *FileWAM, fpos_t &filepos) |
| void | LeeResultadosInsSensor (const char *FileWAM, fpos_t &filepos) |
| void | CabeceraResultadosMedSensor (std::stringstream &medoutput) |
| void | CabeceraResultadosInsSensor (std::stringstream &insoutput) |
| void | ImprimeResultadosMedSensor (std::stringstream &medoutput) |
| void | ImprimeResultadosInsSensor (std::stringstream &insoutput) |
| void | IniciaMedias () |
| void | ResultadosMediosSensor () |
| void | AcumulaResultadosMediosSensor (double Actual) |
| void | ResultadosInstantSensor () |
This object is used to get information from some objects and provides it to controllers
| TSensor::TSensor | ( | int | i | ) |
Contructor of the class TSensor
| i | Index of the sensor |
Definition at line 38 of file TSensor.cpp.
| TSensor::~TSensor | ( | ) |
| void TSensor::ActualizaMedida | ( | double | Time | ) |
Update the sensor output value
| Time | Current tiem |
Definition at line 142 of file TSensor.cpp.
References pow2().
| void TSensor::AcumulaResultadosMediosSensor | ( | double | Actual | ) |
Acumulate the average results
| Actual | Current time |
Definition at line 402 of file TSensor.cpp.
| void TSensor::AsignaObjeto | ( | TObject * | Object | ) |
Asign the pointer of the object sensed
| Object | Pointer to the object sensed |
Definition at line 125 of file TSensor.cpp.
| void TSensor::CabeceraResultadosInsSensor | ( | std::stringstream & | insoutput | ) |
Generate the header of the instantaneous results
| insoutput | StringStream where the instantaneous results are stored |
Definition at line 313 of file TSensor.cpp.
References PutLabel().
| void TSensor::CabeceraResultadosMedSensor | ( | std::stringstream & | medoutput | ) |
Generate the header of the average results
| medoutput | StringStream where the average results are stored |
Definition at line 293 of file TSensor.cpp.
References PutLabel().
| void TSensor::ImprimeResultadosInsSensor | ( | std::stringstream & | insoutput | ) |
Print the instantaneous results of the sensor
| insoutput | StringStream where the instantaneous results are stored |
Definition at line 350 of file TSensor.cpp.
| void TSensor::ImprimeResultadosMedSensor | ( | std::stringstream & | medoutput | ) |
Print the average results of the sensor
| medoutput | StringStream where the average results are stored |
Definition at line 332 of file TSensor.cpp.
| void TSensor::IniciaMedias | ( | ) |
Initailize the average results
Definition at line 367 of file TSensor.cpp.
| void TSensor::LeeResultadosInsSensor | ( | const char * | FileWAM, |
| fpos_t & | filepos | ||
| ) |
Read de instantaneous results selected for the sensor
| FileWAM | Filename of the input data |
| filepos | Specify a position within the input file. |
Definition at line 262 of file TSensor.cpp.
| void TSensor::LeeResultadosMedSensor | ( | const char * | FileWAM, |
| fpos_t & | filepos | ||
| ) |
Read the average results selected for the sensor
| FileWAM | Filename of the input data |
| filepos | Specify a position within the input file. |
Definition at line 231 of file TSensor.cpp.
| int TSensor::ObjectID | ( | ) |
Return the ID numbero of the sensor
Definition at line 438 of file TSensor.cpp.
|
inline |
| double TSensor::Output | ( | ) |
Return the current value of the sensor output
Definition at line 138 of file TSensor.cpp.
| void TSensor::ReadSensor | ( | const char * | FileWAM, |
| fpos_t & | filepos | ||
| ) |
Read from the input data the sensor information
| FileWAM | Filename of the input data |
| filepos | Specify a position within the input file. |
Definition at line 49 of file TSensor.cpp.
| void TSensor::ResultadosInstantSensor | ( | ) |
Calculate the instantaneous results
Definition at line 424 of file TSensor.cpp.
| void TSensor::ResultadosMediosSensor | ( | ) |
Calculate the average results
Definition at line 382 of file TSensor.cpp.
1.8.17