*/
inline void Seta(double speed) { a = speed; }
+ /** Gets the name of the parameter given the index.
+ @param val_idx one of the enumerated JSBSim parameters.
+ @return the name of the parameter pointed to by the index.
+ */
+ string GetParameterName(eParam val_idx) {return paramdef[val_idx];}
+
/** Sets the current sim time.
@param cur_time the current time
@return the current time.
*/
void ReportState(void);
-
- typedef map<eParam, string> ParamMap;
- ParamMap paramdef;
-
private:
double a; // speed of sound
double sim_time, dt;
typedef map<string, eParam> CoeffMap;
CoeffMap coeffdef;
+
+ typedef map<eParam, string> ParamMap;
+ ParamMap paramdef;
+
int ActiveEngine;
void Debug(int from);
};