swift
Classes | Public Types | Signals | Public Member Functions | Static Public Member Functions | Private Member Functions | List of all members
swift::core::CAirspaceMonitor Class Reference

Keeps track of other entities in the airspace: aircraft, ATC stations, etc. Central instance of data for. More...

Inheritance diagram for swift::core::CAirspaceMonitor:
[legend]

Public Types

enum  MatchingReadinessFlag {
  NotReady = 0 , ReceivedIcaoCodes = 1 << 0 , ReceivedFsInnPacket = 1 << 1 , ReadyForMatchingSent = 1 << 2 ,
  RecursiveCall = 1 << 3 , ReceivedAll = ReceivedIcaoCodes | ReceivedFsInnPacket , Verified = 1 << 4
}
 Matching readiness. More...
 

Signals

void changedAtcStationsOnline ()
 Online ATC stations were changed.
 
void atcStationDisconnected (const swift::misc::aviation::CAtcStation &station)
 ATC station disconnected.
 
void readyForModelMatching (const swift::misc::simulation::CSimulatedAircraft &remoteAircraft)
 Ready for model matching.
 
void changedAtisReceived (const swift::misc::aviation::CCallsign &callsign)
 An ATIS has been received.
 
- Signals inherited from swift::misc::simulation::CRemoteAircraftProvider
void addedAircraft (const swift::misc::simulation::CSimulatedAircraft &remoteAircraft)
 A new aircraft appeared.
 
void addedAircraftParts (const swift::misc::aviation::CCallsign &callsign, const swift::misc::aviation::CAircraftParts &parts)
 Parts added.
 
void addedAircraftSituation (const swift::misc::aviation::CAircraftSituation &situation)
 Situation added.
 
void changedAircraftInRange ()
 Aircraft were changed.
 
void removedAircraft (const swift::misc::aviation::CCallsign &callsign)
 An aircraft disappeared.
 
void airspaceAircraftSnapshot (const swift::misc::simulation::CAirspaceAircraftSnapshot &snapshot)
 New aircraft snapshot. More...
 

Public Member Functions

 CAirspaceMonitor (swift::misc::simulation::IOwnAircraftProvider *ownAircraft, swift::misc::simulation::IAircraftModelSetProvider *modelSetProvider, fsd::CFSDClient *fsdClient, QObject *parent)
 Constructor.
 
misc::network::CUserList getUsers () const
 Returns the list of users we know about.
 
misc::network::CUserList getUsersForCallsigns (const misc::aviation::CCallsignSet &callsigns) const
 Returns a list of the users corresponding to the given callsigns.
 
misc::aviation::CFlightPlan loadFlightPlanFromNetwork (const misc::aviation::CCallsign &callsign)
 Returns the loaded flight plan for the given callsign. More...
 
misc::aviation::CFlightPlanRemarks tryToGetFlightPlanRemarks (const misc::aviation::CCallsign &callsign) const
 Try to get flight plan remarks. More...
 
misc::aviation::CAtcStationList getAtcStationsOnline () const
 Returns the current online ATC stations.
 
misc::aviation::CAtcStationList getAtcStationsOnlineRecalculated ()
 Recalculate distance to own aircraft.
 
misc::aviation::CAtcStation getAtcStationForComUnit (const misc::aviation::CComSystem &comSystem) const
 Returns the closest ATC station operating on the given frequency, if any.
 
void clear ()
 Clear the contents.
 
void requestAircraftDataUpdates ()
 Request to update other clients' data from the network.
 
void requestAtisUpdates ()
 Request to update ATC stations' ATIS data from the network.
 
CAirspaceAnalyzeranalyzer () const
 Analyzer.
 
bool enableAnalyzer (bool enable)
 Enabled (running)? More...
 
void gracefulShutdown ()
 Gracefully shut down, e.g. for thread safety.
 
int reInitializeAllAircraft ()
 Re-init all aircrft.
 
void setMaxRange (const swift::misc::physical_quantities::CLength &range)
 Max (FSD) range.
 
bool parseCommandLine (const QString &commandLine, const swift::misc::CIdentifier &originator)
 Parse a given command line. More...
 
QObject * asQObject ()
 Members not implenented or fully implenented by CRemoteAircraftProvider.
 
misc::simulation::CAirspaceAircraftSnapshot getLatestAirspaceAircraftSnapshot () const
 Members not implenented or fully implenented by CRemoteAircraftProvider.
 
