WSF
wsf::space::OrbitalPropagatorCondition Class Referenceabstract

#include <WsfSpaceOrbitalPropagatorCondition.hpp>

Inheritance diagram for wsf::space::OrbitalPropagatorCondition:
Collaboration diagram for wsf::space::OrbitalPropagatorCondition:

Public Member Functions

OrbitalPropagatorConditionClone () const override=0
bool ProcessInput (UtInput &aInput) override
unsigned GetOrbitNumber () const
 Return the orbit number.
void SetOrbitNumber (unsigned aOrbitNumber)
 Set the orbit number.
virtual bool ValidateParameterRanges () const
virtual bool GetTimeToCondition (const UtOrbitalPropagatorBase &aPropagator, double &aTimeToCondition) const =0
virtual void Accept (OrbitalPropagatorConditionVisitor &aVisitor)=0
 Accept a visitor.
virtual std::string GetConditionString () const =0
 Return the string identifying the condition.
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)

Protected Attributes

unsigned mOrbitNumber {0}

Additional Inherited Members

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

Detailed Description

A condition that might be satisfied during orbital propagation. This class represents a condition that might obtain during orbital propagation and is used to find execution times of orbital mission events. All conditions are able to set an orbit number, which specifies how many full orbits should execute before considering if the condition is satisfied.

Member Function Documentation

◆ Accept()

◆ Clone()

◆ GetConditionString()

◆ GetOrbitNumber()

unsigned wsf::space::OrbitalPropagatorCondition::GetOrbitNumber ( ) const
inline

◆ GetTimeToCondition()

virtual bool wsf::space::OrbitalPropagatorCondition::GetTimeToCondition ( const UtOrbitalPropagatorBase & aPropagator,
double & aTimeToCondition ) const
pure virtual

Get the time at which the condition is satisfied. This method computes the time in seconds from the current time of the aPropagator at which the condition is satisfied. If the method is able to compute such a time, the aTimeToCondition is set to the appropriate value and this method returns true. If the method is unable to determine when the condition obtains, then the method returns false.

Parameters
aPropagator- The propagator for which the time to the condition being satisfied is desired.
aTimeToCondition[out] - The time in seconds from the current time of the provided aPropagator at which the condition is satisfied.
Returns
true if the time was able to be determined; false otherwise.

Implemented in wsf::space::EclipseEntryCondition, wsf::space::EclipseExitCondition, wsf::space::NoneCondition, wsf::space::OrbitalPropagatorOptimizingCondition, and wsf::space::RelativeTimeCondition.

Referenced by WsfOrbitalScriptEvent::GetNextExecutionTime(), and UT_DEFINE_SCRIPT_METHOD().

◆ ProcessInput()

bool wsf::space::OrbitalPropagatorCondition::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.

Reimplemented in wsf::space::RadiusCondition, and wsf::space::RelativeTimeCondition.

Referenced by Clone().

◆ SetOrbitNumber()

void wsf::space::OrbitalPropagatorCondition::SetOrbitNumber ( unsigned aOrbitNumber)
inline

◆ ValidateParameterRanges()

virtual bool wsf::space::OrbitalPropagatorCondition::ValidateParameterRanges ( ) const
inlinevirtual

Validate any input parameters for the conditions. This method should be overridden for conditions that take parameters for which there are some restrictions on their values (e.g., the parameter must be positive). If the parameter is outside the allowed range, this method should print an error and return false.

Returns
true if all parameters are valid; false otherwise.

Reimplemented in wsf::space::RadiusCondition, and wsf::space::RelativeTimeCondition.

Member Data Documentation

◆ mOrbitNumber


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