WSF
wsf::coverage::RevisitTime Class Reference

An MOE that measures timing of gaps in coverage. More...

#include <WsfCoverageRevisitTime.hpp>

Inheritance diagram for wsf::coverage::RevisitTime:
Collaboration diagram for wsf::coverage::RevisitTime:

Public Types

enum class  SubType {
  cUNKNOWN , cMEAN , cMINIMUM , cMAXIMUM ,
  cSTD_DEV , cNUM_PERCENT_BELOW , cPERCENT_BELOW , cPERCENT_BELOW_GAPS_ONLY
}
 The available sub-types for this MOE. More...
Public Types inherited from WsfObject
typedef std::vector< WsfStringIdTypeList
 The list of types returned by GetTypeList.

Public Member Functions

 RevisitTime (const WsfScenario &aScenario)
 RevisitTime (const RevisitTime &aOther)=default
 ~RevisitTime () override=default
RevisitTimeClone () const override
bool ProcessInput (UtInput &aInput) override
double GetMeasuredValue (const GridAsset &aGridAsset) const override
 Return the measured value for the given aGridAsset.
double GetDefaultValue () const override
 Return the default value for the measure if there were no accesses.
void CollectionStarting (Coverage &aCoverage, double aSimTime) override
std::string GetValueHeader () const override
 Return the text header for output files for this MOE.
SubType GetSubType () const
double GetParameter () const
Public Member Functions inherited from wsf::coverage::Measure
 Measure (const WsfScenario &aScenario)
 Measure (const Measure &aOther)=default
 ~Measure () override=default
bool Initialize (Coverage &aCoverage)
void CollectionCompleting (Coverage &aCoverage, double aSimTime)
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 {"WSF_REVISIT_TIME_MOE"}

Additional Inherited Members

Protected Member Functions inherited from wsf::coverage::Measure
std::size_t GetNumOutput () const
 Return the number of output objects attached to this Measure.
const MeasureOutputGetOutput (std::size_t aIndex) const
 Return the output object at the given index.
 WsfObject (const WsfObject &aSrc)
 Copy constructor (for Clone()).
Protected Attributes inherited from wsf::coverage::Measure
UtCallbackHolder mCallbacks {}
 Holder for callbacks created when this object connects to events on it's coverage.

Detailed Description

An MOE that measures timing of gaps in coverage.

Member Enumeration Documentation

◆ SubType

The available sub-types for this MOE.

Enumerator
cUNKNOWN 
cMEAN 
cMINIMUM 
cMAXIMUM 
cSTD_DEV 
cNUM_PERCENT_BELOW 
cPERCENT_BELOW 
cPERCENT_BELOW_GAPS_ONLY 

Constructor & Destructor Documentation

◆ RevisitTime() [1/2]

wsf::coverage::RevisitTime::RevisitTime ( const WsfScenario & aScenario)
inlineexplicit

◆ RevisitTime() [2/2]

wsf::coverage::RevisitTime::RevisitTime ( const RevisitTime & aOther)
default

References RevisitTime().

◆ ~RevisitTime()

wsf::coverage::RevisitTime::~RevisitTime ( )
overridedefault

Member Function Documentation

◆ Clone()

RevisitTime * wsf::coverage::RevisitTime::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 wsf::coverage::Measure.

References RevisitTime().

◆ CollectionStarting()

void wsf::coverage::RevisitTime::CollectionStarting ( Coverage & aCoverage,
double aSimTime )
overridevirtual

Perform any needed actions when the coverage interval begins.

Parameters
aCoverage- The coverage owning this object.
aSimTime- The sim time at which the coverate interval starts.

Reimplemented from wsf::coverage::Measure.

◆ GetDefaultValue()

double wsf::coverage::RevisitTime::GetDefaultValue ( ) const
overridevirtual

Return the default value for the measure if there were no accesses.

Implements wsf::coverage::Measure.

References cMAXIMUM, cMEAN, cMINIMUM, cNUM_PERCENT_BELOW, cPERCENT_BELOW, cPERCENT_BELOW_GAPS_ONLY, cSTD_DEV, and cUNKNOWN.

Referenced by GetMeasuredValue().

◆ GetMeasuredValue()

double wsf::coverage::RevisitTime::GetMeasuredValue ( const GridAsset & aGridAsset) const
overridevirtual

Return the measured value for the given aGridAsset.

Implements wsf::coverage::Measure.

References GetDefaultValue().

◆ GetParameter()

double wsf::coverage::RevisitTime::GetParameter ( ) const
inline

◆ GetSubType()

SubType wsf::coverage::RevisitTime::GetSubType ( ) const
inline

◆ GetValueHeader()

std::string wsf::coverage::RevisitTime::GetValueHeader ( ) const
overridevirtual

Return the text header for output files for this MOE.

Implements wsf::coverage::Measure.

References cMAXIMUM, cMEAN, cMINIMUM, cNUM_PERCENT_BELOW, cPERCENT_BELOW, cPERCENT_BELOW_GAPS_ONLY, cSTD_DEV, and cUNKNOWN.

◆ ProcessInput()

bool wsf::coverage::RevisitTime::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 wsf::coverage::Measure.

References cUNKNOWN, WsfObject::GetType(), and wsf::coverage::Measure::ProcessInput().

Member Data Documentation

◆ cTYPE

const char* wsf::coverage::RevisitTime::cTYPE {"WSF_REVISIT_TIME_MOE"}
staticconstexpr

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