FORWARD DECLARATIONS
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
+namespace JSBSim {
+
class FGFDMExec;
class FGState;
class FGAtmosphere;
class FGOutput;
/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-COMMENTS, REFERENCES, and NOTES [use "class documentation" below for API docs]
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-
-
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
CLASS DOCUMENTATION
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
/** This class encapsulates the functionality needed to manage a factor group
i.e. factor*(coeff1 + coeff2 + coeff3)
@author Tony Peden
- @see <a href="http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/jsbsim/JSBSim/FGFactorGroup.h?rev=HEAD&content-type=text/vnd.viewcvs-markup">
- Header File </a>
- @see <a href="http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/jsbsim/JSBSim/FGFactorGroup.cpp?rev=HEAD&content-type=text/vnd.viewcvs-markup">
- Source File </a>
*/
/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
CLASS DECLARATION
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
-class FGFactorGroup: public FGCoefficient {
- public:
- FGFactorGroup(FGFDMExec* fdmex);
- ~FGFactorGroup();
-
- bool Load(FGConfigFile *AC_cfg);
- double TotalValue(void);
- inline double GetValue(void) const { return totalValue; }
- //string GetCoefficientStrings(void);
- //string GetCoefficientValues(void);
- inline double GetSD(void) { return SDtotal; }
- inline double GetFactorSD(void) { return FGCoefficient::GetSD(); }
-
- void bind(FGPropertyManager* parent);
- void unbind(void);
- private:
- FGFDMExec *FDMExec;
- string name;
- string description;
- typedef vector<FGCoefficient*> CoeffArray;
- CoeffArray sum;
- double SDtotal;
- double totalValue;
- FGPropertyManager* node;
- void Debug(int from);
+class FGFactorGroup: public FGCoefficient
+{
+public:
+ FGFactorGroup(FGFDMExec* fdmex);
+ ~FGFactorGroup();
+
+ bool Load(FGConfigFile *AC_cfg);
+ double TotalValue(void);
+ inline double GetValue(void) const { return totalValue; }
+ inline double GetSD(void) { return SDtotal; }
+ inline double GetFactorSD(void) { return FGCoefficient::GetSD(); }
+
+ void bind(FGPropertyManager* parent);
+ void unbind(void);
+
+private:
+ typedef vector<FGCoefficient*> CoeffArray;
+ CoeffArray sum;
+ double SDtotal;
+ double totalValue;
+ string description;
+ string name;
+ FGPropertyManager *node;
+ void Debug(int from);
};
-
+}
#endif