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

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

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

Public Member Functions

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

Detailed Description

Class which can be directly used to access an.

See also
IRemoteAircraftProvider object

Definition at line 564 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 1136 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 1130 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 1154 of file remoteaircraftprovider.cpp.

◆ getAircraftInRange()

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

All remote aircraft.

Remarks
This function is thread safe.

Definition at line 967 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 991 of file remoteaircraftprovider.cpp.

◆ getAircraftInRangeCount()

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

Count remote aircraft.

Remarks
This function is thread safe.

Definition at line 985 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 997 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 1003 of file remoteaircraftprovider.cpp.

◆ getLatestAirspaceAircraftSnapshot()

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

Current snapshot.

Remarks
This function is thread safe.

Definition at line 1009 of file remoteaircraftprovider.cpp.

◆ getRemoteAircraftSupportingPartsCount()

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

Number of aircraft supporting parts.

Remarks
This function is thread safe.

Definition at line 1167 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 973 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 1161 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 979 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 1034 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 1028 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 1148 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 1046 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 1052 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 1022 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 1040 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 1016 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 1064 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 1058 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 1179 of file remoteaircraftprovider.cpp.

◆ situationsLastModified()

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

When last modified.

Remarks
This function is thread safe.

Definition at line 1142 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 1173 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 1096 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 1070 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 1077 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 1084 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 1105 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 1117 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 1111 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 1124 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 1185 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 1090 of file remoteaircraftprovider.cpp.


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