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

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

#include <remoteaircraftprovider.h>

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

Public Member Functions

 ~CRemoteAircraftAware ()=default
 Destructor.
CSimulatedAircraftList getAircraftInRange () const
 All remote aircraft.
bool isAircraftInRange (const aviation::CCallsign &callsign) const
 Is aircraft in range?
bool isVtolAircraft (const aviation::CCallsign &callsign) const
 Is VTOL aircraft?
int getAircraftInRangeCount () const
 Count remote aircraft.
aviation::CCallsignSet getAircraftInRangeCallsigns () const
 Unique callsigns for aircraft in range.
CSimulatedAircraft getAircraftInRangeForCallsign (const aviation::CCallsign &callsign) const
 Aircraft for callsign.
CAircraftModel getAircraftInRangeModelForCallsign (const aviation::CCallsign &callsign) const
 Aircraft model for callsign.
CAirspaceAircraftSnapshot getLatestAirspaceAircraftSnapshot () const
 Current snapshot.
aviation::CAircraftSituationList remoteAircraftSituations (const aviation::CCallsign &callsign) const
 Rendered aircraft situations (per callsign, time history).
aviation::CAircraftSituation remoteAircraftSituation (const aviation::CCallsign &callsign, int index) const
 Rendered aircraft situations (per callsign and index).
aviation::CAircraftSituationList latestRemoteAircraftSituations () const
 Latest aircraft situation for all callsigns.
aviation::CAircraftSituationList latestOnGroundProviderElevations () const
 Latest aircraft situation "on ground" having a provider elevation.
int remoteAircraftSituationsCount (const aviation::CCallsign &callsign) const
 Number of remote aircraft situations for callsign.
aviation::CAircraftPartsList remoteAircraftParts (const aviation::CCallsign &callsign) const
 All parts (per callsign, time history).
int remoteAircraftPartsCount (const aviation::CCallsign &callsign) const
 All parts (per callsign, time history).
aviation::CAircraftSituationChangeList remoteAircraftSituationChanges (const aviation::CCallsign &callsign) const
 Aircraft changes.
aviation::CCallsignSet remoteAircraftSupportingParts () const
 Remote aircraft supporting parts.
bool isRemoteAircraftSupportingParts (const aviation::CCallsign &callsign) const
 Is remote aircraft supporting parts?
int getRemoteAircraftSupportingPartsCount () const
 Number of aircraft supporting parts.
bool updateAircraftEnabled (const aviation::CCallsign &callsign, bool enabledForRendering)
 Enable/disable aircraft and follow up logic like sending signals.
bool setAircraftEnabledFlag (const aviation::CCallsign &callsign, bool enabledForRendering)
 Just set enable/disable aircraft flag, no further logic.
bool updateMultipleAircraftEnabled (const aviation::CCallsignSet &callsigns, bool enabledForRendering)
 Enable/disable aircraft.
bool updateAircraftModel (const aviation::CCallsign &callsign, const CAircraftModel &model, const CIdentifier &originator)
 Change model.
bool updateAircraftNetworkModel (const aviation::CCallsign &callsign, const CAircraftModel &model, const CIdentifier &originator)
 Change network model.
bool updateAircraftRendered (const aviation::CCallsign &callsign, bool rendered)
 Set aircraft rendered.
bool updateMultipleAircraftRendered (const aviation::CCallsignSet &callsigns, bool rendered)
 Set aircraft rendered.
int updateAircraftGroundElevation (const aviation::CCallsign &callsign, const geo::CElevationPlane &elevation, aviation::CAircraftSituation::GndElevationInfo info, bool *updateAircraftGroundElevation)
 Update the ground elevation.
bool updateCG (const aviation::CCallsign &callsign, const physical_quantities::CLength &cg)
 Update the CG.
aviation::CCallsignSet updateCGForModel (const QString &modelString, const physical_quantities::CLength &cg)
 Update the CG for this model string.
bool updateCGAndModelString (const aviation::CCallsign &callsign, const physical_quantities::CLength &cg, const QString &modelString)
 Update the CG and model string.
void updateMarkAllAsNotRendered ()
 Mark all as not rendered.
int aircraftSituationsAdded () const
 Number of situations added.
int aircraftPartsAdded () const
 Number of parts added.
qint64 situationsLastModified (const aviation::CCallsign &callsign) const
 When last modified.
qint64 partsLastModified (const aviation::CCallsign &callsign) const
 When last modified.
geo::CElevationPlane averageElevationOfNonMovingAircraft (const aviation::CAircraftSituation &reference, const physical_quantities::CLength &range, int minValues=1) const
 Average elevation of aircraft in given range, which are NOT moving.
