UFO
ufo::TrackCheckShip::TrackObservation Class Reference
Collaboration diagram for ufo::TrackCheckShip::TrackObservation:

Public Member Functions

 TrackObservation (double latitude, double longitude, const util::DateTime &time, const std::shared_ptr< TrackStatistics > &trackStatistics, const std::shared_ptr< TrackCheckUtils::CheckCounter > &checkCounter, size_t observationNumber)
 
const TrackCheckUtils::PointgetLocation () const
 
const util::DateTime & getTime () const
 
void setDistance (double dist)
 
void setTimeDifference (util::Duration tDiff)
 
void setSpeed (double speed)
 
void setAngle (double angle)
 
void setDistanceAveraged (double distAvg)
 
void setSpeedAveraged (double speedAvg)
 
void calculateTwoObservationValues (TrackObservation &prevObs, bool firstIteration, const TrackCheckShipParameters &options)
 Calculates all of the statistics that require only two adjacent TrackObservations, storing within the righthand observation. More...
 
void resetObservationCalculations ()
 
void calculateThreeObservationValues (const TrackObservation &prevObs, const TrackObservation &nextObs, bool firstIteration, const TrackCheckShipParameters &options)
 
void adjustTwoObservationStatistics (const TrackCheckShipParameters &options) const
 Keeps track of 0-distanced, short, and fast track segments, as well as incrementing sumSpeed_ for normal track segments. More...
 
void adjustThreeObservationStatistics () const
 Increments number of bends if angle is greater than or equal to 90 degrees. More...
 
const std::shared_ptr< TrackStatisticsgetFullTrackStatistics () const
 
const ObservationStatisticsgetObservationStatistics () const
 
void setRejected (bool rejectedInSweep)
 
size_t getObservationNumber () const
 
bool rejected () const
 

Private Attributes

std::shared_ptr< TrackStatisticsfullTrackStatistics_
 
ObservationStatistics observationStatistics_
 
TrackCheckUtils::ObsLocationTime obsLocationTime_
 
size_t observationNumber_
 
bool rejected_
 

Detailed Description

Definition at line 124 of file src/ufo/filters/TrackCheckShip.h.

Constructor & Destructor Documentation

◆ TrackObservation()

ufo::TrackCheckShip::TrackObservation::TrackObservation ( double  latitude,
double  longitude,
const util::DateTime &  time,
const std::shared_ptr< TrackStatistics > &  trackStatistics,
const std::shared_ptr< TrackCheckUtils::CheckCounter > &  checkCounter,
size_t  observationNumber 
)

Definition at line 92 of file TrackCheckShip.cc.

Member Function Documentation

◆ adjustThreeObservationStatistics()

void ufo::TrackCheckShip::TrackObservation::adjustThreeObservationStatistics ( ) const

Increments number of bends if angle is greater than or equal to 90 degrees.

Definition at line 635 of file TrackCheckShip.cc.

Here is the call graph for this function:

◆ adjustTwoObservationStatistics()

void ufo::TrackCheckShip::TrackObservation::adjustTwoObservationStatistics ( const TrackCheckShipParameters options) const

Keeps track of 0-distanced, short, and fast track segments, as well as incrementing sumSpeed_ for normal track segments.

Definition at line 622 of file TrackCheckShip.cc.

◆ calculateThreeObservationValues()

void ufo::TrackCheckShip::TrackObservation::calculateThreeObservationValues ( const TrackObservation prevObs,
const TrackObservation nextObs,
bool  firstIteration,
const TrackCheckShipParameters options 
)

Calculates all of the statistics that require three consecutive TrackObservations, storing within the middle observation. This includes distance between two alternating observations, speed between these alternating observations (if the middle observation was not recorded), and the angle formed by the three-observation track segment. Calls function to increment track-wise counters based on results.

Definition at line 567 of file TrackCheckShip.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ calculateTwoObservationValues()

void ufo::TrackCheckShip::TrackObservation::calculateTwoObservationValues ( TrackObservation prevObs,
bool  firstIteration,
const TrackCheckShipParameters options 
)

Calculates all of the statistics that require only two adjacent TrackObservations, storing within the righthand observation.

