]> git.mxchange.org Git - flightgear.git/blob - JSBsim/FGModel.h
7ea0f0d27811102d05a07fbc9166b0dc10d9e220
[flightgear.git] / JSBsim / FGModel.h
1 /*******************************************************************************
2
3  Header:       FGModel.h
4  Author:       Jon Berndt
5  Date started: 11/21/98
6
7  ------------- Copyright (C) 1999  Jon S. Berndt (jsb@hal-pc.org) -------------
8
9  This program is free software; you can redistribute it and/or modify it under
10  the terms of the GNU General Public License as published by the Free Software
11  Foundation; either version 2 of the License, or (at your option) any later
12  version.
13
14  This program is distributed in the hope that it will be useful, but WITHOUT
15  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
16  FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
17  details.
18
19  You should have received a copy of the GNU General Public License along with
20  this program; if not, write to the Free Software Foundation, Inc., 59 Temple
21  Place - Suite 330, Boston, MA  02111-1307, USA.
22
23  Further information about the GNU General Public License can also be found on
24  the world wide web at http://www.gnu.org.
25
26 HISTORY
27 --------------------------------------------------------------------------------
28 11/22/98   JSB   Created
29
30 ********************************************************************************
31 SENTRY
32 *******************************************************************************/
33
34 #ifndef FGMODEL_H
35 #define FGMODEL_H
36
37 /*******************************************************************************
38 INCLUDES
39 *******************************************************************************/
40
41 #include "FGDefs.h"
42 #include <stdio.h>
43 #include <string.h>
44 #include <iostream.h>
45
46 /*******************************************************************************
47 DEFINES
48 *******************************************************************************/
49
50 /*******************************************************************************
51 CLASS DECLARATION
52 *******************************************************************************/
53
54 class FGFDMExec;
55 class FGState;
56 class FGAtmosphere;
57 class FGFCS;
58 class FGAircraft;
59 class FGTranslation;
60 class FGRotation;
61 class FGPosition;
62 class FGAuxiliary;
63 class FGOutput;
64
65 class FGModel
66 {
67 public:
68   FGModel(FGFDMExec*);
69   ~FGModel(void);
70
71   FGModel* NextModel;
72   char Name[30];
73   virtual bool Run(void);
74   virtual bool InitModel(void);
75   void SetRate(int tt) {rate = tt;};
76
77 protected:
78   int exe_ctr;
79   int rate;
80   
81   FGFDMExec*      FDMExec;
82   FGState*        State;
83   FGAtmosphere*   Atmosphere;
84   FGFCS*          FCS;
85   FGAircraft*     Aircraft;
86   FGTranslation*  Translation;
87   FGRotation*     Rotation;
88   FGPosition*     Position;
89   FGAuxiliary*    Auxiliary;
90   FGOutput*       Output;
91
92 private:
93 };
94
95 /******************************************************************************/
96 #endif