bool updateFastPositionEnabled (const misc::aviation::CCallsign &callsign, bool enableFastPositonUpdates)
 Members not implenented or fully implenented by CRemoteAircraftProvider.
 
- Public Member Functions inherited from swift::misc::simulation::CRemoteAircraftProvider
 CRemoteAircraftProvider (QObject *parent)
 Constructor.
 
virtual CSimulatedAircraftList getAircraftInRange () const
 All remote aircraft. More...
 
virtual aviation::CCallsignSet getAircraftInRangeCallsigns () const
 Unique callsigns for aircraft in range. More...
 
virtual CSimulatedAircraft getAircraftInRangeForCallsign (const aviation::CCallsign &callsign) const
 Aircraft for callsign. More...
 
virtual CAircraftModel getAircraftInRangeModelForCallsign (const aviation::CCallsign &callsign) const
 Aircraft model for callsign. More...
 
virtual int getAircraftInRangeCount () const
 Count remote aircraft. More...
 
virtual bool isAircraftInRange (const aviation::CCallsign &callsign) const
 Is aircraft in range? More...
 
virtual bool isVtolAircraft (const aviation::CCallsign &callsign) const
 Is VTOL aircraft? More...
 
virtual aviation::CAircraftSituationList remoteAircraftSituations (const aviation::CCallsign &callsign) const
 Rendered aircraft situations (per callsign, time history) More...
 
virtual aviation::CAircraftSituation remoteAircraftSituation (const aviation::CCallsign &callsign, int index) const
 Rendered aircraft situations (per callsign and index) More...
 
virtual MillisecondsMinMaxMean remoteAircraftSituationsTimestampDifferenceMinMaxMean (const aviation::CCallsign &callsign) const
 Average update time. More...
 
virtual aviation::CAircraftSituationList latestRemoteAircraftSituations () const
 Latest aircraft situation for all callsigns. More...
 
virtual aviation::CAircraftSituationList latestOnGroundProviderElevations () const
 Latest aircraft situation "on ground" having a provider elevation. More...
 
virtual int remoteAircraftSituationsCount (const aviation::CCallsign &callsign) const
 Number of remote aircraft situations for callsign. More...
 
virtual aviation::CAircraftPartsList remoteAircraftParts (const aviation::CCallsign &callsign) const
 All parts (per callsign, time history) More...
 
virtual int remoteAircraftPartsCount (const aviation::CCallsign &callsign) const
 All parts (per callsign, time history) More...
 
virtual bool isRemoteAircraftSupportingParts (const aviation::CCallsign &callsign) const
 Is remote aircraft supporting parts? More...
 
virtual int getRemoteAircraftSupportingPartsCount () const
 Number of aircraft supporting parts. More...
 
virtual aviation::CCallsignSet remoteAircraftSupportingParts () const
 Remote aircraft supporting parts. More...
 
virtual aviation::CAircraftSituationChangeList remoteAircraftSituationChanges (const aviation::CCallsign &callsign) const
 Aircraft changes. More...
 
virtual int remoteAircraftSituationChangesCount (const aviation::CCallsign &callsign) const
 Aircraft changes count. More...
 
virtual bool updateAircraftEnabled (const aviation::CCallsign &callsign, bool enabledForRendering)
 Enable/disable aircraft and follow up logic like sending signals. More...
 
virtual bool setAircraftEnabledFlag (const swift::misc::aviation::CCallsign &callsign, bool enabledForRendering)
 Just set enable/disable aircraft flag, no further logic. More...
 
virtual int updateMultipleAircraftEnabled (const aviation::CCallsignSet &callsigns, bool enabledForRendering)
 Enable/disable aircraft. More...
 
virtual bool updateAircraftModel (const aviation::CCallsign &callsign, const CAircraftModel &model, const CIdentifier &originator)
 Change model. More...
 
virtual bool updateAircraftNetworkModel (const aviation::CCallsign &callsign, const CAircraftModel &model, const CIdentifier &originator)
 Change network model. More...
 
virtual bool updateAircraftRendered (const aviation::CCallsign &callsign, bool rendered)
 Set aircraft rendered. More...
 
virtual int updateMultipleAircraftRendered (const aviation::CCallsignSet &callsigns, bool rendered)
 Set aircraft rendered. More...
 
virtual int updateAircraftGroundElevation (const aviation::CCallsign &callsign, const geo::CElevationPlane &elevation, aviation::CAircraftSituation::GndElevationInfo info, bool *setForOnGroundPosition)
 Update the ground elevation. More...
 
