OpenWAM
TGain.h
1 /*--------------------------------------------------------------------------------*\
2  *==========================|
3  *\\ /\ /\ // O pen | OpenWAM: The Open Source 1D Gas-Dynamic Code
4  * \\ | X | // W ave |
5  * \\ \/_\/ // A ction | CMT-Motores Termicos / Universidad Politecnica Valencia
6  * \\/ \// M odel |
7  *----------------------------------------------------------------------------------
8  *License
9  *
10  * This file is part of OpenWAM.
11  *
12  * OpenWAM is free software: you can redistribute it and/or modify
13  * it under the terms of the GNU General Public License as published by
14  * the Free Software Foundation, either version 3 of the License, or
15  * (at your option) any later version.
16  *
17  * OpenWAM is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  * GNU General Public License for more details.
21  *
22  * You should have received a copy of the GNU General Public License
23  * along with OpenWAM. If not, see <http://www.gnu.org/licenses/>.
24  *
25  * TGain.h
26  *
27  * Created on: 14/07/2014
28  * Author: farnau
29  *
30  \*--------------------------------------------------------------------------------*/
31 
32 #ifndef TGAIN_H_
33 #define TGAIN_H_
34 
35 #include "TController.h"
36 #include "TSensor.h"
37 
38 /*
39  *
40  */
41 
42 class TGain: public TController {
43 
44  int fID;
45  double FGain;
46  stGainInput *FGainInput;
47  nmInputObjet FInObject;
48  int FObjectID;
49  double fOutput;
50 
51  public:
52  TGain(int i);
53 
54  ~TGain();
55 
56  double Output(double Time);
57 
58  void LeeController(const char *FileWAM, fpos_t &filepos);
59 
60  void AsignaObjetos(TSensor **Sensor, TController **Controller);
61 
63  void LeeResultadosMedControlador(const char *FileWAM,
64  fpos_t &filepos
65  );
66 
68  void LeeResultadosInsControlador(const char *FileWAM,
69  fpos_t &filepos
70  );
71 
73  void CabeceraResultadosMedControlador(stringstream& medoutput
74  );
75 
77  void CabeceraResultadosInsControlador(stringstream&
78  insoutput
79  );
80 
82  void ImprimeResultadosMedControlador(stringstream& medoutput
83  );
84 
86  void ImprimeResultadosInsControlador(stringstream&
87  insoutput
88  );
89 
91  void IniciaMedias();
92 
95 
97  void AcumulaResultadosMediosController(double Actual
98  );
99 
102 };
103 
104 #endif /* TGAIN_H_ */
TGain::ImprimeResultadosInsControlador
void ImprimeResultadosInsControlador(stringstream &insoutput)
Definition: TGain.cpp:160
TController
Definition: TController.h:37
TGain::ImprimeResultadosMedControlador
void ImprimeResultadosMedControlador(stringstream &medoutput)
Definition: TGain.cpp:150
TGain::AcumulaResultadosMediosController
void AcumulaResultadosMediosController(double Actual)
Definition: TGain.cpp:187
TGain::CabeceraResultadosMedControlador
void CabeceraResultadosMedControlador(stringstream &medoutput)
Definition: TGain.cpp:128
stGainInput
Definition: TController.h:117
TGain::ResultadosInstantController
void ResultadosInstantController()
Definition: TGain.cpp:201
TGain::CabeceraResultadosInsControlador
void CabeceraResultadosInsControlador(stringstream &insoutput)
Definition: TGain.cpp:139
TGain::LeeResultadosMedControlador
void LeeResultadosMedControlador(const char *FileWAM, fpos_t &filepos)
Definition: TGain.cpp:79
TGain::Output
double Output(double Time)
Definition: TGain.cpp:44
TGain
Definition: TGain.h:42
TGain::IniciaMedias
void IniciaMedias()
Definition: TGain.cpp:170
TGain::ResultadosMediosController
void ResultadosMediosController()
Definition: TGain.cpp:176
TSensor
Definition: TSensor.h:42
TGain::LeeController
void LeeController(const char *FileWAM, fpos_t &filepos)
Definition: TGain.cpp:50
TGain::LeeResultadosInsControlador
void LeeResultadosInsControlador(const char *FileWAM, fpos_t &filepos)
Definition: TGain.cpp:104
TGain::AsignaObjetos
void AsignaObjetos(TSensor **Sensor, TController **Controller)
Definition: TGain.cpp:70