void setRemoteAircraftProvider (IRemoteAircraftProvider *remoteAircraftProvider)
 Set remote aircraft provider.
IRemoteAircraftProvider * getRemoteAircraftProvider () const
 Get the aircraft provider.

Protected Member Functions

 CRemoteAircraftAware ()
 Default constructor.
 CRemoteAircraftAware (IRemoteAircraftProvider *remoteAircraftProvider)
 Constructor.
Protected Member Functions inherited from swift::misc::IProviderAware< IRemoteAircraftProvider >
 IProviderAware (IRemoteAircraftProvider *provider=nullptr)
 Ctor.
virtual ~IProviderAware ()=default
 Dtor.
bool hasProvider () const
 Has provider?
IRemoteAircraftProvider * getProvider () const
 Provider.
void setProvider (IRemoteAircraftProvider *provider)
 Set the provider.
IRemoteAircraftProvider * provider ()
 Provider.

Detailed Description

Class which can be directly used to access an.

See also
IRemoteAircraftProvider object

Definition at line 559 of file remoteaircraftprovider.h.

Constructor & Destructor Documentation

◆ CRemoteAircraftAware() [1/2]

swift::misc::simulation::CRemoteAircraftAware::CRemoteAircraftAware ( )
inlineprotected

Default constructor.

Definition at line 692 of file remoteaircraftprovider.h.

◆ CRemoteAircraftAware() [2/2]

swift::misc::simulation::CRemoteAircraftAware::CRemoteAircraftAware ( IRemoteAircraftProvider * remoteAircraftProvider)
inlineprotected

Constructor.

Definition at line 695 of file remoteaircraftprovider.h.

Member Function Documentation

◆ aircraftPartsAdded()

int swift::misc::simulation::CRemoteAircraftAware::aircraftPartsAdded ( ) const

Number of parts added.

Remarks
This function is thread safe.

Definition at line 1314 of file remoteaircraftprovider.cpp.

◆ aircraftSituationsAdded()

int swift::misc::simulation::CRemoteAircraftAware::aircraftSituationsAdded ( ) const

Number of situations added.

Remarks
This function is thread safe.

Definition at line 1308 of file remoteaircraftprovider.cpp.

◆ averageElevationOfNonMovingAircraft()

CElevationPlane swift::misc::simulation::CRemoteAircraftAware::averageElevationOfNonMovingAircraft ( const aviation::CAircraftSituation & reference,
const physical_quantities::CLength & range,
int minValues = 1 ) const

Average elevation of aircraft in given range, which are NOT moving.

Remarks
can be used to anticipate field elevation
This function is thread safe.

Definition at line 1332 of file remoteaircraftprovider.cpp.

◆ getAircraftInRange()

CSimulatedAircraftList swift::misc::simulation::CRemoteAircraftAware::getAircraftInRange ( ) const

All remote aircraft.

Remarks
This function is thread safe.

Definition at line 1145 of file remoteaircraftprovider.cpp.

◆ getAircraftInRangeCallsigns()

CCallsignSet swift::misc::simulation::CRemoteAircraftAware::getAircraftInRangeCallsigns ( ) const

Unique callsigns for aircraft in range.

Remarks
This function is thread safe.

Definition at line 1169 of file remoteaircraftprovider.cpp.

◆ getAircraftInRangeCount()

int swift::misc::simulation::CRemoteAircraftAware::getAircraftInRangeCount ( ) const

Count remote aircraft.

Remarks
This function is thread safe.

Definition at line 1163 of file remoteaircraftprovider.cpp.

◆ getAircraftInRangeForCallsign()

CSimulatedAircraft swift::misc::simulation::CRemoteAircraftAware::getAircraftInRangeForCallsign ( const aviation::CCallsign & callsign) const

Aircraft for callsign.

Remarks
This function is thread safe.

Definition at line 1175 of file remoteaircraftprovider.cpp.

◆ getAircraftInRangeModelForCallsign()

CAircraftModel swift::misc::simulation::CRemoteAircraftAware::getAircraftInRangeModelForCallsign ( const aviation::CCallsign & callsign) const

Aircraft model for callsign.

Remarks
This function is thread safe.

Definition at line 1181 of file remoteaircraftprovider.cpp.

◆ getLatestAirspaceAircraftSnapshot()

CAirspaceAircraftSnapshot swift::misc::simulation::CRemoteAircraftAware::getLatestAirspaceAircraftSnapshot ( ) const

Current snapshot.

Remarks
This function is thread safe.

Definition at line 1187 of file remoteaircraftprovider.cpp.

◆ getRemoteAircraftProvider()

IRemoteAircraftProvider * swift::misc::simulation::CRemoteAircraftAware::getRemoteAircraftProvider ( ) const
inline

Get the aircraft provider.

