OpenWAM
Public Member Functions | Protected Attributes | List of all members
TController Class Referenceabstract

#include <TController.h>

Inheritance diagram for TController:
[legend]
Collaboration diagram for TController:
[legend]

Public Member Functions

 TController (nmControlMethod meth, int i)
 
 ~TController ()
 
virtual void LeeController (const char *FileWAM, fpos_t &filepos)=0
 
virtual double Output (double Time)=0
 
virtual void AsignaObjetos (TSensor **Sensor, TController **Controller)=0
 
virtual void LeeResultadosMedControlador (const char *FileWAM, fpos_t &filepos)=0
 
virtual void LeeResultadosInsControlador (const char *FileWAM, fpos_t &filepos)=0
 
virtual void CabeceraResultadosMedControlador (std::stringstream &medoutput)=0
 
virtual void CabeceraResultadosInsControlador (std::stringstream &insoutput)=0
 
virtual void ImprimeResultadosMedControlador (std::stringstream &medoutput)=0
 
virtual void ImprimeResultadosInsControlador (std::stringstream &insoutput)=0
 
virtual void IniciaMedias ()=0
 
virtual void ResultadosMediosController ()=0
 
virtual void AcumulaResultadosMediosController (double Actual)=0
 
virtual void ResultadosInstantController ()=0
 

Protected Attributes

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.
 

Detailed Description

This oject is used to control parameter in the engine (rack positions, fuel injected ...)

Definition at line 37 of file TController.h.

Constructor & Destructor Documentation

◆ TController()

TController::TController ( nmControlMethod  meth,
int  i 
)

Constructor of the controller class

Parameters
methType of controller
iIndex

Definition at line 38 of file TController.cpp.

38  {
39  FControl = meth;
40  FControllerID = i + 1;
41 
42  FResMediosCtrl.Output = false;
43  FResMediosCtrl.Error = false;
44 
45  FResInstantCtrl.Output = false;
46  FResInstantCtrl.Error = false;
47 
48 }

References FControl, FControllerID, FResInstantCtrl, and FResMediosCtrl.

◆ ~TController()

TController::~TController ( )

Destructor of the controller class

Definition at line 50 of file TController.cpp.

50  {
51 
52 }

Member Function Documentation

◆ AcumulaResultadosMediosController()

virtual void TController::AcumulaResultadosMediosController ( double  Actual)
pure virtual

Acumulate average results

Parameters
ActualCurrent tiem

Implemented in TPIDController, TDecisor, TTable1D, TGain, and TTable.

◆ AsignaObjetos()

virtual void TController::AsignaObjetos ( TSensor **  Sensor,
TController **  Controller 
)
pure virtual

Asign the input sensor and controllers

Parameters
SensorArray with the sensor objects
ControllerArray with the controller objects

Implemented in TPIDController, TDecisor, TTable1D, TGain, and TTable.

◆ CabeceraResultadosInsControlador()

virtual void TController::CabeceraResultadosInsControlador ( std::stringstream &  insoutput)
pure virtual

Generate the header of the instantaneous results

Parameters
insoutputStringStream where the instantaneous results are stored

Implemented in TPIDController, TDecisor, TTable1D, and TGain.

◆ CabeceraResultadosMedControlador()

virtual void TController::CabeceraResultadosMedControlador ( std::stringstream &  medoutput)
pure virtual

Generate the header of the average results

Parameters
medoutputStringStream where the average results are stored

Implemented in TPIDController, TDecisor, TTable1D, and TGain.

◆ ImprimeResultadosInsControlador()

virtual void TController::ImprimeResultadosInsControlador ( std::stringstream &  insoutput)
pure virtual

Print the instantaneous results of the controller

Implemented in TPIDController, TDecisor, TTable1D, and TGain.

◆ ImprimeResultadosMedControlador()

virtual void TController::ImprimeResultadosMedControlador ( std::stringstream &  medoutput)
pure virtual

Print the average results of the controller

Parameters
medoutputStringStream where the average results are stored

Implemented in TPIDController, TDecisor, TTable1D, and TGain.

◆ IniciaMedias()

virtual void TController::IniciaMedias ( )
pure virtual

Initialize average results

Implemented in TPIDController, TDecisor, TTable1D, TGain, and TTable.

◆ LeeController()

virtual void TController::LeeController ( const char *  FileWAM,
fpos_t &  filepos 
)
pure virtual

Read the information of the controller

Parameters
FileWAMInput data filename
fileposPosition to read within the input file

Implemented in TPIDController, TDecisor, TTable1D, TGain, and TTable.

◆ LeeResultadosInsControlador()

virtual void TController::LeeResultadosInsControlador ( const char *  FileWAM,
fpos_t &  filepos 
)
pure virtual

Read the instantanous results selected

Parameters
FileWAMInput data filename
fileposPosition to read within the input file

Implemented in TPIDController, TDecisor, TTable1D, TGain, and TTable.

◆ LeeResultadosMedControlador()

virtual void TController::LeeResultadosMedControlador ( const char *  FileWAM,
fpos_t &  filepos 
)
pure virtual

Read the average results selected

Parameters
FileWAMInput data filename
fileposPosition to read within the input file

Implemented in TPIDController, TDecisor, TTable1D, TGain, and TTable.

◆ Output()

virtual double TController::Output ( double  Time)
pure virtual

Return the output value of the controller

Parameters
TimeCurrent time

Implemented in TPIDController, TDecisor, TTable1D, TGain, and TTable.

Here is the caller graph for this function:

◆ ResultadosInstantController()

virtual void TController::ResultadosInstantController ( )
pure virtual

Calculate instantaneus results

Implemented in TPIDController, TDecisor, TTable1D, TGain, and TTable.

◆ ResultadosMediosController()

virtual void TController::ResultadosMediosController ( )
pure virtual

Calculate average results

Implemented in TPIDController, TDecisor, TTable1D, TGain, and TTable.


The documentation for this class was generated from the following files:
TController::FResMediosCtrl
stResMediosCtrl FResMediosCtrl
Struct with the average results of the controllers.
Definition: TController.h:49
TController::FResInstantCtrl
stResInstantCtrl FResInstantCtrl
Struct with the average results of the controllers.
Definition: TController.h:50
TController::FControl
nmControlMethod FControl
Type of controller.
Definition: TController.h:47
TController::FControllerID
int FControllerID
ID of this controller.
Definition: TController.h:45