WSF
WsfEarthMonopoleTerm Class Reference

#include <WsfEarthMonopoleTerm.hpp>

Inheritance diagram for WsfEarthMonopoleTerm:
Collaboration diagram for WsfEarthMonopoleTerm:

Public Member Functions

 WsfEarthMonopoleTerm ()=default
 WsfEarthMonopoleTerm (const WsfEarthMonopoleTerm &aOther)=default
 ~WsfEarthMonopoleTerm () override=default
bool ProcessInput (UtInput &aInput) override
WsfEarthMonopoleTermClone () const override
const char * GetScriptClassName () const override
UtVec3d ComputeAcceleration (double aMass, const UtCalendar &aTime, const UtVec3d &aPosition, const UtVec3d &aVelocity) const override
std::string GetTermType () const override
 Return a string indicating the type of term.
double GetGravitationalParameter () const
void SetGravitationalParameter (double aMu)
Public Member Functions inherited from WsfOrbitalDynamicsTerm
 WsfOrbitalDynamicsTerm ()
 WsfOrbitalDynamicsTerm (const WsfOrbitalDynamicsTerm &aOther)
WsfOrbitalDynamicsTermoperator= (const WsfOrbitalDynamicsTerm &aOther)=delete
const char * GetScriptClassName () const override
virtual bool Initialize (const WsfOrbitalDynamics &aDynamics)
Public Member Functions inherited from WsfObject
 WsfObject ()
 This is the constructor for the WsfObject class.
 ~WsfObject () override
 This is the destructor for the WsfObject class.
const char * GetScriptClassName () const override
const std::string & GetType () const
WsfStringId GetTypeId () const
 Get the string ID of the 'type' of the object.
void SetType (WsfStringId aType)
const std::string & GetBaseType () const
WsfStringId GetBaseTypeId () const
const TypeListGetTypeList () const
bool IsA_TypeOf (WsfStringId aType) const
WsfObjectoperator= (const WsfObject &aRhs)
 Assignment operator.
template<typename T>
void Serialize (T &aBuff)
 For XIO (de)serialization.
const std::string & GetName () const
WsfStringId GetNameId () const
void SetName (WsfStringId aName)

Static Public Attributes

static constexpr const char * cTYPE {"earth_monopole"}

Additional Inherited Members

Public Types inherited from WsfObject
typedef std::vector< WsfStringIdTypeList
 The list of types returned by GetTypeList.
Protected Member Functions inherited from WsfOrbitalDynamicsTerm
const WsfOrbitalDynamicsGetDynamics () const
 WsfObject (const WsfObject &aSrc)
 Copy constructor (for Clone()).

Constructor & Destructor Documentation

◆ WsfEarthMonopoleTerm() [1/2]

WsfEarthMonopoleTerm::WsfEarthMonopoleTerm ( )
default

Referenced by Clone(), and WsfEarthMonopoleTerm().

◆ WsfEarthMonopoleTerm() [2/2]

WsfEarthMonopoleTerm::WsfEarthMonopoleTerm ( const WsfEarthMonopoleTerm & aOther)
default

◆ ~WsfEarthMonopoleTerm()

WsfEarthMonopoleTerm::~WsfEarthMonopoleTerm ( )
overridedefault

Member Function Documentation

◆ Clone()

WsfEarthMonopoleTerm * WsfEarthMonopoleTerm::Clone ( ) const
inlineoverridevirtual

Return a copy of this object. Must be implemented by all derived types. If cloning is impossible, a WsfUncloneableException should be thrown.

Implements WsfOrbitalDynamicsTerm.

References WsfEarthMonopoleTerm().

◆ ComputeAcceleration()

UtVec3d WsfEarthMonopoleTerm::ComputeAcceleration ( double aMass,
const UtCalendar & aTime,
const UtVec3d & aPosition,
const UtVec3d & aVelocity ) const
overridevirtual

Return the acceleration in the ECI frame.

This routine computes the acceleration represented by this term that would be experienced by a body of the given aMass at the given aTime, aPosition and aVelocity. The given aPosition and aVelocity are in the ECI frame, and the returned acceleration is also in the ECI frame.

Parameters
aMass- The mass of the object that would experience this dynamical term.
aTime- The time at which the acceleration is being computed.
aPosition- The position of the body that would experience this acceleration.
aVelocity- The velocity of the body that would experience this acceleration.
Returns
- The acceleration corresponding to this dynamical term.

Implements WsfOrbitalDynamicsTerm.

◆ GetGravitationalParameter()

double WsfEarthMonopoleTerm::GetGravitationalParameter ( ) const
inline

◆ GetScriptClassName()

const char * WsfEarthMonopoleTerm::GetScriptClassName ( ) const
inlineoverride

◆ GetTermType()

std::string WsfEarthMonopoleTerm::GetTermType ( ) const
inlineoverridevirtual

Return a string indicating the type of term.

Implements WsfOrbitalDynamicsTerm.

References cTYPE.

◆ ProcessInput()

bool WsfEarthMonopoleTerm::ProcessInput ( UtInput & aInput)
overridevirtual

Process input from a generic source.

Examine the current input command. If it is NOT one of the commands recognized by this class then it simply returns 'false'. If it is one of the commands recognized by this class then it processes the command and returns 'true'.

Parameters
aInputa reference to a UtInput object.
Returns
'true' if the command was one recognized by the class or 'false' if not.
Exceptions
UtInput::ExceptionBase(or an object derived from it) if the command was recognized but contains some sort of error.
Note
If a derived class does not recognize the command (i.e.: the return value is false) then it should call the base class ProcessInput method. This chain should continue until either the command is recognized or the top-level base class is encountered.

Reimplemented from WsfObject.

◆ SetGravitationalParameter()

void WsfEarthMonopoleTerm::SetGravitationalParameter ( double aMu)
inline

Member Data Documentation

◆ cTYPE

const char* WsfEarthMonopoleTerm::cTYPE {"earth_monopole"}
staticconstexpr

The documentation for this class was generated from the following files:
Copyrights Multiple, All Rights Reserved