List of all members | Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes
RdAirplane::Flight Class Reference

#include <Flight.h>

Public Types

typedef std::set< Ads_bEvent
*, Ads_bEventComparator
Ads_bEventSet
 
typedef std::list
< Interpolator3D * > 
InterpolatorList
 

Public Member Functions

Ads_bEventaddAds_bEvent (const utl::TimeStamp &pCaptureTime, const utl::UTMPoint &pCoordinates, const std::string &pAds_bMessageAsHex)
 
 Flight (Airplane *pAirplane)
 
const Ads_bEventSetgetAdsbEvents (Ads_bEvent::AltitudeType pAltitudeType) const
 
const Ads_bEventSetgetAdsbEvents () const
 
const AirplanegetAirplane () const
 
const Ads_bEventgetEarliestAds_bEvent () const
 
const std::string & getId () const
 
std::string getInfo () const
 
const Ads_bEventgetLatestAds_bEvent () const
 
const AirplaneOffsetgetOffset () const
 
utl::PointgetPosition (const utl::TimeStamp &pTime, Ads_bEvent::AltitudeType pAltitudeType) const
 
utl::PointgetPosition (const utl::TimeStamp &pTime) const
 
utl::VectorgetSpeed (const utl::TimeStamp &pTime, Ads_bEvent::AltitudeType pAltitudeType) const
 
utl::VectorgetSpeed (const utl::TimeStamp &pTime) const
 
void Init ()
 
bool isTimeDuringFlight (const utl::TimeStamp &pTime) const
 
virtual ~Flight ()
 

Static Public Member Functions

static const utl::TimeIntervalMaxAllowedTimeBetweenADS_BEventsForInterpolation ()
 

Private Member Functions

Ads_bEventSet_getAdsbEvents (Ads_bEvent::AltitudeType pAltitudeType) const
 
InterpolatorList_getInterpolators (Ads_bEvent::AltitudeType pAltitudeType) const
 
void _interpolateAds_bEvents (Ads_bEvent::AltitudeType pAltitudeType)
 
void _setId ()
 
 DISALLOW_COPY_AND_ASSIGN (Flight)
 

Private Attributes

Ads_bEventSet _ads_bEventsAll_
 
Ads_bEventSet _ads_bEventsCorrectedPressureAltitude_
 
Ads_bEventSet _ads_bEventsGPSAltitude_
 
Ads_bEventSet _ads_bEventsPressureAltitude_
 
Airplane_airplane_
 
const Ads_bEvent_earliestEvent_
 
std::string _id_
 
InterpolatorList _interpolatorsGDASCorrectedPressureAltitude_
 
InterpolatorList _interpolatorsGPSAltitude_
 
InterpolatorList _interpolatorsManuallyCorrectedPressureAltitude_
 
InterpolatorList _interpolatorsPressureAltitude_
 
const Ads_bEvent_latestEvent_
 
const AirplaneOffset_offset_
 

Detailed Description

One aircraft can fly multiple times over the AERA field. One fly-over is represented by this class.

Definition at line 29 of file Flight.h.

Member Typedef Documentation

Definition at line 31 of file Flight.h.

Definition at line 33 of file Flight.h.

Constructor & Destructor Documentation

Flight::Flight ( Airplane pAirplane)

Definition at line 31 of file Flight.cc.

Flight::~Flight ( )
virtual

Member Function Documentation

Flight::Ads_bEventSet & Flight::_getAdsbEvents ( Ads_bEvent::AltitudeType  pAltitudeType) const
private
Flight::InterpolatorList & Flight::_getInterpolators ( Ads_bEvent::AltitudeType  pAltitudeType) const
private
void Flight::_interpolateAds_bEvents ( Ads_bEvent::AltitudeType  pAltitudeType)
private
void Flight::_setId ( )
private
Ads_bEvent * Flight::addAds_bEvent ( const utl::TimeStamp pCaptureTime,
const utl::UTMPoint pCoordinates,
const std::string &  pAds_bMessageAsHex 
)
RdAirplane::Flight::DISALLOW_COPY_AND_ASSIGN ( Flight  )
private
const Flight::Ads_bEventSet & Flight::getAdsbEvents ( Ads_bEvent::AltitudeType  pAltitudeType) const

Definition at line 121 of file Flight.cc.

References _getAdsbEvents().

Referenced by RdAirplane::RdTransformAds_bLogFile::Init().

const Flight::Ads_bEventSet & Flight::getAdsbEvents ( ) const

Definition at line 125 of file Flight.cc.

References _ads_bEventsAll_.

const Airplane& RdAirplane::Flight::getAirplane ( ) const
inline
const Ads_bEvent * Flight::getEarliestAds_bEvent ( ) const