virtual bool updateCG (const aviation::CCallsign &callsign, const physical_quantities::CLength &cg)
 Update the CG. More...
 
virtual bool updateCGAndModelString (const aviation::CCallsign &callsign, const physical_quantities::CLength &cg, const QString &modelString)
 Update the CG and model string. More...
 
virtual aviation::CCallsignSet updateCGForModel (const QString &modelString, const physical_quantities::CLength &cg)
 Update the CG for this model string. More...
 
virtual physical_quantities::CLength getCGFromDB (const aviation::CCallsign &callsign) const
 CG values from DB. More...
 
virtual physical_quantities::CLength getCGFromDB (const QString &modelString) const
 CG values from DB. More...
 
virtual void rememberCGFromDB (const physical_quantities::CLength &cgFromDB, const aviation::CCallsign &callsign)
 CG values from DB. More...
 
virtual void rememberCGFromDB (const physical_quantities::CLength &cgFromDB, const QString &modelString)
 CG values from DB. More...
 
virtual void updateMarkAllAsNotRendered ()
 Mark all as not rendered. More...
 
virtual CStatusMessageList getAircraftPartsHistory (const aviation::CCallsign &callsign) const
 Get aircraft parts history. More...
 
virtual bool isAircraftPartsHistoryEnabled () const
 Is storing aircraft parts history enabled? More...
 
virtual void enableAircraftPartsHistory (bool enabled)
 Enable storing of aircraft parts history. More...
 
virtual int aircraftSituationsAdded () const
 Number of situations added. More...
 
virtual int aircraftPartsAdded () const
 Number of parts added. More...
 
virtual qint64 situationsLastModified (const aviation::CCallsign &callsign) const
 When last modified. More...
 
virtual qint64 partsLastModified (const aviation::CCallsign &callsign) const
 When last modified. More...
 
virtual geo::CElevationPlane averageElevationOfNonMovingAircraft (const aviation::CAircraftSituation &reference, const physical_quantities::CLength &range, int minValues=1, int sufficientValues=2) const
 Average elevation of aircraft in given range, which are NOT moving. More...
 
virtual QList< QMetaObject::Connection > connectRemoteAircraftProviderSignals (QObject *receiver, std::function< void(const aviation::CAircraftSituation &)> addedSituationSlot, std::function< void(const aviation::CCallsign &, const aviation::CAircraftParts &)> addedPartsSlot, std::function< void(const aviation::CCallsign &)> removedAircraftSlot, std::function< void(const CAirspaceAircraftSnapshot &)> aircraftSnapshotSlot)
 Connect signals to slot receiver. As the interface is no QObject, slots can not be connected directly. In order to disconnect a list of connections is provided, which have to be disconnected manually. More...
 
virtual void enableReverseLookupMessages (ReverseLookupLogging enable)
 Enable reverse lookup logging. More...
 
virtual ReverseLookupLogging isReverseLookupMessagesEnabled () const
 Enabled reverse lookup logging? More...
 
virtual swift::misc::CStatusMessageList getReverseLookupMessages (const swift::misc::aviation::CCallsign &callsign) const
 Get reverse lookup meesages. More...
 
void clear ()
 Clear all data.
 
bool hasTestAltitudeOffset (const aviation::CCallsign &callsign) const
 Has test offset value?
 
bool hasTestAltitudeOffsetGlobalValue () const
 Has test offset value?
 
bool testAddAltitudeOffset (const aviation::CCallsign &callsign, const physical_quantities::CLength &offset)
 Offset for callsign.
 
void addReverseLookupMessages (const aviation::CCallsign &callsign, const CStatusMessageList &messages)
 Reverse lookup messages. More...
 
void addReverseLookupMessage (const aviation::CCallsign &callsign, const CStatusMessage &message)
 Reverse lookup messages. More...
 
void addReverseLookupMessage (const aviation::CCallsign &callsign, const QString &message, CStatusMessage::StatusSeverity severity=CStatusMessage::SeverityInfo)
 Reverse lookup messages. More...
 
- Public Member Functions inherited from swift::misc::simulation::IRemoteAircraftProvider
virtual ~IRemoteAircraftProvider ()
 Destructor.
 
 IRemoteAircraftProvider (const IRemoteAircraftProvider &)=delete
 Copy constructor.
 
IRemoteAircraftProvideroperator= (const IRemoteAircraftProvider &)=delete
 Copy assignment operator.
 