Definition at line 688 of file remoteaircraftprovider.h.

◆ getRemoteAircraftSupportingPartsCount()

int swift::misc::simulation::CRemoteAircraftAware::getRemoteAircraftSupportingPartsCount ( ) const

Number of aircraft supporting parts.

Remarks
This function is thread safe.

Definition at line 1345 of file remoteaircraftprovider.cpp.

◆ isAircraftInRange()

bool swift::misc::simulation::CRemoteAircraftAware::isAircraftInRange ( const aviation::CCallsign & callsign) const

Is aircraft in range?

Remarks
This function is thread safe.

Definition at line 1151 of file remoteaircraftprovider.cpp.

◆ isRemoteAircraftSupportingParts()

bool swift::misc::simulation::CRemoteAircraftAware::isRemoteAircraftSupportingParts ( const aviation::CCallsign & callsign) const

Is remote aircraft supporting parts?

Remarks
This function is thread safe.

Definition at line 1339 of file remoteaircraftprovider.cpp.

◆ isVtolAircraft()

bool swift::misc::simulation::CRemoteAircraftAware::isVtolAircraft ( const aviation::CCallsign & callsign) const

Is VTOL aircraft?

Remarks
This function is thread safe.

Definition at line 1157 of file remoteaircraftprovider.cpp.

◆ latestOnGroundProviderElevations()

CAircraftSituationList swift::misc::simulation::CRemoteAircraftAware::latestOnGroundProviderElevations ( ) const

Latest aircraft situation "on ground" having a provider elevation.

Remarks
This function is thread safe.

Definition at line 1212 of file remoteaircraftprovider.cpp.

◆ latestRemoteAircraftSituations()

CAircraftSituationList swift::misc::simulation::CRemoteAircraftAware::latestRemoteAircraftSituations ( ) const

Latest aircraft situation for all callsigns.

Remarks
This function is thread safe.

Definition at line 1206 of file remoteaircraftprovider.cpp.

◆ partsLastModified()

qint64 swift::misc::simulation::CRemoteAircraftAware::partsLastModified ( const aviation::CCallsign & callsign) const

When last modified.

Remarks
This function is thread safe.

Definition at line 1326 of file remoteaircraftprovider.cpp.

◆ remoteAircraftParts()

CAircraftPartsList swift::misc::simulation::CRemoteAircraftAware::remoteAircraftParts ( const aviation::CCallsign & callsign) const

All parts (per callsign, time history).

Remarks
latest parts first
This function is thread safe.

Definition at line 1224 of file remoteaircraftprovider.cpp.

◆ remoteAircraftPartsCount()

int swift::misc::simulation::CRemoteAircraftAware::remoteAircraftPartsCount ( const aviation::CCallsign & callsign) const

All parts (per callsign, time history).

Remarks
This function is thread safe.

Definition at line 1230 of file remoteaircraftprovider.cpp.

◆ remoteAircraftSituation()

CAircraftSituation swift::misc::simulation::CRemoteAircraftAware::remoteAircraftSituation ( const aviation::CCallsign & callsign,
int index ) const

Rendered aircraft situations (per callsign and index).

Remarks
if situation does not exist, an NULL situation is returned
Parameters
callsign
index0..latest, 1..next older, ...
Remarks
This function is thread safe.

Definition at line 1200 of file remoteaircraftprovider.cpp.

◆ remoteAircraftSituationChanges()

CAircraftSituationChangeList swift::misc::simulation::CRemoteAircraftAware::remoteAircraftSituationChanges ( const aviation::CCallsign & callsign) const

Aircraft changes.

Remarks
This function is thread safe.

Definition at line 1218 of file remoteaircraftprovider.cpp.

◆ remoteAircraftSituations()

CAircraftSituationList swift::misc::simulation::CRemoteAircraftAware::remoteAircraftSituations ( const aviation::CCallsign & callsign) const

Rendered aircraft situations (per callsign, time history).

Remarks
This function is thread safe.

Definition at line 1194 of file remoteaircraftprovider.cpp.

◆ remoteAircraftSituationsCount()

int swift::misc::simulation::CRemoteAircraftAware::remoteAircraftSituationsCount ( const aviation::CCallsign & callsign) const

Number of remote aircraft situations for callsign.

Remarks
latest situations first
This function is thread safe.

Definition at line 1242 of file remoteaircraftprovider.cpp.

◆ remoteAircraftSupportingParts()

CCallsignSet swift::misc::simulation::CRemoteAircraftAware::remoteAircraftSupportingParts ( ) const

Remote aircraft supporting parts.

Remarks
This function is thread safe.

Definition at line 1236 of file remoteaircraftprovider.cpp.

◆ setAircraftEnabledFlag()

