|
WSF
|
#include <WsfCoverageMeasure.hpp>


Public Member Functions | |
| Measure (const WsfScenario &aScenario) | |
| Measure (const Measure &aOther)=default | |
| ~Measure () override=default | |
| Measure * | Clone () const override=0 |
| bool | ProcessInput (UtInput &aInput) override |
| virtual double | GetMeasuredValue (const GridAsset &aGridAsset) const =0 |
Return the measured value for a given aGridAsset. | |
| virtual std::string | GetValueHeader () const =0 |
| virtual double | GetDefaultValue () const =0 |
| Return the default value of the measure. | |
| bool | Initialize (Coverage &aCoverage) |
| virtual void | CollectionStarting (Coverage &aCoverage, double aSimTime) |
| 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 TypeList & | GetTypeList () const |
| bool | IsA_TypeOf (WsfStringId aType) const |
| WsfObject & | operator= (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 Member Functions | |
| std::size_t | GetNumOutput () const |
| Return the number of output objects attached to this Measure. | |
| const MeasureOutput * | GetOutput (std::size_t aIndex) const |
| Return the output object at the given index. | |
| WsfObject (const WsfObject &aSrc) | |
| Copy constructor (for Clone()). | |
Protected Attributes | |
| UtCallbackHolder | mCallbacks {} |
| Holder for callbacks created when this object connects to events on it's coverage. | |
Additional Inherited Members | |
| Public Types inherited from WsfObject | |
| typedef std::vector< WsfStringId > | TypeList |
| The list of types returned by GetTypeList. | |
Measure represents a MOE for a coverage computation.
Each MOE is owned by a coverage object, and is responsible for connecting to the various interval events on that coverage objects. In this way, the Measure is updated as the simulation progresses with data as it becomes available. Measures also own instances of output objects that will write the resulting measured values out in various formats.
|
inlineexplicit |
Referenced by wsf::coverage::AccessDuration::AccessDuration(), Clone(), wsf::coverage::CoverageTime::CoverageTime(), Measure(), wsf::coverage::N_AssetCoverage::N_AssetCoverage(), wsf::coverage::NumberOfAccesses::NumberOfAccesses(), wsf::coverage::NumberOfGaps::NumberOfGaps(), wsf::coverage::RevisitTime::RevisitTime(), wsf::coverage::SimpleCoverage::SimpleCoverage(), and wsf::coverage::TimeAverageGap::TimeAverageGap().
|
default |
References Measure().
|
overridedefault |
|
overridepure virtual |
Return a copy of this object. Must be implemented by all derived types. If cloning is impossible, a WsfUncloneableException should be thrown.
Implements WsfObject.
Implemented in wsf::coverage::AccessDuration, wsf::coverage::CoverageTime, wsf::coverage::N_AssetCoverage, wsf::coverage::NumberOfAccesses, wsf::coverage::NumberOfGaps, wsf::coverage::RevisitTime, wsf::coverage::SimpleCoverage, and wsf::coverage::TimeAverageGap.
References Measure(), and ProcessInput().
| void wsf::coverage::Measure::CollectionCompleting | ( | Coverage & | aCoverage, |
| double | aSimTime ) |
Tack any action needed at the end of a coverage collection interval.
In addition to allowing the subclass to perform any subclass-specific tasks, this will cause all the output objects to produce their output.
| aCoverage | - The coverage owning this object. |
| aSimTime | - The sim time of the end of collection. |
|
inlinevirtual |
Perform any needed actions when the coverage interval begins.
| aCoverage | - The coverage owning this object. |
| aSimTime | - The sim time at which the coverate interval starts. |
Reimplemented in wsf::coverage::AccessDuration, wsf::coverage::CoverageTime, wsf::coverage::N_AssetCoverage, wsf::coverage::NumberOfAccesses, wsf::coverage::NumberOfGaps, wsf::coverage::RevisitTime, and wsf::coverage::TimeAverageGap.
|
pure virtual |
Return the default value of the measure.
Implemented in wsf::coverage::AccessDuration, wsf::coverage::CoverageTime, wsf::coverage::N_AssetCoverage, wsf::coverage::NumberOfAccesses, wsf::coverage::NumberOfGaps, wsf::coverage::RevisitTime, wsf::coverage::SimpleCoverage, and wsf::coverage::TimeAverageGap.
References Initialize().
|
pure virtual |
Return the measured value for a given aGridAsset.
Implemented in wsf::coverage::AccessDuration, wsf::coverage::CoverageTime, wsf::coverage::N_AssetCoverage, wsf::coverage::NumberOfAccesses, wsf::coverage::NumberOfGaps, wsf::coverage::RevisitTime, wsf::coverage::SimpleCoverage, and wsf::coverage::TimeAverageGap.
Referenced by wsf::coverage::MeasureGridStats::MeasureGridStats(), and wsf::coverage::MeasureLatLonStats::MeasureLatLonStats().
|
inlineprotected |
Return the number of output objects attached to this Measure.
|
inlineprotected |
Return the output object at the given index.
|
pure virtual |
Return a string giving the header for this value in output files.
This header should be descriptive enough to be interpreted by a human reader. The return value will appear as a field in a CSV file, so there should not be any commas in the returned value.
Implemented in wsf::coverage::AccessDuration, wsf::coverage::CoverageTime, wsf::coverage::N_AssetCoverage, wsf::coverage::NumberOfAccesses, wsf::coverage::NumberOfGaps, wsf::coverage::RevisitTime, wsf::coverage::SimpleCoverage, and wsf::coverage::TimeAverageGap.
| bool wsf::coverage::Measure::Initialize | ( | Coverage & | aCoverage | ) |
Initialize this Measure.
In addition to propagating the output directory from aCoverage to this objects output, this will assure that the output will produce files with unique names among the outputs for this Measure. Finally, this calls into the subclasses intialization method, in which it is expected that the subclass will connect to the interval events on aCoverage.
| aCoverage | - The coverage owning this. |
References WsfObject::GetName(), and wsf::coverage::Coverage::GetOutputDir().
Referenced by GetDefaultValue().
|
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'.
| aInput | a reference to a UtInput object. |
| UtInput::ExceptionBase | (or an object derived from it) if the command was recognized but contains some sort of error. |
Reimplemented from WsfObject.
Reimplemented in wsf::coverage::N_AssetCoverage, wsf::coverage::NumberOfAccesses, wsf::coverage::NumberOfGaps, and wsf::coverage::RevisitTime.
References WsfObjectTypeList< T >::Find(), and wsf::coverage::MeasureOutputTypes::Get().
Referenced by Clone(), wsf::coverage::AccessDuration::ProcessInput(), wsf::coverage::CoverageTime::ProcessInput(), wsf::coverage::N_AssetCoverage::ProcessInput(), wsf::coverage::NumberOfAccesses::ProcessInput(), wsf::coverage::NumberOfGaps::ProcessInput(), and wsf::coverage::RevisitTime::ProcessInput().
|
protected |
Holder for callbacks created when this object connects to events on it's coverage.