aviation::CAircraftParts getLatestAircraftParts (const aviation::CCallsign &callsign) const
 Get the latest aircraft parts (if any, otherwise default) More...
 
- Public Member Functions inherited from swift::misc::IProvider
virtual ~IProvider ()
 Dtor.
 
 IProvider (const IProvider &)=delete
 Copy constructor.
 
IProvideroperator= (const IProvider &)=delete
 Copy assignment operator.
 
- Public Member Functions inherited from swift::misc::CIdentifiable
const CIdentifieridentifier () const
 Get identifier.
 
void setIdentifier (const CIdentifier &identifier)
 Set identifier, allows to set an external identifier.
 
bool isMyIdentifier (const CIdentifier &otherIdentifier) const
 My identifier?
 
- Public Member Functions inherited from swift::misc::network::CClientProvider
virtual CClientList getClients () const
 clientprovider
 
virtual void setClients (const CClientList &clients)
 Set other clients. More...
 
virtual void clearClients ()
 Set other clients. More...
 
virtual CClientList getClientsForCallsigns (const aviation::CCallsignSet &callsigns) const
 Returns a list of other clients corresponding to the given callsigns. More...
 
virtual CClient getClientOrDefaultForCallsign (const aviation::CCallsign &callsign) const
 Other client for the given callsigns. More...
 
virtual bool hasClientInfo (const aviation::CCallsign &callsign) const
 Client info for given callsign? More...
 
virtual bool addNewClient (const CClient &client)
 Add a new client, if existing nothing will be added. More...
 
virtual bool setOtherClient (const swift::misc::network::CClient &client)
 Set client for its callsign. More...
 
virtual int updateOrAddClient (const aviation::CCallsign &callsign, const CPropertyIndexVariantMap &vm, bool skipEqualValues=true)
 Update or add a client. More...
 
virtual int removeClient (const aviation::CCallsign &callsign)
 Remove client. More...
 
virtual bool autoAdjustCientGndCapability (const aviation::CAircraftSituation &situation)
 Adjust gnd.flag capability from situation. More...
 
virtual bool addClientGndCapability (const aviation::CCallsign &callsign)
 Add gnd.flag capability. More...
 
virtual bool setClientGndCapability (const aviation::CCallsign &callsign, bool supportGndFlag)
 Set gnd.flag capability. More...
 
virtual void markAsSwiftClient (const aviation::CCallsign &callsign)
 Mark as other swift client. More...
 
- Public Member Functions inherited from swift::misc::simulation::COwnAircraftAware
void setOwnAircraftProvider (IOwnAircraftProvider *provider)
 Set the provider.
 
CSimulatedAircraft getOwnAircraft () const
 Own aircraft. More...
 
aviation::CCallsign getOwnCallsign () const
 Own aircraft's callsign. More...
 
aviation::CComSystem getOwnComSystem (aviation::CComSystem::ComUnit unit) const
 Own aircraft COM unit. More...
 
aviation::CTransponder getOwnTransponder () const
 Own aircraft XPDR. More...
 
swift::misc::geo::CCoordinateGeodetic getOwnAircraftPosition () const
 Own aircraft's position. More...
 
aviation::CAircraftSituation getOwnAircraftSituation () const
 Own aircraft's position. More...
 
aviation::CAircraftParts getOwnAircraftParts () const
 Own aircraft's parts. More...
 
swift::misc::simulation::CAircraftModel getOwnAircraftModel () const
 Own aircraft model. More...
 
swift::misc::physical_quantities::CLength getDistanceToOwnAircraft (const swift::misc::geo::ICoordinateGeodetic &position) const
 Distance to own aircraft. More...
 
bool updateCockpit (const swift::misc::simulation::CSimulatedAircraft &aircraft, const swift::misc::CIdentifier &originator)
 
bool updateCockpit (const aviation::CComSystem &com1, const aviation::CComSystem &com2, const aviation::CTransponder &transponder, const swift::misc::CIdentifier &originator)
 
bool updateActiveComFrequency (const swift::misc::physical_quantities::CFrequency &frequency, aviation::CComSystem::ComUnit comUnit, const swift::misc::CIdentifier &originator)
 Update cockpit, but only send signals when applicable. More...
 
bool updateSelcal (const aviation::CSelcal &selcal, const swift::misc::CIdentifier &originator)
 Update cockpit, but only send signals when applicable. More...
 