Todo:
Trace output will need to be changed to match that of OPS (indices, LWin)

This includes distance between the two observations, time difference between the observations, speed between the observations, and if the observations are recorded for the same time. Calls function to increment track-wise counters based on results.

Definition at line 538 of file TrackCheckShip.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getFullTrackStatistics()

const std::shared_ptr< TrackCheckShip::TrackStatistics > ufo::TrackCheckShip::TrackObservation::getFullTrackStatistics ( ) const

Definition at line 647 of file TrackCheckShip.cc.

Here is the caller graph for this function:

◆ getLocation()

const TrackCheckUtils::Point& ufo::TrackCheckShip::TrackObservation::getLocation ( ) const
inline

Definition at line 131 of file src/ufo/filters/TrackCheckShip.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getObservationNumber()

size_t ufo::TrackCheckShip::TrackObservation::getObservationNumber ( ) const

Definition at line 101 of file TrackCheckShip.cc.

◆ getObservationStatistics()

const TrackCheckShip::ObservationStatistics & ufo::TrackCheckShip::TrackObservation::getObservationStatistics ( ) const

Definition at line 641 of file TrackCheckShip.cc.

Here is the caller graph for this function:

◆ getTime()

const util::DateTime& ufo::TrackCheckShip::TrackObservation::getTime ( ) const
inline

Definition at line 134 of file src/ufo/filters/TrackCheckShip.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ rejected()

bool ufo::TrackCheckShip::TrackObservation::rejected ( ) const
inline

Definition at line 164 of file src/ufo/filters/TrackCheckShip.h.

◆ resetObservationCalculations()

void ufo::TrackCheckShip::TrackObservation::resetObservationCalculations ( )

Definition at line 551 of file TrackCheckShip.cc.

◆ setAngle()

void ufo::TrackCheckShip::TrackObservation::setAngle ( double  angle)

Definition at line 661 of file TrackCheckShip.cc.

Here is the call graph for this function:

◆ setDistance()

void ufo::TrackCheckShip::TrackObservation::setDistance ( double  dist)

Definition at line 652 of file TrackCheckShip.cc.

◆ setDistanceAveraged()

void ufo::TrackCheckShip::TrackObservation::setDistanceAveraged ( double  distAvg)

Definition at line 664 of file TrackCheckShip.cc.

◆ setRejected()

void ufo::TrackCheckShip::TrackObservation::setRejected ( bool  rejectedInSweep)
inline

Definition at line 158 of file src/ufo/filters/TrackCheckShip.h.

Here is the caller graph for this function:

◆ setSpeed()

void ufo::TrackCheckShip::TrackObservation::setSpeed ( double  speed)

Definition at line 658 of file TrackCheckShip.cc.

◆ setSpeedAveraged()

void ufo::TrackCheckShip::TrackObservation::setSpeedAveraged ( double  speedAvg)

Definition at line 667 of file TrackCheckShip.cc.

◆ setTimeDifference()

void ufo::TrackCheckShip::TrackObservation::setTimeDifference ( util::Duration  tDiff)

Definition at line 655 of file TrackCheckShip.cc.

Member Data Documentation

◆ fullTrackStatistics_

std::shared_ptr<TrackStatistics> ufo::TrackCheckShip::TrackObservation::fullTrackStatistics_
private

Definition at line 169 of file src/ufo/filters/TrackCheckShip.h.

◆ observationNumber_

size_t ufo::TrackCheckShip::TrackObservation::observationNumber_
private

Definition at line 172 of file src/ufo/filters/TrackCheckShip.h.

◆ observationStatistics_

ObservationStatistics ufo::TrackCheckShip::TrackObservation::observationStatistics_
private

Definition at line 170 of file src/ufo/filters/TrackCheckShip.h.

◆ obsLocationTime_

TrackCheckUtils::ObsLocationTime ufo::TrackCheckShip::TrackObservation::obsLocationTime_
private

Definition at line 171 of file src/ufo/filters/TrackCheckShip.h.

◆ rejected_

bool ufo::TrackCheckShip::TrackObservation::rejected_
private

Definition at line 173 of file src/ufo/filters/TrackCheckShip.h.


The documentation for this class was generated from the following files: