00001 00002 // FILE taylctrl.h 00003 00004 00005 #ifndef INCLUDED_TAYLCTRL_H 00006 #define INCLUDED_TAYLCTRL_H 00007 00008 00009 #include "vnodecnf.h" 00010 #include "vndinl.h" 00011 00012 00020 class TAYLOR_CTRL 00021 { 00022 00023 public: 00024 00030 TAYLOR_CTRL( int n ); 00031 00038 void SetH ( const INTERVAL & h ); 00039 00044 INTERVAL GetH () const; 00045 00050 void SetOrder( int order ); 00051 00058 int GetOrder () const; 00059 00061 static int GetMaxOrder (); 00062 00064 int GetDim () const; 00065 00067 virtual ~TAYLOR_CTRL(); 00068 00069 00070 public: 00071 00076 static int MaxOrder; 00077 00078 00079 private: 00080 00082 INTERVAL H; 00083 00085 int Dim; 00086 00088 int Order; 00089 }; 00090 00091 00092 inline TAYLOR_CTRL :: TAYLOR_CTRL( int n ) 00093 : H(0.0), Dim(n), Order(0) 00094 { 00095 assert( n>0 ); 00096 } 00097 00098 00099 inline void TAYLOR_CTRL :: SetH ( const INTERVAL & h ) 00100 { 00101 assert( NonZero(h) ); 00102 H = h; 00103 } 00104 00105 00106 inline INTERVAL TAYLOR_CTRL :: GetH () const 00107 { 00108 return H; 00109 } 00110 00111 00112 inline void TAYLOR_CTRL :: SetOrder( int order ) 00113 { 00114 assert( order>0 && order<=GetMaxOrder() ); 00115 Order = order; 00116 } 00117 00118 00119 inline int TAYLOR_CTRL :: GetMaxOrder () 00120 { 00121 return MaxOrder; 00122 } 00123 00124 00125 inline int TAYLOR_CTRL :: GetOrder () const 00126 { 00127 return Order; 00128 } 00129 00130 00131 inline int TAYLOR_CTRL :: GetDim () const 00132 { 00133 return Dim; 00134 } 00135 00136 00137 inline TAYLOR_CTRL :: ~TAYLOR_CTRL() 00138 { 00139 ; 00140 } 00141 00142 00143 #endif