bool updateOwnCallsign (const aviation::CCallsign &callsign)
 Update aircraft's callsign. More...
 
bool updateOwnIcaoCodes (const aviation::CAircraftIcaoCode &aircraftIcaoData, const aviation::CAirlineIcaoCode &airlineIcaoCode)
 Update ICAO data. More...
 
bool updateOwnModel (const swift::misc::simulation::CAircraftModel &model)
 Update model. More...
 
bool updateOwnSituation (const aviation::CAircraftSituation &situation)
 Update own situation. More...
 
bool updateOwnParts (const aviation::CAircraftParts &parts)
 Update own parts. More...
 
bool updateOwnCG (const physical_quantities::CLength &cg)
 Update own aircraft's CG (aka vertical offset) More...
 
- Public Member Functions inherited from swift::misc::simulation::CSimulationEnvironmentAware
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...
 

Static Public Member Functions

static const QStringList & getLogCategories ()
 Log categories.
 
static void registerHelp ()
 Register help.
 
static const QString & enumFlagToString (MatchingReadinessFlag r)
 As string.
 
static QString enumToString (MatchingReadiness r)
 As string.
 
- Static Public Member Functions inherited from swift::misc::simulation::CRemoteAircraftProvider
static const QStringList & getLogCategories ()
 Log categories.
 
- Static Public Member Functions inherited from swift::misc::simulation::IRemoteAircraftProvider
static void removeOutdatedParts (aviation::CAircraftPartsList &partsList)
 Remove outdated aircraft parts, but never the most recent one.
 
static const aviation::CCallsigntestAltitudeOffsetCallsign ()
 Wildcard callsign.
 

Private Member Functions

virtual swift::misc::aviation::CAircraftSituation storeAircraftSituation (const swift::misc::aviation::CAircraftSituation &situation, bool allowTestOffset=true)
 Store an aircraft situation under consideration of gnd.flags/CG and elevation. More...
 

Additional Inherited Members

- Static Public Attributes inherited from swift::misc::simulation::IRemoteAircraftProvider
static constexpr int MaxSituationsPerCallsign = 50
 How many situations we keep per callsign.
 
static constexpr int MaxPartsPerCallsign = 50
 How many parts we keep per callsign.
 
static constexpr int MaxPartsAgePerCallsignSecs = 60
 How many seconds to keep parts for interpolation.
 
- Protected Member Functions inherited from swift::misc::simulation::CRemoteAircraftProvider
bool removeAircraft (const aviation::CCallsign &callsign)
 Remove all aircraft in range. More...
 
void removeAllAircraft ()
 Remove all aircraft in range. More...
 
void removeReverseLookupMessages (const aviation::CCallsign &callsign)
 Remove the lookup messages. More...
 
bool addNewAircraftInRange (const CSimulatedAircraft &aircraft)
 Add new aircraft, ignored if aircraft already exists. More...
 
CSimulatedAircraft addOrUpdateAircraftInRange (const aviation::CCallsign &callsign, const QString &aircraftIcao, const QString &airlineIcao, const QString &livery, const QString &modelString, CAircraftModel::ModelType modelType, CStatusMessageList *log=nullptr)
 Init a new aircraft and add it or update model of existing aircraft. More...
 
int updateAircraftInRange (const aviation::CCallsign &callsign, const CPropertyIndexVariantMap &vm, bool skipEqualValues=true)
 Update aircraft. More...
 
bool updateAircraftInRangeDistanceBearing (const aviation::CCallsign &callsign, const aviation::CAircraftSituation &situation, const physical_quantities::CLength &distance, const physical_quantities::CAngle &bearing)
 Update aircraft bearing, distance and situation. More...
 
bool guessOnGroundAndUpdateModelCG (aviation::CAircraftSituation &situation, const aviation::CAircraftSituationChange &change, const CAircraftModel &aircraftModel)
 Guess situation "on ground" and update model's CG if applicable. More...
 
aviation::CAircraftSituation addTestAltitudeOffsetToSituation (const aviation::CAircraftSituation &situation) const
 Add an offset for testing.
 
ReverseLookupLogging whatToReverseLog () const
 What to log? More...
 
void storeAircraftParts (const aviation::CCallsign &callsign, const aviation::CAircraftParts &parts, bool removeOutdated)
 Store an aircraft part. More...
 
void storeAircraftParts (const aviation::CCallsign &callsign, const QJsonObject &jsonObject, qint64 currentOffsetMs)
 
- Protected Member Functions inherited from swift::misc::simulation::IRemoteAircraftProvider
 IRemoteAircraftProvider ()
 Constructor.
 
- Protected Member Functions inherited from swift::misc::IProvider
 IProvider ()
 Constructor.
 
- Protected Member Functions inherited from swift::misc::CIdentifiable
 CIdentifiable (const QString &objectName)
 Use literal based object name.
 
 CIdentifiable (QObject *nameProvider)
 Connect with QObject providing the name.
 
 CIdentifiable ()
 Construct without a name.
 
 ~CIdentifiable ()
 Destructor.
 
 CIdentifiable (const CIdentifiable &)=default
 Copy constructor.
 
CIdentifiableoperator= (const CIdentifiable &)=default
 Copy assignment operator.
 
- Protected Member Functions inherited from swift::misc::simulation::COwnAircraftAware
 COwnAircraftAware (IOwnAircraftProvider *ownAircraftProvider)
 Constructor.
 
- Protected Member Functions inherited from swift::misc::IProviderAware< IOwnAircraftProvider >
 IProviderAware (IOwnAircraftProvider *provider=nullptr)
 Ctor.
 
virtual ~IProviderAware ()
 Dtor.
 
bool hasProvider () const
 Has provider?
 
IOwnAircraftProvider * getProvider () const
 Provider.
 
void setProvider (IOwnAircraftProvider *provider)
 Set the provider. More...
 
IOwnAircraftProvider * provider ()
 Provider.
 
const IOwnAircraftProvider * provider () const
 Const provider.
 
- Protected Member Functions inherited from swift::misc::simulation::CSimulationEnvironmentAware
 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.
 
- Static Protected Member Functions inherited from swift::misc::simulation::CRemoteAircraftProvider
static int setGroundElevationCheckedAndGuessGround (aviation::CAircraftSituationList &situations, const geo::CElevationPlane &elevationPlane, aviation::CAircraftSituation::GndElevationInfo info, const simulation::CAircraftModel &model, aviation::CAircraftSituationChange *changeOut, bool *setForOnGroundPosition)
 Set ground elevation from elevation plane and guess ground. More...
 

Detailed Description

Keeps track of other entities in the airspace: aircraft, ATC stations, etc. Central instance of data for.

See also
IRemoteAircraftProvider.

Definition at line 56 of file airspacemonitor.h.

Member Enumeration Documentation

◆ MatchingReadinessFlag

Matching readiness.

Enumerator
NotReady 

no data at all

ReceivedIcaoCodes 

ICAO codes received.

ReceivedFsInnPacket 

FsInn pcket received.

ReadyForMatchingSent 

Read for matching sending.

RecursiveCall 

recursion

Verified 

verified already

Definition at line 145 of file airspacemonitor.h.

Member Function Documentation

◆ enableAnalyzer()

bool swift::core::CAirspaceMonitor::enableAnalyzer ( bool  enable)

Enabled (running)?

Remarks
This function is thread safe.

Definition at line 316 of file airspacemonitor.cpp.

◆ loadFlightPlanFromNetwork()

CFlightPlan swift::core::CAirspaceMonitor::loadFlightPlanFromNetwork ( const misc::aviation::CCallsign callsign)

Returns the loaded flight plan for the given callsign.

Remarks
only use this if a network loaded flight plan is directly needed
pseudo synchronous, call the async functions and waits for result

Definition at line 155 of file airspacemonitor.cpp.

◆ storeAircraftSituation()

CAircraftSituation swift::core::CAirspaceMonitor::storeAircraftSituation ( const swift::misc::aviation::CAircraftSituation situation,
bool  allowTestOffset = true 
)
privatevirtual

Store an aircraft situation under consideration of gnd.flags/CG and elevation.

Remarks
This function is thread safe.
sets gnd.flag from parts if parts are available
uses gnd.elevation if found

Reimplemented from swift::misc::simulation::CRemoteAircraftProvider.

Definition at line 1537 of file airspacemonitor.cpp.

◆ tryToGetFlightPlanRemarks()

CFlightPlanRemarks swift::core::CAirspaceMonitor::tryToGetFlightPlanRemarks ( const misc::aviation::CCallsign callsign) const

Try to get flight plan remarks.

Remarks
returns a value only if the flight plan is already cached or can be obtained from VATSIM reader
This function is thread safe.

Definition at line 187 of file airspacemonitor.cpp.


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