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. | |
![]() | |
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 | |
![]() | |
IProvider () | |
Constructor. | |
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 1601 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 1680 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 1532 of file aircraftmatcher.cpp.
|
static |
Is this aircraft designator known?
Definition at line 1550 of file aircraftmatcher.cpp.
|
static |
Run the matching script.
Definition at line 664 of file aircraftmatcher.cpp.
|
static |
Run the matching stage lookup script.
Definition at line 650 of file aircraftmatcher.cpp.
|
static |
Try to find the DB corresponding ICAO code.
Definition at line 1271 of file aircraftmatcher.cpp.
|
static |
Lookup of ICAO by id.
Definition at line 1375 of file aircraftmatcher.cpp.
|
static |
Try to find the DB corresponding ICAO code.
Definition at line 1396 of file aircraftmatcher.cpp.
|
static |
Lookup of airline name.
Definition at line 1498 of file aircraftmatcher.cpp.
|
static |
Lookup by ids.
Definition at line 1480 of file aircraftmatcher.cpp.
|
static |
Lookup of livery by id.
Definition at line 1460 of file aircraftmatcher.cpp.
|
static |
Try to find the corresponding data in DB and get best information for given data.
Definition at line 618 of file aircraftmatcher.cpp.
|
static |
Try to find the corresponding data in DB and get best information for following matching.
Definition at line 870 of file aircraftmatcher.cpp.
|
static |
Try to find model by id.
Definition at line 1250 of file aircraftmatcher.cpp.
|
static |
Try to find the corresponding data in DB and get best information for following matching.
Definition at line 1122 of file aircraftmatcher.cpp.
|
static |
Try to find model by model string.
Definition at line 1145 of file aircraftmatcher.cpp.
|
static |
Try to find model by model string in set.
Definition at line 1186 of file aircraftmatcher.cpp.
|
static |
Run the network reverse lookup script.
Definition at line 637 of file aircraftmatcher.cpp.
|
static |
Lookup of standard livery.
Definition at line 1424 of file aircraftmatcher.cpp.
|
static |
Lookup of telephony designator.
Definition at line 1516 of file aircraftmatcher.cpp.
|
static |
Search among the airline aircraft.
Definition at line 1561 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 1622 of file aircraftmatcher.cpp.