OpenWAM
TTable.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 
26  \*--------------------------------------------------------------------------------*/
27 
28 //---------------------------------------------------------------------------
29 #ifndef TTableH
30 #define TTableH
31 
32 #include "TController.h"
33 //---------------------------------------------------------------------------
34 
35 class TTable: public TController {
36  private:
37 
38  int fID;
39  int fDimensiones;
40  std::vector<double> fX_map;
41  std::vector<double> fY_map;
42  std::vector<std::vector<double> > fZ_map;
43 
44  double fOutput;
45 
46  public:
47 
48  TTable(int i);
49  ~TTable();
50 
51  double Output(double Time);
52 
53  void LeeController(const char *FileWAM, fpos_t &filepos);
54 
55  void AsignaObjetos(TSensor **Sensor, TController **Controller);
56 
57  void LeeResultadosMedControlador(const char *FileWAM, fpos_t &filepos);
58 
59  void LeeResultadosInsControlador(const char *FileWAM, fpos_t &filepos);
60 
61  void CabeceraResultadosMedControlador(stringstream *medoutput);
62 
63  void CabeceraResultadosInsControlador(stringstream *insoutput);
64 
65  void ImprimeResultadosMedControlador(stringstream *medoutput);
66 
67  void ImprimeResultadosInsControlador(stringstream *insoutput);
68 
69  void IniciaMedias();
70 
72 
73  void AcumulaResultadosMediosController(double Actual);
74 
76 
77 };
78 
79 #endif
TTable::Output
double Output(double Time)
Definition: TTable.cpp:46
TController
Definition: TController.h:37
TTable::LeeController
void LeeController(const char *FileWAM, fpos_t &filepos)
Definition: TTable.cpp:50
TTable::IniciaMedias
void IniciaMedias()
Definition: TTable.cpp:303
TTable::LeeResultadosMedControlador
void LeeResultadosMedControlador(const char *FileWAM, fpos_t &filepos)
Definition: TTable.cpp:88
TTable::LeeResultadosInsControlador
void LeeResultadosInsControlador(const char *FileWAM, fpos_t &filepos)
Definition: TTable.cpp:131
TTable::ResultadosInstantController
void ResultadosInstantController()
Definition: TTable.cpp:392
TTable::AsignaObjetos
void AsignaObjetos(TSensor **Sensor, TController **Controller)
Definition: TTable.cpp:79
TTable::AcumulaResultadosMediosController
void AcumulaResultadosMediosController(double Actual)
Definition: TTable.cpp:358
TTable::ResultadosMediosController
void ResultadosMediosController()
Definition: TTable.cpp:322
TSensor
Definition: TSensor.h:42
TTable
Definition: TTable.h:35