VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Attributes
DtAdsbTrack Class Reference

Class definition for one track created from ADSB messages, i.e. the identifying information and time-stamped position data for one aircraft (i.e. unique ICAO Address).

Public Member Functions

 DtAdsbTrack ()
 
 ~DtAdsbTrack ()
 
virtual int netRepSize () const
 
virtual bool setFromNet (const char *contentBuffer, unsigned contentSize=0)
 
virtual bool setToNet (char *contentBuffer)
 
void setIcaoAddress (const int icaoAddr)
 
int icaoAddress () const
 
void setAircraftType (const std::string)
 
std::string aircraftType () const
 
void setTailNumber (const std::string)
 
std::string tailNumber () const
 
void setMaxSpeedFlown (const double s)
 
double maxSpeedFlown () const
 
void checkAndSetMaxSpeed (const double s)
 
void setMaxAltitudeFlown (const double a)
 
double maxAltitudeFlown () const
 
void checkAndSetMaxAltitude (const double a)
 
void setMaxFlightDistance (const double d)
 
double maxFlightDistance () const
 
void checkAndsetMaxFlightDistance (const double d)
 
DtAdsbPathPointMap::iterator addPathPoint (const DtAdsb::DtPathPoint &point)
 
const DtAdsbPathPointMappath () const
 
DtAdsbPathPointMappath ()
 
void setSquawkChangedTimestamp (const double t)
 
double squawkChangedTimestamp () const
 
bool isSquawkChanged (const double t) const
 

Protected Attributes

int myIcaoAddress
 
double myMaxSpeedFlown
 
double myMaxAltitudeFlown
 
double myMaxFlightDistance
 
DtAdsbPathPointMap myPath
 
std::string myAircraftType
 
std::string myTailNumber
 
double mySquawkChangedTimestamp
 

Constructor & Destructor Documentation

DtAdsbTrack::DtAdsbTrack ( )
DtAdsbTrack::~DtAdsbTrack ( )

Member Function Documentation

virtual int DtAdsbTrack::netRepSize ( ) const
virtual

Find the bounding box of the aircraft path. Fills in myMaxN-S-E-W in the class and the flag myCrosses180Line. Note that if the path goes across the +-180 longitude line, the west coordinate will be > the east coordinate value. Also records the start and end times of the path.

Returns
True unless there is no path or the path data is bad, in which case returns false. TODO fix the implementation for these: Returns the size of the full network representation padded to an 8-byte boundary.
virtual bool DtAdsbTrack::setFromNet ( const char contentBuffer,
unsigned  contentSize = 0 
)
virtual

Fills in the task from the network buffer. Content size is not used.

virtual bool DtAdsbTrack::setToNet ( char contentBuffer)
virtual

Fills in the network buffer with the task contents. Buffer must be allocated by the caller, with size netRepSize.

void DtAdsbTrack::setIcaoAddress ( const int  icaoAddr)

An ICAO address.

int DtAdsbTrack::icaoAddress ( ) const
void DtAdsbTrack::setAircraftType ( const std::string  )

ICAO type.

std::string DtAdsbTrack::aircraftType ( ) const
void DtAdsbTrack::setTailNumber ( const std::string  )
std::string DtAdsbTrack::tailNumber ( ) const
void DtAdsbTrack::setMaxSpeedFlown ( const double  s)

The maximum speed flown over all of the processed data.

double DtAdsbTrack::maxSpeedFlown ( ) const
void DtAdsbTrack::checkAndSetMaxSpeed ( const double  s)

Test the speed s against the max so far, and if greater, set max to s.

void DtAdsbTrack::setMaxAltitudeFlown ( const double  a)

The maximum altitude flown over all the processed data.

double DtAdsbTrack::maxAltitudeFlown ( ) const
void DtAdsbTrack::checkAndSetMaxAltitude ( const double  a)

Test the altitude a against the max so far, and if greater, set max to a.

void DtAdsbTrack::setMaxFlightDistance ( const double  d)

The maximum distance flown over all the processed data.

double DtAdsbTrack::maxFlightDistance ( ) const
void DtAdsbTrack::checkAndsetMaxFlightDistance ( const double  d)

Test the distance against the max so far, and if greater, set max to d.

DtAdsbPathPointMap::iterator DtAdsbTrack::addPathPoint ( const DtAdsb::DtPathPoint point)

Add the given point to the path for this track. Note that this invalidates the derived data (maxNSEW and start/endTime).

const DtAdsbPathPointMap& DtAdsbTrack::path ( ) const

Get the points in the track path.

DtAdsbPathPointMap& DtAdsbTrack::path ( )
void DtAdsbTrack::setSquawkChangedTimestamp ( const double  t)

The timestamp when mySquawkCode changes in a future path point.

double DtAdsbTrack::squawkChangedTimestamp ( ) const
bool DtAdsbTrack::isSquawkChanged ( const double  t) const

Determine if mySquawkChangedTimestamp elapsed.

Member Data Documentation

int DtAdsbTrack::myIcaoAddress
protected

Integer representation of 6-hex-digit value in file.

double DtAdsbTrack::myMaxSpeedFlown
protected

The maximum speed this aircraft flew in the processed data.

double DtAdsbTrack::myMaxAltitudeFlown
protected

The maximum altitude this aircraft flew in the processed data.

double DtAdsbTrack::myMaxFlightDistance
protected

The maximum distance this aircraft flew in the processed data.

DtAdsbPathPointMap DtAdsbTrack::myPath
protected

The key is the timestamp.

std::string DtAdsbTrack::myAircraftType
protected

ICAO type.

std::string DtAdsbTrack::myTailNumber
protected
double DtAdsbTrack::mySquawkChangedTimestamp
protected

The timestamp when mySquawkCode changes in a future path point.


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

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)