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 -
*/
/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
CLASS DECLARATION
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
-class FGFactorGroup: public FGCoefficient {
- public:
- FGFactorGroup(FGFDMExec* fdmex);
- ~FGFactorGroup();
-
- bool Load(FGConfigFile *AC_cfg);
- float TotalValue(void);
- //string GetCoefficientStrings(void);
- //string GetCoefficientValues(void);
- inline float GetSD(void) { return SDtotal; }
- inline float GetFactorSD(void) { return FGCoefficient::GetSD(); }
-
- private:
- FGFDMExec *FDMExec;
- string name;
- string description;
- typedef vector<FGCoefficient*> CoeffArray;
- CoeffArray sum;
- float SDtotal;
- void Debug(void);
+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