swift
Public Member Functions | Protected Member Functions | List of all members
swift::misc::simulation::CSimulationEnvironmentAware Class Reference

Class which can be directly used to access an. More...

Inheritance diagram for swift::misc::simulation::CSimulationEnvironmentAware:
[legend]

Public Member Functions

void setSimulationEnvironmentProvider (ISimulationEnvironmentProvider *provider)
 Set the provider.
 
geo::CElevationPlane findClosestElevationWithinRange (const geo::ICoordinateGeodetic &reference, const physical_quantities::CLength &range) const
 Find closest elevation (or return NULL) More...
 
geo::CElevationPlane findClosestElevationWithinRangeOrRequest (const geo::ICoordinateGeodetic &reference, const physical_quantities::CLength &range, const aviation::CCallsign &callsign)
 Find closest elevation or request elevation. More...
 
geo::CElevationPlane averageElevationOfOnGroundAircraft (const aviation::CAircraftSituation &reference, const physical_quantities::CLength &range, int minValues, int sufficientValues) const
 Average elevation of "on ground" cached values. More...
 
aviation::CAltitude highestElevation () const
 Highest elevation. More...
 
bool requestElevation (const geo::ICoordinateGeodetic &reference, const aviation::CCallsign &callsign)
 Request elevation, there is no guarantee the requested elevation will be available in the provider. More...
 
bool requestElevation (const aviation::CAircraftSituation &situation)
 Request elevation, there is no guarantee the requested elevation will be available in the provider. More...
 
QPair< int, int > getElevationsFoundMissed () const
 Elevations found/missed statistics. More...
 
QString getElevationsFoundMissedInfo () const
 Elevations found/missed statistics info as string. More...
 
QPair< qint64, qint64 > getElevationRequestTimes () const
 The elevation request times. More...
 
QString getElevationRequestTimesInfo () const
 Elevation request times. More...
 
CSimulatorPluginInfo getSimulatorPluginInfo () const
 Get the represented plugin. More...
 
CSimulatorInfo getSimulatorInfo () const
 Get the represented plugin. More...
 
QString getSimulatorNameAndVersion () const
 Version and simulator details info. More...
 
CAircraftModel getDefaultModel () const
 Default model. More...
 
physical_quantities::CLength getSimulatorCG (const aviation::CCallsign &callsign) const
 Get CG per callsign, NULL if not found. More...
 
physical_quantities::CLength getSimulatorOrDbCG (const aviation::CCallsign &callsign, const physical_quantities::CLength &dbCG) const
 Get CG per callsign, NULL if not found. More...
 
bool hasSimulatorCG (const aviation::CCallsign &callsign) const
 Has a CG? More...
 
bool cleanElevationValues (const aviation::CAircraftSituation &reference, const physical_quantities::CLength &range, bool forced=false)
 Remove cached elevations outside range, "forced" cleans always, otherwise only if max.values are reached. More...
 

Protected Member Functions

 CSimulationEnvironmentAware ()
 Default constructor.
 
 CSimulationEnvironmentAware (ISimulationEnvironmentProvider *simEnvProvider)
 Constructor.
 
- Protected Member Functions inherited from swift::misc::IProviderAware< ISimulationEnvironmentProvider >
 IProviderAware (ISimulationEnvironmentProvider *provider=nullptr)
 Ctor.
 
virtual ~IProviderAware ()
 Dtor.
 
bool hasProvider () const
 Has provider?
 
ISimulationEnvironmentProvider * getProvider () const
 Provider.
 
void setProvider (ISimulationEnvironmentProvider *provider)
 Set the provider. More...
 
ISimulationEnvironmentProvider * provider ()
 Provider.
 
const ISimulationEnvironmentProvider * provider () const
 Const provider.
 

Detailed Description

Class which can be directly used to access an.

See also
ISimulationEnvironmentProvider object

Definition at line 336 of file simulationenvironmentprovider.h.

Member Function Documentation

◆ averageElevationOfOnGroundAircraft()

CElevationPlane swift::misc::simulation::CSimulationEnvironmentAware::averageElevationOfOnGroundAircraft ( const aviation::CAircraftSituation reference,
const physical_quantities::CLength range,
int  minValues,
int  sufficientValues 
) const

Average elevation of "on ground" cached values.

Remarks
This function is thread safe.

Definition at line 763 of file simulationenvironmentprovider.cpp.

◆ cleanElevationValues()

bool swift::misc::simulation::CSimulationEnvironmentAware::cleanElevationValues ( const aviation::CAircraftSituation reference,
const physical_quantities::CLength range,
bool  forced = false 
)

Remove cached elevations outside range, "forced" cleans always, otherwise only if max.values are reached.

Remarks
This function is thread safe.

Definition at line 854 of file simulationenvironmentprovider.cpp.

◆ findClosestElevationWithinRange()

CElevationPlane swift::misc::simulation::CSimulationEnvironmentAware::findClosestElevationWithinRange ( const geo::ICoordinateGeodetic reference,
const physical_quantities::CLength range 
) const