Definition at line 48 of file Flight.cc.

References _ads_bEventsAll_.

Referenced by Init().

const std::string& RdAirplane::Flight::getId ( ) const
inline
string Flight::getInfo ( ) const
const Ads_bEvent * Flight::getLatestAds_bEvent ( ) const

Definition at line 54 of file Flight.cc.

References _ads_bEventsAll_.

Referenced by RdAirplane::Airplane::AddAds_bEvent(), and Init().

const AirplaneOffset* RdAirplane::Flight::getOffset ( ) const
inline

Definition at line 50 of file Flight.h.

References _offset_.

Referenced by RdAirplane::Ads_bEvent::Ads_bEvent().

Point * Flight::getPosition ( const utl::TimeStamp pTime,
Ads_bEvent::AltitudeType  pAltitudeType 
) const

Returns the position of the airplane at a specific time

Definition at line 186 of file Flight.cc.

References _getInterpolators(), and isTimeDuringFlight().

Referenced by RdAirplane::Ads_bDataBase::getFlights(), getPosition(), RdAirplane::DataWriter::registerEvent(), and RdAirplane::RdAirplaneArrivalDirectionSetter::Run().

Point * Flight::getPosition ( const utl::TimeStamp pTime) const
Vector * Flight::getSpeed ( const utl::TimeStamp pTime,
Ads_bEvent::AltitudeType  pAltitudeType 
) const

Returns the speed of the airplane at a specific time

Definition at line 212 of file Flight.cc.

References _getInterpolators(), and isTimeDuringFlight().

Referenced by getSpeed(), and RdAirplane::DataWriter::registerEvent().

Vector * Flight::getSpeed ( const utl::TimeStamp pTime) const
void Flight::Init ( void  )
bool Flight::isTimeDuringFlight ( const utl::TimeStamp pTime) const

Definition at line 182 of file Flight.cc.

References _earliestEvent_, _latestEvent_, and RdAirplane::Ads_bEvent::getCaptureTime().

Referenced by getPosition(), and getSpeed().

const TimeInterval & Flight::MaxAllowedTimeBetweenADS_BEventsForInterpolation ( )
static

Definition at line 26 of file Flight.cc.

References utl::s.

Referenced by _interpolateAds_bEvents().

Member Data Documentation

Ads_bEventSet RdAirplane::Flight::_ads_bEventsAll_
private
Ads_bEventSet RdAirplane::Flight::_ads_bEventsCorrectedPressureAltitude_
private

Definition at line 92 of file Flight.h.

Referenced by _getAdsbEvents().

Ads_bEventSet RdAirplane::Flight::_ads_bEventsGPSAltitude_
private

Definition at line 93 of file Flight.h.

Referenced by _getAdsbEvents().

Ads_bEventSet RdAirplane::Flight::_ads_bEventsPressureAltitude_
private

Definition at line 91 of file Flight.h.

Referenced by _getAdsbEvents().

Airplane* RdAirplane::Flight::_airplane_
private

Definition at line 89 of file Flight.h.

Referenced by _setId(), and getAirplane().

const Ads_bEvent* RdAirplane::Flight::_earliestEvent_
private

Definition at line 101 of file Flight.h.

Referenced by _setId(), getInfo(), Init(), and isTimeDuringFlight().

std::string RdAirplane::Flight::_id_
private

Definition at line 88 of file Flight.h.

Referenced by _setId(), and getId().

InterpolatorList RdAirplane::Flight::_interpolatorsGDASCorrectedPressureAltitude_
private

Definition at line 98 of file Flight.h.

Referenced by _getInterpolators(), and ~Flight().

InterpolatorList RdAirplane::Flight::_interpolatorsGPSAltitude_
private

Definition at line 99 of file Flight.h.

Referenced by _getInterpolators(), and ~Flight().

InterpolatorList RdAirplane::Flight::_interpolatorsManuallyCorrectedPressureAltitude_
private

Definition at line 97 of file Flight.h.

Referenced by _getInterpolators(), and ~Flight().

InterpolatorList RdAirplane::Flight::_interpolatorsPressureAltitude_
private

Definition at line 96 of file Flight.h.

Referenced by _getInterpolators(), and ~Flight().

const Ads_bEvent* RdAirplane::Flight::_latestEvent_
private

Definition at line 102 of file Flight.h.

Referenced by getInfo(), Init(), and isTimeDuringFlight().

const AirplaneOffset* RdAirplane::Flight::_offset_
private

Definition at line 104 of file Flight.h.

Referenced by addAds_bEvent(), and getOffset().


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

, generated on Tue Sep 26 2023.