bool swift::misc::simulation::CRemoteAircraftAware::setAircraftEnabledFlag ( const aviation::CCallsign & callsign,
bool enabledForRendering )

Just set enable/disable aircraft flag, no further logic.

Remarks
This function is thread safe.

Definition at line 1357 of file remoteaircraftprovider.cpp.

◆ setRemoteAircraftProvider()

void swift::misc::simulation::CRemoteAircraftAware::setRemoteAircraftProvider ( IRemoteAircraftProvider * remoteAircraftProvider)
inline

Set remote aircraft provider.

Definition at line 682 of file remoteaircraftprovider.h.

◆ situationsLastModified()

qint64 swift::misc::simulation::CRemoteAircraftAware::situationsLastModified ( const aviation::CCallsign & callsign) const

When last modified.

Remarks
This function is thread safe.

Definition at line 1320 of file remoteaircraftprovider.cpp.

◆ updateAircraftEnabled()

bool swift::misc::simulation::CRemoteAircraftAware::updateAircraftEnabled ( const aviation::CCallsign & callsign,
bool enabledForRendering )

Enable/disable aircraft and follow up logic like sending signals.

Remarks
This function is thread safe.
depending on implementation similar or more sophisticated as setEnabledFlag

Definition at line 1351 of file remoteaircraftprovider.cpp.

◆ updateAircraftGroundElevation()

int swift::misc::simulation::CRemoteAircraftAware::updateAircraftGroundElevation ( const aviation::CCallsign & callsign,
const geo::CElevationPlane & elevation,
aviation::CAircraftSituation::GndElevationInfo info,
bool * updateAircraftGroundElevation )

Update the ground elevation.

Remarks
This function is thread safe.

Definition at line 1274 of file remoteaircraftprovider.cpp.

◆ updateAircraftModel()

bool swift::misc::simulation::CRemoteAircraftAware::updateAircraftModel ( const aviation::CCallsign & callsign,
const CAircraftModel & model,
const CIdentifier & originator )

Change model.

Remarks
This function is thread safe.

Definition at line 1248 of file remoteaircraftprovider.cpp.

◆ updateAircraftNetworkModel()

bool swift::misc::simulation::CRemoteAircraftAware::updateAircraftNetworkModel ( const aviation::CCallsign & callsign,
const CAircraftModel & model,
const CIdentifier & originator )

Change network model.

Remarks
This function is thread safe.

Definition at line 1255 of file remoteaircraftprovider.cpp.

◆ updateAircraftRendered()

bool swift::misc::simulation::CRemoteAircraftAware::updateAircraftRendered ( const aviation::CCallsign & callsign,
bool rendered )

Set aircraft rendered.

Remarks
This function is thread safe.

Definition at line 1262 of file remoteaircraftprovider.cpp.

◆ updateCG()

bool swift::misc::simulation::CRemoteAircraftAware::updateCG ( const aviation::CCallsign & callsign,
const physical_quantities::CLength & cg )

Update the CG.

Remarks
This function is thread safe.

Definition at line 1283 of file remoteaircraftprovider.cpp.

◆ updateCGAndModelString()

bool swift::misc::simulation::CRemoteAircraftAware::updateCGAndModelString ( const aviation::CCallsign & callsign,
const physical_quantities::CLength & cg,
const QString & modelString )

Update the CG and model string.

Remarks
This function is thread safe.

Definition at line 1295 of file remoteaircraftprovider.cpp.

◆ updateCGForModel()

CCallsignSet swift::misc::simulation::CRemoteAircraftAware::updateCGForModel ( const QString & modelString,
const physical_quantities::CLength & cg )

Update the CG for this model string.

Remarks
This function is thread safe.

Definition at line 1289 of file remoteaircraftprovider.cpp.

◆ updateMarkAllAsNotRendered()

void swift::misc::simulation::CRemoteAircraftAware::updateMarkAllAsNotRendered ( )

Mark all as not rendered.

Remarks
This function is thread safe.

Definition at line 1302 of file remoteaircraftprovider.cpp.

◆ updateMultipleAircraftEnabled()

bool swift::misc::simulation::CRemoteAircraftAware::updateMultipleAircraftEnabled ( const aviation::CCallsignSet & callsigns,
bool enabledForRendering )

Enable/disable aircraft.

Remarks
This function is thread safe.

Definition at line 1363 of file remoteaircraftprovider.cpp.

◆ updateMultipleAircraftRendered()

bool swift::misc::simulation::CRemoteAircraftAware::updateMultipleAircraftRendered ( const aviation::CCallsignSet & callsigns,
bool rendered )

Set aircraft rendered.

Remarks
This function is thread safe.

Definition at line 1268 of file remoteaircraftprovider.cpp.


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