12#ifndef WSFCOVERAGEACCESSINTERVAL_HPP
13#define WSFCOVERAGEACCESSINTERVAL_HPP
15#include "wsf_coverage_export.h"
46 double GetEnd()
const {
return mEnd; }
52 bool IsValid()
const {
return mEnd >= mStart; }
55 bool HasStart()
const {
return mStart >= 0.0; }
58 bool HasEnd()
const {
return mEnd >= 0.0; }
61 void SetStart(
double aSimTime) { mStart = aSimTime; }
64 void SetEnd(
double aSimTime) { mEnd = aSimTime; }
90 bool Contains(
double aSimTime)
const;
bool operator==(int aId, const WsfStringInt &aRhs)
Equal relational operator for the case of an integer on the LHS and a StringId on the RHS.
Definition WsfStringId.hpp:69
bool Contains(std::vector< int > &aQueryTargetIds, const WsfTrack &aShooterTrack)
Definition WsfWeaponThreatProcessor.cpp:1462
Definition WsfCoverageAccessInterval.hpp:28
double GetDuration() const
Get the duration of the interval.
Definition WsfCoverageAccessInterval.hpp:49
AccessInterval & operator=(const AccessInterval &aOther)=default
bool HasStart() const
Returns true if this interval has a non-negative start time.
Definition WsfCoverageAccessInterval.hpp:55
bool operator!=(const AccessInterval &aOther) const
Negated equality operator.
Definition WsfCoverageAccessInterval.hpp:72
double GetEnd() const
Return the end time of the interval.
Definition WsfCoverageAccessInterval.hpp:46
double GetStart() const
Return the start time of the interval.
Definition WsfCoverageAccessInterval.hpp:43
void SetStart(double aSimTime)
Set the start time to the given aSimTime.
Definition WsfCoverageAccessInterval.hpp:61
AccessInterval(const AccessInterval &aOther)=default
void SetEnd(double aSimTime)
Set the end time to the given aSimTime.
Definition WsfCoverageAccessInterval.hpp:64
bool IsValid() const
Returns true if this interval have a non-negative duration.
Definition WsfCoverageAccessInterval.hpp:52
AccessInterval(double aStart, double aEnd)
Definition WsfCoverageAccessInterval.hpp:32
bool HasEnd() const
Returns true if this interval has a non-negative end time.
Definition WsfCoverageAccessInterval.hpp:58
Definition WsfCoverage.cpp:35
Function definitions for those who need run-time access to the version.
Definition WsfComm.cpp:32