swift
|
Matcher for all models. More...
Signals | |
void | setupChanged () |
Setup changed. | |
Public Member Functions | |
CAircraftMatcher (const swift::misc::simulation::CAircraftMatcherSetup &setup, QObject *parent=nullptr) | |
Constructor. | |
CAircraftMatcher (QObject *parent=nullptr) | |
Constructor. | |
virtual | ~CAircraftMatcher () |
Destructor. More... | |
CAircraftMatcher (const CAircraftMatcher &)=delete | |
Copy constructor. | |
CAircraftMatcher & | operator= (const CAircraftMatcher &)=delete |
Copy assignment operator. | |
bool | setSetup (const swift::misc::simulation::CAircraftMatcherSetup &setup) |
Set the setup. | |
swift::misc::simulation::CAircraftMatcherSetup | getSetup () const |
Get the setup. | |
swift::misc::simulation::CAircraftModel | getClosestMatch (const swift::misc::simulation::CSimulatedAircraft &remoteAircraft, swift::misc::simulation::MatchingLog whatToLog, swift::misc::CStatusMessageList *log, bool useMatchingScript) const |
Get the closest matching aircraft model from set. Result depends on setup. More... | |
virtual swift::misc::simulation::CAircraftModelList | getModelSet () const |
Get the model set models. More... | |
virtual const swift::misc::simulation::CAircraftModelList & | getModelSetRef () const |
Model set as reference. | |
virtual int | getModelSetCount () const |
Model set count. | |
bool | hasModels () const |
Models. | |
int | setModelSet (const swift::misc::simulation::CAircraftModelList &models, const swift::misc::simulation::CSimulatorInfo &simulator, bool forced) |
Set the models we want to use. More... | |
void | disableModelsForMatching (const swift::misc::simulation::CAircraftModelList &removedModels, bool incremental) |
Remove a model for matching. More... | |
swift::misc::simulation::CAircraftModelList | getDisabledModelsForMatching () const |
The disabled models for matching. | |
void | restoreDisabledModels () |
Restore the models removed with CAircraftMatcher::disableModelForMatching. | |
const swift::misc::simulation::CAircraftModel & | getDefaultModel () const |
Default model. | |
void | setDefaultModel (const swift::misc::simulation::CAircraftModel &defaultModel) |
Set default model, can be set by driver specific for simulator. | |
const swift::misc::simulation::CMatchingStatistics & | getCurrentStatistics () const |
The current statistics. | |
void | clearMatchingStatistics () |
Clear the statistics. | |
void | evaluateStatisticsEntry (const QString &sessionId, const swift::misc::aviation::CCallsign &callsign, const QString &aircraftIcao, const QString &airlineIcao, const QString &livery) |
Evaluate if a statistics entry makes sense and add it. | |
void | addingRemoteModelFailed (const swift::misc::simulation::CSimulatedAircraft &remoteAircraft) |
Adding a model failed. | |
![]() | |
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 |
![]() | |
IAircraftModelSetProvider ()=default | |
Constructor. | |
![]() | |
virtual | ~IProvider () |
Dtor. | |
IProvider (const IProvider &)=delete | |
Copy constructor. | |
IProvider & | operator= (const IProvider &)=delete |
Copy assignment operator. | |
virtual QObject * | asQObject () |
Return as QObject. | |
Additional Inherited Members | |
![]() | |
typedef | QObjectList |
![]() | |
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 |
![]() | |
IProvider () | |
Constructor. | |
![]() | |
objectName | |
Matcher for all models.
Reads the model set (ie the models the user wants to use). Also Allows to reverse lookup a model (from network to DB data).
Definition at line 40 of file aircraftmatcher.h.
|
virtual |
Destructor.
Definition at line 55 of file aircraftmatcher.cpp.
|
static |
Turn callsign into airline.
Definition at line 1603 of file aircraftmatcher.cpp.
void swift::core::CAircraftMatcher::disableModelsForMatching | ( | const swift::misc::simulation::CAircraftModelList & | removedModels, |
bool | incremental | ||
) |
Remove a model for matching.
Definition at line 1682 of file aircraftmatcher.cpp.
|
static |
Return an valid airline ICAO code.
Definition at line 65 of file aircraftmatcher.cpp.
|
static |
Return an valid airline ICAO code from a given model list.
Definition at line 151 of file aircraftmatcher.cpp.
|
static |
Return an valid airline ICAO code from a given model list and use webservices if NOT found.
Definition at line 303 of file aircraftmatcher.cpp.
CAircraftModel swift::core::CAircraftMatcher::getClosestMatch | ( | const swift::misc::simulation::CSimulatedAircraft & | remoteAircraft, |
swift::misc::simulation::MatchingLog | whatToLog, | ||
swift::misc::CStatusMessageList * | log, | ||
bool | useMatchingScript | ||
) | const |
Get the closest matching aircraft model from set. Result depends on setup.
Definition at line 322 of file aircraftmatcher.cpp.
|
inlinevirtual |
Get the model set models.
Implements swift::misc::simulation::IAircraftModelSetProvider.
Definition at line 271 of file aircraftmatcher.h.
|
static |
Is this aircraft designator known?
Definition at line 1534 of file aircraftmatcher.cpp.
|
static |
Is this aircraft designator known?
Definition at line 1552 of file aircraftmatcher.cpp.
|
static |
Run the matching script.
Definition at line 666 of file aircraftmatcher.cpp.
|
static |
Run the matching stage lookup script.
Definition at line 652 of file aircraftmatcher.cpp.
|
static |
Try to find the DB corresponding ICAO code.
Definition at line 1273 of file aircraftmatcher.cpp.
|
static |
Lookup of ICAO by id.
Definition at line 1377 of file aircraftmatcher.cpp.
|
static |
Try to find the DB corresponding ICAO code.
Definition at line 1398 of file aircraftmatcher.cpp.
|
static |
Lookup of airline name.
Definition at line 1500 of file aircraftmatcher.cpp.
|
static |
Lookup by ids.
Definition at line 1482 of file aircraftmatcher.cpp.
|
static |
Lookup of livery by id.
Definition at line 1462 of file aircraftmatcher.cpp.
|
static |
Try to find the corresponding data in DB and get best information for given data.
Definition at line 620 of file aircraftmatcher.cpp.
|
static |
Try to find the corresponding data in DB and get best information for following matching.
Definition at line 872 of file aircraftmatcher.cpp.
|
static |
Try to find model by id.
Definition at line 1252 of file aircraftmatcher.cpp.
|
static |
Try to find the corresponding data in DB and get best information for following matching.
Definition at line 1124 of file aircraftmatcher.cpp.
|
static |
Try to find model by model string.
Definition at line 1147 of file aircraftmatcher.cpp.
|
static |
Try to find model by model string in set.
Definition at line 1188 of file aircraftmatcher.cpp.
|
static |
Run the network reverse lookup script.
Definition at line 639 of file aircraftmatcher.cpp.
|
static |
Lookup of standard livery.
Definition at line 1426 of file aircraftmatcher.cpp.
|
static |
Lookup of telephony designator.
Definition at line 1518 of file aircraftmatcher.cpp.
|
static |
Search among the airline aircraft.
Definition at line 1563 of file aircraftmatcher.cpp.
int swift::core::CAircraftMatcher::setModelSet | ( | const swift::misc::simulation::CAircraftModelList & | models, |
const swift::misc::simulation::CSimulatorInfo & | simulator, | ||
bool | forced | ||
) |
Set the models we want to use.
Definition at line 1624 of file aircraftmatcher.cpp.