C++ main module for mmsd Package  1.0
MATH_KeplerFunction.h
Go to the documentation of this file.
1 #ifndef MATH_KeplerFunction_H
2 #define MATH_KeplerFunction_H
3 
4 
5 #include "MATH_Function.h"
6 
7 
15  SP_OBJECT(MATH_KeplerFunction);
16 
17 public:
20  static const tFlag KEPLER_E;
23  static const tFlag KEPLER_H;
26  static const tFlag KEPLER_P;
29  static const tFlag HERON;
30 
31  // ATTRIBUTES
32 private:
33  tFlag mMode;
34 
35  //KEPLER x-e.sin(x)=M
36  tReal mE;
37  tReal mM;
38  //
39  // ASSOCIATIONS
40 
41 protected:
42  // METHODS
43 
44  // CONSTRUCTORS
45 
47  MATH_KeplerFunction(void);
48 
49 
50 
51  // DESTRUCTORS
52 
53 
56  virtual ~MATH_KeplerFunction(void);
57 
58  // NEW methods
59 
60 public:
63  static inline SP::MATH_KeplerFunction New() {
64  SP::MATH_KeplerFunction p(new MATH_KeplerFunction(),MATH_KeplerFunction::Delete());
65  p->setThis(p);
66  return p;
67  };
68 
69 
70  // SAVER & LOADER methods for User Interface
71 public:
74  virtual void loadFromUIClass(const UI_Class& mclass);
77  virtual void saveToUIClass(UI_Class& mclass) const;
78 
79 
80  // SET methods
81 public:
84  inline void setMode(const tFlag& m) {mMode=m;};
85 
88  inline void setKeplerE(const tReal& e) {
89  mE=e;
90  };
93  inline void setKeplerM(const tReal& e) {
94  mM=e;
95  };
98  inline tFlag getMode() const {return mMode;};
99 
102  inline tReal getKeplerE() const {
103  return mE;
104  };
107  inline tReal getKeplerM() const {
108  return mM;
109  };
110 
111  // GET methods
112 
113  // OTHERS methods
114 
125  virtual tReal computeFunction(const tReal& x);
126 
127 
128 
129 
130 
131 };
132 
133 #endif
tReal getKeplerM() const
get kepler M
Definition: MATH_KeplerFunction.h:107
static const tFlag HERON
kepler equation type flag
Definition: MATH_KeplerFunction.h:29
This class describes a function function.
Definition: MATH_Function.h:16
tReal getKeplerE() const
get kepler e
Definition: MATH_KeplerFunction.h:102
This class describes Transcendent equation test class.
Definition: MATH_KeplerFunction.h:14
virtual void loadFromUIClass(const UI_Class &mclass)
how to load the object from a Meta Model class
Definition: MATH_KeplerFunction.cpp:15
static const tFlag KEPLER_E
kepler equation type flag
Definition: MATH_KeplerFunction.h:20
static SP::MATH_KeplerFunction New()
create a GA Test class
Definition: MATH_KeplerFunction.h:63
This class describes the main interface class for a soft user interface (R,matlab,python etc...) class.
Definition: UI_Class.h:38
virtual void saveToUIClass(UI_Class &mclass) const
how to save the object from a mate model class
Definition: MATH_KeplerFunction.cpp:22
MATH_KeplerFunction(void)
create a GA object
Definition: MATH_KeplerFunction.cpp:8
tFlag getMode() const
get mode
Definition: MATH_KeplerFunction.h:98
void setKeplerM(const tReal &e)
set kepler M
Definition: MATH_KeplerFunction.h:93
DEFINE_SPTR(MATH_KeplerFunction)
virtual tReal computeFunction(const tReal &x)
compute the function and derivatives
Definition: MATH_KeplerFunction.cpp:29
void setKeplerE(const tReal &e)
set kepler e
Definition: MATH_KeplerFunction.h:88
void setMode(const tFlag &m)
set mode
Definition: MATH_KeplerFunction.h:84
static const tFlag KEPLER_P
kepler equation type flag
Definition: MATH_KeplerFunction.h:26
static const tFlag KEPLER_H
kepler equation type flag
Definition: MATH_KeplerFunction.h:23
#define tReal
Definition: types.h:18
virtual ~MATH_KeplerFunction(void)
destroy an GA Object.
Definition: MATH_KeplerFunction.cpp:13
class Free introduced for deleting a smart pointer
Definition: CORE_Object.h:106
#define tFlag
Definition: types.h:14