#define ID_ENGINE "$Id$"
using std::string;
+using std::vector;
+
+namespace JSBSim {
/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
FORWARD DECLARATIONS
class FGAuxiliary;
class FGOutput;
-using std::vector;
-
/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
COMMENTS, REFERENCES, and NOTES [use "class documentation" below for API docs]
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
FGEngine(FGFDMExec* exec);
virtual ~FGEngine();
- enum EngineType {etUnknown, etRocket, etPiston, etTurboProp, etTurboJet, etTurboShaft};
+ enum EngineType {etUnknown, etRocket, etPiston, etTurbine, etSimTurbine};
virtual double GetThrottleMin(void) { return MinThrottle; }
virtual double GetThrottleMax(void) { return MaxThrottle; }
virtual bool GetCranking(void) { return Cranking; }
virtual int GetType(void) { return Type; }
virtual string GetName(void) { return Name; }
+ virtual double GetN1(void) { return N1; }
+ virtual double GetN2(void) { return N2; }
+ virtual double GetEGT(void) { return EGT_degC; }
+ virtual double GetEPR(void) { return EPR; }
+ virtual double GetInlet(void) { return InletPosition; }
+ virtual double GetNozzle(void) { return NozzlePosition; }
+ virtual bool GetAugmentation(void) { return Augmentation; }
+ virtual bool GetInjection(void) { return Injection; }
+ virtual bool GetIgnition(void) { return Ignition; }
+ virtual bool GetReversed(void) { return Reversed; }
virtual double getFuelFlow_gph () const {
return FuelFlow_gph;
return (OilTemp_degK - 273.0) * (9.0 / 5.0) + 32.0;
}
+ virtual double getFuelFlow_pph () const {
+ return FuelFlow_pph;
+ }
+
virtual void SetStarved(bool tt) {Starved = tt;}
virtual void SetStarved(void) {Starved = true;}
double OilPressure_psi;
double OilTemp_degK;
+ double FuelFlow_pph;
+ double N1;
+ double N2;
+ double EGT_degC;
+ double EPR;
+ double BleedDemand;
+ double InletPosition;
+ double NozzlePosition;
+ bool Augmentation;
+ bool Injection;
+ bool Ignition;
+ bool Reversed;
+
FGFDMExec* FDMExec;
FGState* State;
FGAtmosphere* Atmosphere;
vector <int> SourceTanks;
virtual void Debug(int from);
};
-
+}
#include "FGState.h"
#include "FGFDMExec.h"
#include "FGAtmosphere.h"