Find closest elevation (or return NULL)

Remarks
This function is thread safe.

Definition at line 749 of file simulationenvironmentprovider.cpp.

◆ findClosestElevationWithinRangeOrRequest()

CElevationPlane swift::misc::simulation::CSimulationEnvironmentAware::findClosestElevationWithinRangeOrRequest ( const geo::ICoordinateGeodetic reference,
const physical_quantities::CLength range,
const aviation::CCallsign callsign 
)

Find closest elevation or request elevation.

Remarks
This function is thread safe.

Definition at line 756 of file simulationenvironmentprovider.cpp.

◆ getDefaultModel()

CAircraftModel swift::misc::simulation::CSimulationEnvironmentAware::getDefaultModel ( ) const

Default model.

Remarks
This function is thread safe.

Definition at line 830 of file simulationenvironmentprovider.cpp.

◆ getElevationRequestTimes()

QPair< qint64, qint64 > swift::misc::simulation::CSimulationEnvironmentAware::getElevationRequestTimes ( ) const

The elevation request times.

Remarks
This function is thread safe.

Definition at line 800 of file simulationenvironmentprovider.cpp.

◆ getElevationRequestTimesInfo()

QString swift::misc::simulation::CSimulationEnvironmentAware::getElevationRequestTimesInfo ( ) const

Elevation request times.

Remarks
This function is thread safe.

Definition at line 806 of file simulationenvironmentprovider.cpp.

◆ getElevationsFoundMissed()

QPair< int, int > swift::misc::simulation::CSimulationEnvironmentAware::getElevationsFoundMissed ( ) const

Elevations found/missed statistics.

Remarks
This function is thread safe.

Definition at line 788 of file simulationenvironmentprovider.cpp.

◆ getElevationsFoundMissedInfo()

QString swift::misc::simulation::CSimulationEnvironmentAware::getElevationsFoundMissedInfo ( ) const

Elevations found/missed statistics info as string.

Remarks
This function is thread safe.

Definition at line 794 of file simulationenvironmentprovider.cpp.

◆ getSimulatorCG()

CLength swift::misc::simulation::CSimulationEnvironmentAware::getSimulatorCG ( const aviation::CCallsign callsign) const

Get CG per callsign, NULL if not found.

Remarks
This function is thread safe.

Definition at line 836 of file simulationenvironmentprovider.cpp.

◆ getSimulatorInfo()

CSimulatorInfo swift::misc::simulation::CSimulationEnvironmentAware::getSimulatorInfo ( ) const

Get the represented plugin.

Remarks
This function is thread safe.

Definition at line 818 of file simulationenvironmentprovider.cpp.

◆ getSimulatorNameAndVersion()

QString swift::misc::simulation::CSimulationEnvironmentAware::getSimulatorNameAndVersion ( ) const

Version and simulator details info.

Remarks
This function is thread safe.

Definition at line 824 of file simulationenvironmentprovider.cpp.

◆ getSimulatorOrDbCG()

CLength swift::misc::simulation::CSimulationEnvironmentAware::getSimulatorOrDbCG ( const aviation::CCallsign callsign,
const physical_quantities::CLength dbCG 
) const

Get CG per callsign, NULL if not found.

Remarks
This function is thread safe.

Definition at line 842 of file simulationenvironmentprovider.cpp.

◆ getSimulatorPluginInfo()

CSimulatorPluginInfo swift::misc::simulation::CSimulationEnvironmentAware::getSimulatorPluginInfo ( ) const

Get the represented plugin.

Remarks
This function is thread safe.

Definition at line 812 of file simulationenvironmentprovider.cpp.

◆ hasSimulatorCG()

bool swift::misc::simulation::CSimulationEnvironmentAware::hasSimulatorCG ( const aviation::CCallsign callsign) const

Has a CG?

Remarks
This function is thread safe.

Definition at line 848 of file simulationenvironmentprovider.cpp.

◆ highestElevation()

CAltitude swift::misc::simulation::CSimulationEnvironmentAware::highestElevation ( ) const

Highest elevation.

Remarks
This function is thread safe.

Definition at line 771 of file simulationenvironmentprovider.cpp.

◆ requestElevation() [1/2]

bool swift::misc::simulation::CSimulationEnvironmentAware::requestElevation ( const aviation::CAircraftSituation situation)

Request elevation, there is no guarantee the requested elevation will be available in the provider.

Remarks
This function is thread safe.

Definition at line 783 of file simulationenvironmentprovider.cpp.

◆ requestElevation() [2/2]

bool swift::misc::simulation::CSimulationEnvironmentAware::requestElevation ( const geo::ICoordinateGeodetic reference,
const aviation::CCallsign callsign 
)

Request elevation, there is no guarantee the requested elevation will be available in the provider.

Remarks
This function is thread safe.

Definition at line 777 of file simulationenvironmentprovider.cpp.


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