swift
Loading...
Searching...
No Matches
swift::misc::simulation::CSimulationEnvironmentAware Class Reference

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

#include <simulationenvironmentprovider.h>

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).
geo::CElevationPlane findClosestElevationWithinRangeOrRequest (const geo::ICoordinateGeodetic &reference, const physical_quantities::CLength &range, const aviation::CCallsign &callsign)
 Find closest elevation or request elevation.
geo::CElevationPlane averageElevationOfOnGroundAircraft (const aviation::CAircraftSituation &reference, const physical_quantities::CLength &range, int minValues, int sufficientValues) const
 Average elevation of "on ground" cached values.
aviation::CAltitude highestElevation () const
 Highest elevation.
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.
bool requestElevation (const aviation::CAircraftSituation &situation)
 Request elevation, there is no guarantee the requested elevation will be available in the provider.
QPair< int, int > getElevationsFoundMissed () const
 Elevations found/missed statistics.
QString getElevationsFoundMissedInfo () const
 Elevations found/missed statistics info as string.
QPair< qint64, qint64 > getElevationRequestTimes () const
 The elevation request times.
QString getElevationRequestTimesInfo () const
 Elevation request times.
CSimulatorPluginInfo getSimulatorPluginInfo () const
 Get the represented plugin.
CSimulatorInfo getSimulatorInfo () const
 Get the represented plugin.
QString getSimulatorNameAndVersion () const
 Version and simulator details info.
CAircraftModel getDefaultModel () const
 Default model.
physical_quantities::CLength getSimulatorCG (const aviation::CCallsign &callsign) const
 Get CG per callsign, NULL if not found.
physical_quantities::CLength getSimulatorOrDbCG (const aviation::CCallsign &callsign, const physical_quantities::CLength &dbCG) const
 Get CG per callsign, NULL if not found.
bool hasSimulatorCG (const aviation::CCallsign &callsign) const
 Has a CG?
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.

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 ()=default
 Dtor.
bool hasProvider () const
 Has provider?
ISimulationEnvironmentProvider * getProvider () const
 Provider.
void setProvider (ISimulationEnvironmentProvider *provider)
 Set the provider.
ISimulationEnvironmentProvider * provider ()
 Provider.

Detailed Description

Class which can be directly used to access an.

See also
ISimulationEnvironmentProvider object

Definition at line 336 of file simulationenvironmentprovider.h.

Constructor & Destructor Documentation

◆ CSimulationEnvironmentAware() [1/2]

swift::misc::simulation::CSimulationEnvironmentAware::CSimulationEnvironmentAware ( )
inlineprotected

Default constructor.

Definition at line 407 of file simulationenvironmentprovider.h.

◆ CSimulationEnvironmentAware() [2/2]

swift::misc::simulation::CSimulationEnvironmentAware::CSimulationEnvironmentAware ( ISimulationEnvironmentProvider * simEnvProvider)
inlineprotected

Constructor.

Definition at line 410 of file simulationenvironmentprovider.h.

Member Function Documentation

◆ anchor()

void swift::misc::simulation::CSimulationEnvironmentAware::anchor ( )
privatevirtual

Definition at line 884 of file simulationenvironmentprovider.cpp.

◆ 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 907 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 1040 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 887 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 897 of file simulationenvironmentprovider.cpp.

◆ getDefaultModel()

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

Default model.

Remarks
This function is thread safe.

Definition at line 1004 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 959 of file simulationenvironmentprovider.cpp.

◆ getElevationRequestTimesInfo()

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

Elevation request times.

Remarks
This function is thread safe.

Definition at line 968 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 941 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 950 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 1013 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 986 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 995 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 1022 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 977 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 1031 of file simulationenvironmentprovider.cpp.

◆ highestElevation()

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

Highest elevation.

Remarks
This function is thread safe.

Definition at line 918 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 936 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 927 of file simulationenvironmentprovider.cpp.

◆ setSimulationEnvironmentProvider()

void swift::misc::simulation::CSimulationEnvironmentAware::setSimulationEnvironmentProvider ( ISimulationEnvironmentProvider * provider)
inline

Set the provider.

Definition at line 342 of file simulationenvironmentprovider.h.


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