00001 #pragma ident "$Id: MoonForce.hpp 2457 2010-08-18 14:20:12Z coandrei $" 00002 00008 #ifndef GPSTK_MOON_FORCE_HPP 00009 #define GPSTK_MOON_FORCE_HPP 00010 00011 00012 //============================================================================ 00013 // 00014 // This file is part of GPSTk, the GPS Toolkit. 00015 // 00016 // The GPSTk is free software; you can redistribute it and/or modify 00017 // it under the terms of the GNU Lesser General Public License as published 00018 // by the Free Software Foundation; either version 2.1 of the License, or 00019 // any later version. 00020 // 00021 // The GPSTk is distributed in the hope that it will be useful, 00022 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00023 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00024 // GNU Lesser General Public License for more details. 00025 // 00026 // You should have received a copy of the GNU Lesser General Public 00027 // License along with GPSTk; if not, write to the Free Software Foundation, 00028 // Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00029 // 00030 // Wei Yan - Chinese Academy of Sciences . 2009, 2010 00031 // 00032 //============================================================================ 00033 00034 #include "ForceModel.hpp" 00035 00036 namespace gpstk 00037 { 00040 00048 class MoonForce : public ForceModel 00049 { 00050 public: 00052 MoonForce(); 00053 00055 virtual ~MoonForce(){}; 00056 00063 virtual void doCompute(UTCTime utc, EarthBody& rb, Spacecraft& sc); 00064 00066 virtual std::string modelName() const 00067 { return "MoonForce"; } 00068 00070 virtual int forceIndex() const 00071 { return FMI_GEOMOON; } 00072 00073 protected: 00074 00076 double mu; 00077 00078 00079 }; // End of class 'MoonForce' 00080 00081 // @} 00082 00083 } // End of namespace 'gpstk' 00084 00085 #endif // GPSTK_MOON_FORCE_HPP 00086 00087 00088 00089
1.3.9.1