|
swift
|
Dummy implementation for testing purpose. More...
Public Member Functions | |
| CRemoteAircraftProviderDummy (QObject *parent=nullptr) | |
| Constructor. | |
| void | insertNewSituation (const aviation::CAircraftSituation &situation) |
| For testing, add new situation and fire signals. | |
| void | insertNewSituations (const aviation::CAircraftSituationList &situations) |
| For testing, add new situation and fire signals. | |
| void | insertNewAircraftParts (const aviation::CCallsign &callsign, const aviation::CAircraftParts &parts, bool removeOutdatedParts) |
| For testing, add new situation and fire signals. | |
| void | insertNewAircraftParts (const aviation::CCallsign &callsign, const aviation::CAircraftPartsList &partsList, bool removeOutdatedParts) |
| For testing, add new situation and fire signals. | |
| QObject * | asQObject () |
| Members not implenented or fully implenented by CRemoteAircraftProvider. | |
| CAirspaceAircraftSnapshot | getLatestAirspaceAircraftSnapshot () const |
| Members not implenented or fully implenented by CRemoteAircraftProvider. | |
Public Member Functions inherited from swift::misc::simulation::CRemoteAircraftProvider | |
| CRemoteAircraftProvider (QObject *parent) | |
| Constructor. | |
| CSimulatedAircraftList | getAircraftInRange () const |
| All 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... | |
| int | getAircraftInRangeCount () const |
| Count 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... | |
| 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... | |
| MillisecondsMinMaxMean | remoteAircraftSituationsTimestampDifferenceMinMaxMean (const aviation::CCallsign &callsign) const |
| Average update time. 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... | |
| bool | isRemoteAircraftSupportingParts (const aviation::CCallsign &callsign) const |
| Is remote aircraft supporting parts? More... | |
| int | getRemoteAircraftSupportingPartsCount () const |
| Number of aircraft supporting parts. More... | |
| aviation::CCallsignSet | remoteAircraftSupportingParts () const |
| Remote aircraft supporting parts. More... | |
| aviation::CAircraftSituationChangeList | remoteAircraftSituationChanges (const aviation::CCallsign &callsign) const |
| Aircraft changes. More... | |
| int | remoteAircraftSituationChangesCount (const aviation::CCallsign &callsign) const |
| Aircraft changes count. More... | |
| bool | updateAircraftEnabled (const aviation::CCallsign &callsign, bool enabledForRendering) |
| Enable/disable aircraft and follow up logic like sending signals. More... | |
| bool | setAircraftEnabledFlag (const swift::misc::aviation::CCallsign &callsign, bool enabledForRendering) |
| Just set enable/disable aircraft flag, no further logic. More... | |
| int | 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 | updateFastPositionEnabled (const aviation::CCallsign &callsign, bool enableFastPositonUpdates) |
| Change fast position updates. More... | |
| bool | updateAircraftRendered (const aviation::CCallsign &callsign, bool rendered) |
| Set aircraft rendered. More... | |
| int | 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 *setForOnGroundPosition) |
| Update the ground elevation. More... | |
| bool | updateCG (const aviation::CCallsign &callsign, const physical_quantities::CLength &cg) |
| Update the CG. More... | |
| bool | updateCGAndModelString (const aviation::CCallsign &callsign, const physical_quantities::CLength &cg, const QString &modelString) |
| Update the CG and model string. More... | |
| aviation::CCallsignSet | updateCGForModel (const QString &modelString, const physical_quantities::CLength &cg) |
| Update the CG for this model string. More... | |
| physical_quantities::CLength | getCGFromDB (const aviation::CCallsign &callsign) const |
| CG values from DB. More... | |
| physical_quantities::CLength | getCGFromDB (const QString &modelString) const |
| CG values from DB. More... | |
| void | rememberCGFromDB (const physical_quantities::CLength &cgFromDB, const aviation::CCallsign &callsign) |
| CG values from DB. More... | |
| void | rememberCGFromDB (const physical_quantities::CLength &cgFromDB, const QString &modelString) |
| CG values from DB. More... | |
| void | updateMarkAllAsNotRendered () |
| Mark all as not rendered. More... | |
| CStatusMessageList | getAircraftPartsHistory (const aviation::CCallsign &callsign) const |
| Get aircraft parts history. More... | |
| bool | isAircraftPartsHistoryEnabled () const |
| Is storing aircraft parts history enabled? More... | |
| void | enableAircraftPartsHistory (bool enabled) |
| Enable storing of aircraft parts history. 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, int sufficientValues=2) const |
| Average elevation of aircraft in given range, which are NOT moving. More... | |
| 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... | |
| void | enableReverseLookupMessages (ReverseLookupLogging enable) |
| Enable reverse lookup logging. More... | |
| ReverseLookupLogging | isReverseLookupMessagesEnabled () const |
| Enabled reverse lookup logging? More... | |
| 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 QObject | |
| QBindable< QString > | bindableObjectName () |
| QObject (QObject *parent) | |
| QT_NO_CONTEXTLESS_CONNECT QT_NO_CONTEXTLESS_CONNECT | |
| QT_NO_NARROWING_CONVERSIONS_IN_CONNECT QT_NO_NARROWING_CONVERSIONS_IN_CONNECT | |
| Q_CLASSINFO (Name, Value) | |
| Q_EMIT Q_EMIT | |
| Q_ENUM (...) | |
| Q_ENUMS (...) | |
| Q_ENUM_NS (...) | |
| Q_FLAG (...) | |
| Q_FLAGS (...) | |
| Q_FLAG_NS (...) | |
| Q_GADGET Q_GADGET | |
| Q_GADGET_EXPORT (EXPORT_MACRO) | |
| Q_INTERFACES (...) | |
| Q_INVOKABLE Q_INVOKABLE | |
| Q_MOC_INCLUDE Q_MOC_INCLUDE | |
| Q_NAMESPACE Q_NAMESPACE | |
| Q_NAMESPACE_EXPORT (EXPORT_MACRO) | |
| Q_OBJECT Q_OBJECT | |
| Q_PROPERTY (...) | |
| Q_REVISION Q_REVISION | |
| Q_SET_OBJECT_NAME (Object) | |
| Q_SIGNAL Q_SIGNAL | |
| Q_SIGNALS Q_SIGNALS | |
| Q_SLOT Q_SLOT | |
| Q_SLOTS Q_SLOTS | |
| T | qobject_cast (QObject *object) |
| T | qobject_cast (const QObject *object) |
| bool | blockSignals (bool block) |
| virtual bool | event (QEvent *e) |
| virtual bool | eventFilter (QObject *watched, QEvent *event) |
| bool | moveToThread (QThread *targetThread) |
| bool | setProperty (const char *name, QVariant &&value) |
| bool | setProperty (const char *name, const QVariant &value) |
| int | startTimer (int interval, Qt::TimerType timerType) |
| int | startTimer (std::chrono::nanoseconds interval, Qt::TimerType timerType) |
| void | deleteLater () |
| void | destroyed (QObject *obj) |
| void | installEventFilter (QObject *filterObj) |
| void | killTimer (Qt::TimerId id) |
| void | killTimer (int id) |
| void | objectNameChanged (const QString &objectName) |
| void | removeEventFilter (QObject *obj) |
| void | setObjectName (QAnyStringView name) |
| void | setObjectName (const QString &name) |
| void | setParent (QObject *parent) |
| QList< QByteArray > | dynamicPropertyNames () const const |
| QList< T > | findChildren (QAnyStringView name, Qt::FindChildOptions options) const const |
| QList< T > | findChildren (Qt::FindChildOptions options) const const |
| QList< T > | findChildren (const QRegularExpression &re, Qt::FindChildOptions options) const const |
| QMetaObject::Connection | connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const const |
| QObject * | parent () const const |
| QString | objectName () const const |
| QThread * | thread () const const |
| QVariant | property (const char *name) const const |
| T | findChild (QAnyStringView name, Qt::FindChildOptions options) const const |
| T | findChild (Qt::FindChildOptions options) const const |
| bool | disconnect (const QObject *receiver, const char *method) const const |
| bool | disconnect (const char *signal, const QObject *receiver, const char *method) const const |
| bool | inherits (const char *className) const const |
| bool | isQuickItemType () const const |
| bool | isWidgetType () const const |
| bool | isWindowType () const const |
| bool | signalsBlocked () const const |
| virtual const QMetaObject * | metaObject () const const |
| const QObjectList & | children () const const |
| void | dumpObjectInfo () const const |
| void | dumpObjectTree () const const |
Public Member Functions inherited from swift::misc::simulation::IRemoteAircraftProvider | |
| ~IRemoteAircraftProvider ()=default | |
| Destructor. | |
| IRemoteAircraftProvider (const IRemoteAircraftProvider &)=delete | |
| Copy constructor. | |
| IRemoteAircraftProvider & | operator= (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 ()=default |
| Dtor. | |
| IProvider (const IProvider &)=delete | |
| Copy constructor. | |
| IProvider & | operator= (const IProvider &)=delete |
| Copy assignment operator. | |
Public Member Functions inherited from swift::misc::CIdentifiable | |
| const CIdentifier & | identifier () const |
| Get identifier. | |
| void | setIdentifier (const CIdentifier &identifier) |
| Set identifier, allows to set an external identifier. | |
| bool | isMyIdentifier (const CIdentifier &otherIdentifier) const |
| My identifier? | |
Static Public Member Functions | |
| static CRemoteAircraftProviderDummy * | instance () |
| Singleton. | |
Static Public Member Functions inherited from swift::misc::simulation::CRemoteAircraftProvider | |
| static const QStringList & | getLogCategories () |
| Log categories. | |
Static Public Member Functions inherited from QObject | |
| QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, Functor functor) |
| QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, const QObject *context, Functor functor, Qt::ConnectionType type) |
| QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method, Qt::ConnectionType type) |
| QMetaObject::Connection | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type) |
| QMetaObject::Connection | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type) |
| QString | tr (const char *sourceText, const char *disambiguation, int n) |
| bool | disconnect (const QMetaObject::Connection &connection) |
| bool | disconnect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method) |
| bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method) |
| bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method) |
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::CCallsign & | testAltitudeOffsetCallsign () |
| Wildcard callsign. | |
Additional Inherited Members | |
Public Types inherited from QObject | |
| enum | TimerId |
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 Attributes inherited from QObject | |
| typedef | QObjectList |
| Invalid | |
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... | |
| virtual aviation::CAircraftSituation | storeAircraftSituation (const aviation::CAircraftSituation &situation, bool allowTestAltitudeOffset=true) |
| Store an aircraft 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 QObject | |
| virtual void | childEvent (QChildEvent *event) |
| virtual void | connectNotify (const QMetaMethod &signal) |
| virtual void | customEvent (QEvent *event) |
| virtual void | disconnectNotify (const QMetaMethod &signal) |
| virtual void | timerEvent (QTimerEvent *event) |
| QObject * | sender () const const |
| bool | isSignalConnected (const QMetaMethod &signal) const const |
| int | receivers (const char *signal) const const |
| int | senderSignalIndex () const const |
Protected Member Functions inherited from swift::misc::simulation::IRemoteAircraftProvider | |
| IRemoteAircraftProvider ()=default | |
| 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. | |
| CIdentifiable & | operator= (const CIdentifiable &)=default |
| Copy assignment operator. | |
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... | |
Properties inherited from QObject | |
| objectName | |
Dummy implementation for testing purpose.
Definition at line 20 of file remoteaircraftproviderdummy.h.