- typedef vector <eParam> MultVec;
- virtual float TotalValue(void);
- virtual inline string Getname(void) {return name;}
- virtual inline float GetSD(void) { return SD;}
- inline MultVec Getmultipliers(void) {return multipliers;}
- void DumpSD(void);
-
+ typedef vector <FGPropertyManager*> MultVec;
+
+ enum Type {UNKNOWN, VALUE, VECTOR, TABLE, EQUATION};
+
+ /** Returns the value for this coefficient.
+ Each instance of FGCoefficient stores a value for the "type" of coefficient
+ it is, one of: VALUE, VECTOR, TABLE, or EQUATION. This TotalValue function
+ is called when the value for a coefficient needs to be known. When it is called,
+ depending on what type of coefficient is represented by the FGCoefficient
+ instance, TotalValue() directs the appropriate Value() function to be called.
+ The type of coefficient represented is determined when the config file is read.
+ The coefficient definition includes the "type" specifier.
+ @return the current value of the coefficient represented by this instance of
+ FGCoefficient. */
+ virtual double TotalValue(void);
+
+ /** Returns the value for this coefficient.
+ TotalValue is stored each time TotalValue() is called. This function returns
+ the stored value but does not calculate it anew. This is valuable for merely
+ printing out the value.
+ @return the most recently calculated and stored value of the coefficient
+ represented by this instance of FGCoefficient. */
+ virtual inline double GetValue(void) const { return totalValue; }
+
+ /// Returns the name of this coefficient.
+ virtual inline string Getname(void) const {return name;}
+
+ /// Returns the value of the coefficient only - before it is re-dimensionalized.
+ virtual inline double GetSD(void) const { return SD;}
+