OpenWAM
|
#include <TDecisor.h>
Public Member Functions | |
TDecisor (int i) | |
~TDecisor () | |
double | Output (double Time) |
void | LeeController (const char *FileWAM, fpos_t &filepos) |
void | AsignaObjetos (TSensor **Sensor, TController **Controller) |
void | LeeResultadosMedControlador (const char *FileWAM, fpos_t &filepos) |
void | LeeResultadosInsControlador (const char *FileWAM, fpos_t &filepos) |
void | CabeceraResultadosMedControlador (stringstream &medoutput) |
void | CabeceraResultadosInsControlador (stringstream &insoutput) |
void | ImprimeResultadosMedControlador (stringstream &medoutput) |
void | ImprimeResultadosInsControlador (stringstream &insoutput) |
void | IniciaMedias () |
void | ResultadosMediosController () |
void | AcumulaResultadosMediosController (double Actual) |
void | ResultadosInstantController () |
![]() | |
TController (nmControlMethod meth, int i) | |
~TController () | |
Additional Inherited Members | |
![]() | |
std::vector< TSensor * > | FSensor |
Array with the pointers of the sensor inputs. | |
int | FNumSensors |
Number of sensor input. | |
iVector | FSensorID |
Array with the ID of the sensor inputs. | |
int | FControllerID |
ID of this controller. | |
nmControlMethod | FControl |
Type of controller. | |
stResMediosCtrl | FResMediosCtrl |
Struct with the average results of the controllers. | |
stResInstantCtrl | FResInstantCtrl |
Struct with the average results of the controllers. | |
This object represents a decisor. The decirsor chooses the output of one controller (high) or other depending on the fact that the valued sensed is higher or lower than the target value
Definition at line 37 of file TDecisor.h.
TDecisor::TDecisor | ( | int | i | ) |
TDecisor::~TDecisor | ( | ) |
|
virtual |
Acumulate average results
Actual | Current time |
Implements TController.
Definition at line 188 of file TDecisor.cpp.
References TController::FResMediosCtrl.
|
virtual |
Asing the different controller and sensors
Sensor | Array with sensors |
Controller | Array with controllers |
Implements TController.
Definition at line 87 of file TDecisor.cpp.
References TController::FSensor, and TController::FSensorID.
|
virtual |
Generate the instantaneous results header
insoutput | StringStream where the instantaneous results are stored |
Implements TController.
Definition at line 150 of file TDecisor.cpp.
References TController::FResInstantCtrl, and PutLabel().
|
virtual |
Generate the average results header
medoutput | StringStream where the average results are stored |
Implements TController.
Definition at line 140 of file TDecisor.cpp.
References TController::FResMediosCtrl, and PutLabel().
|
virtual |
Print the instantaneous values
insoutput | StringStream where the instantaneous results are stored |
Implements TController.
Definition at line 167 of file TDecisor.cpp.
References TController::FResInstantCtrl.
|
virtual |
Print the average results
medoutput | StringStream where the averate results are stored |
Implements TController.
Definition at line 159 of file TDecisor.cpp.
References TController::FResMediosCtrl.
|
virtual |
Initialize average results
Implements TController.
Definition at line 175 of file TDecisor.cpp.
References TController::FResMediosCtrl.
|
virtual |
Read the data of the controller
FileWAM | File name of the input data |
filepos | Position within the file to read |
Implements TController.
Definition at line 62 of file TDecisor.cpp.
References TController::FSensorID.
|
virtual |
Read the instantenous results selected
FileWAM | File name of the input data |
filepos | Position within the file to read |
Implements TController.
Definition at line 118 of file TDecisor.cpp.
References TController::FResInstantCtrl.
|
virtual |
Read the average results selected
FileWAM | File name of the input data |
filepos | Position within the file to read |
Implements TController.
Definition at line 96 of file TDecisor.cpp.
References TController::FResMediosCtrl.
|
virtual |
Return the final output
Time | Current time |
Implements TController.
Definition at line 44 of file TDecisor.cpp.
References AcumulaResultadosMediosController(), TController::FSensor, and TController::Output().
|
virtual |
Calculate instantaneous results
Implements TController.
Definition at line 198 of file TDecisor.cpp.
References TController::FResInstantCtrl.
|
virtual |
Calculate average results
Implements TController.
Definition at line 181 of file TDecisor.cpp.
References TController::FResMediosCtrl.