|
WSF
|
Functions | |
| void | ComputeGaps (std::vector< AccessInterval > &aGaps, std::vector< AccessInterval > &aIntervals, const AccessInterval &aCoverageInterval, const std::string &aMoE_Type, const std::string &aMoE_ObjectName) |
| long | GetIntervalStartSample (const AccessInterval &aInterval, const UtCalendar &aStartEpoch, double aCoverageStart, double aSampleDuration) |
| long | GetIntervalEndSample (const AccessInterval &aInterval, const UtCalendar &aStartEpoch, double aCoverageStart, double aSampleDuration) |
| void wsf::coverage::MeasureUtils::ComputeGaps | ( | std::vector< AccessInterval > & | aGaps, |
| std::vector< AccessInterval > & | aIntervals, | ||
| const AccessInterval & | aCoverageInterval, | ||
| const std::string & | aMoE_Type, | ||
| const std::string & | aMoE_ObjectName ) |
Compute the gap intervals from the coverage intervals.
The complement of the access aIntervals in the coverage interval are the gap intervals. This routine will return the gaps given the access aIntervals. The provided intervals should be non-overlapping: no interval should overlap any other interval. The input aIntervals does not have to be time-ordered.
| aGaps | A reference to an empty vector that will be used to store the gap intervals. This is an output parameter. |
| aIntervals | A set of access intervals. |
| aCoverageInterval | The overall coverage interval which specifies the beginning and end of the relevant time span. |
| aMoE_Type | A string reference that describes the MoE type, i.e. "Simple Coverage MoE". |
| aMoE_ObjectName | The name of the MoE WsfObject. When in doubt, just use GetName(). |
References end(), wsf::coverage::AccessInterval::GetEnd(), and wsf::coverage::AccessInterval::GetStart().
| long wsf::coverage::MeasureUtils::GetIntervalEndSample | ( | const AccessInterval & | aInterval, |
| const UtCalendar & | aStartEpoch, | ||
| double | aCoverageStart, | ||
| double | aSampleDuration ) |
Get the sample on which aInterval ends. The sample on which the coverage interval begins is always sample 0.
| aInterval | The AccessInterval for which to find the end sample. |
| aStartEpoch | The date and time at which the coverage interval begins. |
| aCoverageStart | The simulation time at which the coverage interval begins. When in doubt, use AccessInterval::GetStart(). |
| aSampleDuration | The duration of the samples. |
aInterval ends. If it ends at midnight exactly, then it counts as the sample before. References wsf::coverage::AccessInterval::GetEnd().
| long wsf::coverage::MeasureUtils::GetIntervalStartSample | ( | const AccessInterval & | aInterval, |
| const UtCalendar & | aStartEpoch, | ||
| double | aCoverageStart, | ||
| double | aSampleDuration ) |
Get the sample on which aInterval starts. The sample on which the coverage interval begins is always sample 0.
| aInterval | The AccessInterval for which to find the start sample. |
| aStartEpoch | The date and time at which the coverage interval begins. |
| aCoverageStart | The simulation time at which the coverage interval begins. When in doubt, use AccessInterval::GetStart(). |
| aSampleDuration | The duration of the samples. |
aInterval begins. References wsf::coverage::AccessInterval::GetStart().