|
swift
|
Interface to a simulator. More...
Public Types | |
| enum | SimulatorStatusFlag { Unspecified = 0 , Disconnected = 1 << 0 , Connected = 1 << 1 , Simulating = 1 << 2 , Paused = 1 << 3 } |
| ISimulator status. More... | |
Public Types inherited from QObject | |
| enum | TimerId |
Public Types inherited from swift::misc::simulation::IInterpolationSetupProvider | |
| using | SetupsPerCallsign = QMap< aviation::CCallsign, CInterpolationAndRenderingSetupPerCallsign > |
| setups per callsign | |
Signals | |
| void | simulatorStatusChanged (swift::core::ISimulator::SimulatorStatus status) |
| Simulator combined status. | |
| void | ownAircraftModelChanged (const swift::misc::simulation::CAircraftModel &model) |
| Emitted when own aircraft model has changed. | |
| void | renderRestrictionsChanged (bool restricted, bool enabled, int maxAircraft, const swift::misc::physical_quantities::CLength &maxRenderedDistance) |
| Render restrictions have been changed. | |
| void | interpolationAndRenderingSetupChanged () |
| Interpolation or rendering setup changed. | |
| void | aircraftRenderingChanged (const swift::misc::simulation::CSimulatedAircraft &aircraft) |
| Aircraft rendering changed. | |
| void | physicallyAddingRemoteModelFailed (const swift::misc::simulation::CSimulatedAircraft &remoteAircraft, bool disabled, bool requestFailover, const swift::misc::CStatusMessage &message) |
| Adding the remote model failed. | |
| void | airspaceSnapshotHandled () |
| An airspace snapshot was handled. | |
| void | driverMessages (const swift::misc::CStatusMessageList &messages) |
| Relevant simulator messages to be explicitly displayed. | |
| void | requestedElevation (const swift::misc::aviation::CCallsign &callsign) |
| Requested elevation, call pending. | |
| void | receivedRequestedElevation (const swift::misc::geo::CElevationPlane &plane, const swift::misc::aviation::CCallsign &callsign) |
| A requested elevation has been received. | |
| void | autoPublishDataWritten (const swift::misc::simulation::CSimulatorInfo &simulator) |
| Auto publish data written for simulator. | |
| void | insufficientFrameRateDetected (bool fatal) |
| Frame rate has fallen too far below the threshold to maintain consistent sim rate. | |
Public Member Functions | |
| ~ISimulator () | |
| Destructor. | |
| virtual SimulatorStatus | getSimulatorStatus () const |
| Combined status. | |
| virtual const swift::misc::simulation::CSimulatorInternals & | getSimulatorInternals () const |
| Get the simulator current internal state. | |
| virtual bool | connectTo ()=0 |
| Connect to simulator. | |
| virtual bool | disconnectFrom () |
| Disconnect from simulator. | |
| virtual bool | logicallyAddRemoteAircraft (const swift::misc::simulation::CSimulatedAircraft &remoteAircraft) |
| Logically add a new aircraft. Depending on max. aircraft, enabled status etc. it will physically added to the simulator. More... | |
| virtual bool | logicallyRemoveRemoteAircraft (const swift::misc::aviation::CCallsign &callsign) |
| Logically remove remote aircraft from simulator. Depending on max. aircraft, enabled status etc. it will physically added to the simulator. | |
| virtual bool | logicallyReAddRemoteAircraft (const swift::misc::aviation::CCallsign &callsign) |
| Removes and adds again the aircraft. More... | |
| int | removeAllRemoteAircraft () |
| Public version to remove all aircraft. More... | |
| virtual bool | changeRemoteAircraftModel (const swift::misc::simulation::CSimulatedAircraft &aircraft) |
| Change remote aircraft per property. | |
| virtual bool | changeRemoteAircraftEnabled (const swift::misc::simulation::CSimulatedAircraft &aircraft) |
| Aircraft got enabled / disabled. | |
| virtual bool | updateOwnSimulatorCockpit (const swift::misc::simulation::CSimulatedAircraft &aircraft, const swift::misc::CIdentifier &originator)=0 |
| Update own aircraft cockpit (usually from context) | |
| virtual bool | updateOwnSimulatorSelcal (const swift::misc::aviation::CSelcal &selcal, const swift::misc::CIdentifier &originator)=0 |
| Update own aircraft cockpit (usually from context) | |
| virtual void | displayStatusMessage (const swift::misc::CStatusMessage &message) const =0 |
| Display a status message in the simulator. | |
| virtual void | displayTextMessage (const swift::misc::network::CTextMessage &message) const =0 |
| Display a text message. | |
| virtual bool | isPhysicallyRenderedAircraft (const swift::misc::aviation::CCallsign &callsign) const =0 |
| Is the aircraft rendered (displayed in simulator)? This shall only return true if the aircraft is really visible in the simulator. | |
| virtual swift::misc::aviation::CCallsignSet | physicallyRenderedAircraft () const =0 |
| Physically rendered (displayed in simulator) This shall only return aircraft handled in the simulator. | |
| virtual bool | followAircraft (const swift::misc::aviation::CCallsign &callsign) |
| Follow aircraft. | |
| virtual void | recalculateAllAircraft () |
| Recalculate all aircraft. | |
| virtual void | setFlightNetworkConnected (bool connected) |
| Flight network has been connected. More... | |
| bool | isFlightNetworkConnected () const |
| Is the flight network connected. | |
| swift::misc::simulation::settings::CSpecializedSimulatorSettings | getSimulatorSettings () const |
| Settings for current simulator. | |
| virtual void | unload () |
| Driver will be unloaded. | |
| virtual bool | isConnected () const =0 |
| Are we connected to the simulator? | |
| virtual bool | isPaused () const =0 |
| Simulator paused? | |
| virtual bool | isSimulating () const |
| Simulator running? | |
| void | setTestMode (bool test) |
| Set test mode (driver can skip code parts etc., driver dependent) | |
| bool | isTestMode () const |
| Test mode? (driver can skip code parts etc., driver dependent) | |
| double | getAverageFPS () const |
| Average FPS (frames per second) | |
| double | getSimTimeRatio () const |
| Ratio of simulation time to real time, due to low FPS. | |
| double | getTrackMilesShort () const |
| Number of track miles over-reported, due to low FPS. | |
| double | getMinutesLate () const |
| Number of minutes behind schedule, due to low FPS. | |
| virtual bool | testSendSituationAndParts (const swift::misc::aviation::CCallsign &callsign, const swift::misc::aviation::CAircraftSituation &situation, const swift::misc::aviation::CAircraftParts &parts)=0 |
| Send situation/parts for testing. | |
| void | setTestEnablePseudoElevation (bool enable) |
| Enable pseudo elevations (testing) | |
| void | setTestElevation (const swift::misc::aviation::CAltitude &altitude) |
| Set an elevation for testing. | |
| virtual swift::misc::CStatusMessageList | debugVerifyStateAfterAllAircraftRemoved () const |
| Debug function to check state after all aircraft have been removed. More... | |
| virtual bool | isShuttingDown () const |
| Is overall (swift) application shutting down. More... | |
| virtual bool | isShuttingDownOrDisconnected () const |
| Shutting down or disconnected? | |
| virtual bool | isShuttingDownDisconnectedOrNoAircraft () const |
| Shutting down, disconnected, or no remote aircraft. | |
| virtual bool | isShuttingDownDisconnectedOrNoAircraft (bool isProbe) const |
| Shutting down, disconnected, or no remote aircraft. | |
| bool | requestElevation (const swift::misc::geo::ICoordinateGeodetic &reference, const swift::misc::aviation::CCallsign &callsign) |
| Request elevation, there is no guarantee the requested elevation will be available in the provider. More... | |
| bool | requestElevation (const swift::misc::aviation::CAircraftSituation &situation) |
| Request elevation, there is no guarantee the requested elevation will be available in the provider. More... | |
| virtual void | callbackReceivedRequestedElevation (const swift::misc::geo::CElevationPlane &plane, const swift::misc::aviation::CCallsign &callsign, bool isWater) |
| A requested elevation has been received. More... | |
| virtual QString | getStatisticsSimulatorSpecific () const |
| Allows to print out simulator specific statistics. | |
| virtual void | resetAircraftStatistics () |
| Reset the statistics. | |
| QObject * | asQObject () |
| Return as QObject. More... | |
| bool | isEmulatedDriver () const |
| Is this the emulated driver just pretending to be P3D, FSX, or XPlane. | |
| virtual bool | parseCommandLine (const QString &commandLine, const swift::misc::CIdentifier &originator) |
| swift::misc::simulation::CInterpolationAndRenderingSetupPerCallsign | getInterpolationSetupConsolidated (const swift::misc::aviation::CCallsign &callsign, bool forceFullUpdate) const |
| Consolidate setup with other data like from swift::misc::simulation::IRemoteAircraftProvider. More... | |
| bool | setInterpolationSetupGlobal (const swift::misc::simulation::CInterpolationAndRenderingSetupGlobal &setup) |
| Set the global setup. More... | |
| virtual swift::misc::CStatusMessageList | getInterpolationMessages (const swift::misc::aviation::CCallsign &callsign) const =0 |
| Interpolation messages for callsign. | |
| const swift::misc::simulation::CAutoPublishData & | getPublishData () const |
| Get the data for auto publishing. | |
| int | getStatisticsPhysicallyAddedAircraft () const |
| Counter added aircraft. | |
| int | getStatisticsPhysicallyRemovedAircraft () const |
| Counter removed aircraft. | |
| qint64 | getStatisticsCurrentUpdateTimeMs () const |
| Current update time in ms. | |
| double | getStatisticsAverageUpdateTimeMs () const |
| Average update time in ms. | |
| qint64 | getStatisticsTotalUpdateTimeMs () const |
| Total update time in ms. | |
| qint64 | getStatisticsMaxUpdateTimeMs () const |
| Max.update time in ms. | |
| int | getStatisticsUpdateRuns () const |
| Number of update runs. | |
| qint64 | getStatisticsAircraftUpdatedRequestedDeltaMs () const |
| Time between two update requests. | |
| swift::misc::aviation::CAircraftSituationList | getLoopbackSituations (const swift::misc::aviation::CCallsign &callsign) const |
| The traced loopback situations. | |
| const swift::misc::simulation::CInterpolationLogger & | interpolationLogger () const |
| Access to logger. | |
| QString | latestLoggedDataFormatted (const swift::misc::aviation::CCallsign &cs) const |
| The latest logged data formatted. More... | |
| QString | updateAircraftLimitationInfo () const |
| Info about update aircraft limitations. | |
| void | resetLastSentValues () |
| Reset the last sent values. | |
| void | resetLastSentValues (const swift::misc::aviation::CCallsign &callsign) |
| Reset the last sent values per callsign. | |
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::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) |
| Update cockpit, but only send signals when applicable. More... | |
| bool | updateCockpit (const aviation::CComSystem &com1, const aviation::CComSystem &com2, const aviation::CTransponder &transponder, const swift::misc::CIdentifier &originator) |
| Update cockpit, but only send signals when applicable. More... | |
| 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::CRemoteAircraftAware | |
| ~CRemoteAircraftAware ()=default | |
| 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. | |
| IRemoteAircraftProvider * | getRemoteAircraftProvider () const |
| Get the aircraft provider. | |
Public Member Functions inherited from swift::misc::network::CClientAware | |
| CClientList | getClients () const |
| clientprovider More... | |
| void | setClients (const CClientList &clients) |
| Set other clients. More... | |
| void | clearClients () |
| Set other clients. More... | |
| swift::misc::network::CClientList | getClientsForCallsigns (const aviation::CCallsignSet &callsigns) const |
| Returns a list of other clients corresponding to the given callsigns. More... | |
| swift::misc::network::CClient | getClientOrDefaultForCallsign (const aviation::CCallsign &callsign) const |
| Other client for the given callsigns. More... | |
| bool | hasClientInfo (const aviation::CCallsign &callsign) const |
| Client info for given callsign? More... | |
| bool | addNewClient (const CClient &client) |
| Add a new client, if existing nothing will be added. More... | |
| int | updateOrAddClient (const aviation::CCallsign &callsign, const CPropertyIndexVariantMap &vm, bool skipEqualValues) |
| Update or add a client. More... | |
| int | removeClient (const aviation::CCallsign &callsign) |
| Remove client. More... | |
| bool | autoAdjustCientGndCapability (const aviation::CAircraftSituation &situation) |
| Adjust gnd.flag capability from situation. More... | |
| bool | addClientGndCapability (const aviation::CCallsign &callsign) |
| Add gnd.flag capability. More... | |
| void | markAsSwiftClient (const aviation::CCallsign &callsign) |
| Mark as other swift client. More... | |
| void | setClientProvider (CClientProvider *provider) |
| Provider. | |
Public Member Functions inherited from swift::misc::simulation::ISimulationEnvironmentProvider | |
| geo::CCoordinateGeodeticList | getAllElevationCoordinates () const |
| All remembered coordinates. More... | |
| geo::CCoordinateGeodeticList | getElevationCoordinatesOnGround () const |
| All remembered coordinates. 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... | |
| 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... | |
| bool | requestElevationBySituation (const swift::misc::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... | |
| QPair< qint64, qint64 > | getElevationRequestTimes () const |
| The elevation request times. More... | |
| QString | getElevationsFoundMissedInfo () const |
| Elevations found/missed statistics info as string. More... | |
| QString | getElevationRequestTimesInfo () const |
| Elevation request times. More... | |
| CSimulatorPluginInfo | getSimulatorPluginInfo () const |
| Get the represented plugin. More... | |
| CSimulatorInfo | getSimulatorInfo () const |
| Get the represented simulator. More... | |
| QString | getSimulatorNameAndVersion () const |
| Version and simulator details info. More... | |
| CAircraftModel | getDefaultModel () const |
| Default model. More... | |
| aviation::CLengthPerCallsign | getSimulatorCGsPerCallsign () const |
| All CGs per callsign. More... | |
| QHash< QString, physical_quantities::CLength > | getSimulatorCGsPerModelString () const |
| All CGs per modelstring. 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... | |
| physical_quantities::CLength | getSimulatorCGPerModelString (const QString &modelString) const |
| Get CG per model string, NULL if not found. More... | |
| physical_quantities::CLength | getSimulatorOrDbCGPerModelString (const QString &modelString, const physical_quantities::CLength &dbCG) const |
| Get CG per model string, NULL if not found. More... | |
| physical_quantities::CLength | overriddenCGorDefault (const physical_quantities::CLength &defaultCG, const QString &modelString) const |
| Return the overridden CG value or the given default CG value. More... | |
| bool | hasSimulatorCG (const aviation::CCallsign &callsign) const |
| Has a CG? More... | |
| bool | hasSameSimulatorCG (const physical_quantities::CLength &cg, const aviation::CCallsign &callsign) const |
| Has the same CG? More... | |
| int | setMaxElevationsRemembered (int max) |
| Set number of elevations kept. More... | |
| int | getMaxElevationsRemembered () const |
| Get number of max. number of elevations. More... | |
| void | resetSimulationEnvironmentStatistics () |
| Reset statistics. More... | |
| bool | cleanElevationValues (const aviation::CAircraftSituation &reference, const physical_quantities::CLength &keptRange, bool forced=false) |
| Remove cached elevations outside range, "forced" cleans always, otherwise only if max.values are reached. More... | |
| int | removeElevationValues (const aviation::CAircraftSituation &reference, const physical_quantities::CLength &removeRange) |
| Remove cached elevations inside range,. 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::simulation::IInterpolationSetupProvider | |
| CInterpolationAndRenderingSetupPerCallsign | getInterpolationSetupPerCallsignOrDefault (const aviation::CCallsign &callsign) const |
| Get the setup for callsign, if not existing the global setup. More... | |
| CInterpolationSetupList | getInterpolationSetupsPerCallsign () const |
| Get all setups per callsign. More... | |
| bool | hasSetupsPerCallsign () const |
| Get all setups per callsign. More... | |
| bool | setInterpolationSetupsPerCallsign (const CInterpolationSetupList &setups, bool ignoreSameAsGlobal=true) |
| Set all setups per callsign. More... | |
| virtual CInterpolationAndRenderingSetupGlobal | getInterpolationSetupGlobal () const |
| The global setup. More... | |
| aviation::CCallsignSet | getLogCallsigns () const |
| All callsigns marked to be logged. More... | |
| bool | isLogCallsign (const aviation::CCallsign &callsign) const |
| Is callsign marked for logging. More... | |
| bool | setInterpolationMode (const QString &modeAsString, const aviation::CCallsign &callsign) |
| Set mode as string. More... | |
| bool | setLogInterpolation (bool log, const aviation::CCallsign &callsign) |
| Enable/disable logging. More... | |
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 const QStringList & | getLogCategories () |
| Log categories. | |
| static void | registerHelp () |
| Register help. | |
| static QString | statusToString (SimulatorStatus status) |
| Status to string. | |
| static bool | isAnyConnectedStatus (SimulatorStatus status) |
| Any connected status? | |
| static const swift::misc::aviation::CCallsign & | getTestCallsign () |
| Get a test callsign. | |
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) |
Protected Member Functions | |
| ISimulator (const swift::misc::simulation::CSimulatorPluginInfo &pluginInfo, swift::misc::simulation::IOwnAircraftProvider *ownAircraftProvider, swift::misc::simulation::IRemoteAircraftProvider *remoteAircraftProvider, swift::misc::network::IClientProvider *clientProvider, QObject *parent=nullptr) | |
| Constructor with all the providers. | |
| virtual void | initSimulatorInternals () |
| Init the internals info from the simulator. | |
| virtual bool | parseDetails (const swift::misc::CSimpleCommandParser &parser)=0 |
| Parsed in derived classes. | |
| virtual void | onRecalculatedRenderedAircraft (const swift::misc::simulation::CAirspaceAircraftSnapshot &snapshot) |
| Recalculate the rendered aircraft, this happens when restrictions are applied (max. aircraft, range) | |
| virtual bool | physicallyAddRemoteAircraft (const swift::misc::simulation::CSimulatedAircraft &remoteAircraft)=0 |
| Add new remote aircraft physically to the simulator. More... | |
| virtual bool | physicallyRemoveRemoteAircraft (const swift::misc::aviation::CCallsign &callsign)=0 |
| Remove remote aircraft from simulator. | |
| virtual int | physicallyRemoveMultipleRemoteAircraft (const swift::misc::aviation::CCallsignSet &callsigns) |
| Remove remote aircraft from simulator. | |
| virtual void | clearAllRemoteAircraftData () |
| Clear all aircraft related data, but do not physically remove the aircraft. | |
| virtual int | physicallyRemoveAllRemoteAircraft () |
| Remove all remote aircraft and their data via ISimulator::clearAllRemoteAircraftData. More... | |
| void | rememberElevationAndSimulatorCG (const swift::misc::aviation::CCallsign &callsign, const swift::misc::simulation::CAircraftModel &model, bool likelyOnGroundElevation, const swift::misc::geo::CElevationPlane &elevation, const swift::misc::physical_quantities::CLength &simulatorCG) |
| Set elevation and CG in the providers and for auto publishing. More... | |
| void | emitSimulatorCombinedStatus (SimulatorStatus oldStatus=Unspecified) |
| Emit the combined status. More... | |
| void | emitInterpolationSetupChanged () |
| Pseudo signal, override to emit signal. More... | |
| void | debugLogMessage (const QString &msg) |
| Display a debug log message based on swift::misc::simulation::CInterpolationAndRenderingSetup remark shows log messages of functions calls. | |
| void | debugLogMessage (const QString &funcInfo, const QString &msg) |
| Display a debug log message based on swift::misc::simulation::CInterpolationAndRenderingSetup remark shows log messages of functions calls. | |
| bool | showDebugLogMessage () const |
| Show log messages? | |
| void | resetAircraftFromProvider (const swift::misc::aviation::CCallsign &callsign) |
| Restore aircraft from the provider data. | |
| virtual void | clearData (const swift::misc::aviation::CCallsign &callsign) |
| Clear the related data as statistics etc. | |
| bool | addLoopbackSituation (const swift::misc::aviation::CAircraftSituation &situation) |
| Add a loopback situation if logging is enabled. | |
| bool | addLoopbackSituation (const swift::misc::aviation::CCallsign &callsign, const swift::misc::geo::CElevationPlane &elevationPlane, const swift::misc::physical_quantities::CLength &cg) |
| Add a loopback situation if logging is enabled. | |
| virtual void | reset () |
| Full reset of state. More... | |
| bool | isUpdateAllRemoteAircraft (qint64 currentTimestamp=-1) const |
| Do update all remote aircraft? | |
| void | setUpdateAllRemoteAircraft (qint64 currentTimestamp=-1, qint64 forMs=-1) |
| Update all aircraft for ms. | |
| void | resetUpdateAllRemoteAircraft () |
| Reset. | |
| void | safeKillTimer () |
| Kill timer if id is valid. | |
| bool | isEqualLastSent (const swift::misc::aviation::CAircraftSituation &compare) const |
| Equal to last sent situation. | |
| bool | isEqualLastSent (const swift::misc::aviation::CAircraftParts &compare, const swift::misc::aviation::CCallsign &callsign) const |
| Equal to last sent situation. | |
| void | rememberLastSent (const swift::misc::aviation::CAircraftSituation &sent) |
| Remember as last sent. | |
| void | rememberLastSent (const swift::misc::aviation::CAircraftParts &sent, const swift::misc::aviation::CCallsign &callsign) |
| Remember as last sent. | |
| swift::misc::aviation::CAircraftSituationList | getLastSentCanLikelySkipNearGroundInterpolation () const |
| Last sent situations. | |
| bool | isUpdateAircraftLimited (qint64 timestamp=-1) |
| Limit reached (max number of updates by token bucket if enabled) | |
| bool | isUpdateAircraftLimitedWithStats (qint64 startTime=-1) |
| Limited as ISimulator::isUpdateAircraftLimited plus updating statistics. | |
| bool | limitToUpdatesPerSecond (int numberPerSecond) |
| Limit to updates per second. | |
| void | reverseLookupAndUpdateOwnAircraftModel (const swift::misc::simulation::CAircraftModel &model) |
| Set own model. | |
| void | reverseLookupAndUpdateOwnAircraftModel (const QString &modelString) |
| Set own model. | |
| QString | getInvalidSituationLogMessage (const swift::misc::aviation::CCallsign &callsign, const swift::misc::simulation::CInterpolationStatus &status, const QString &details={}) const |
| Info about invalid situation. | |
| void | finishUpdateRemoteAircraftAndSetStatistics (qint64 startTime, bool limited=false) |
| Update stats and flags. | |
| virtual void | onOwnModelChanged (const swift::misc::simulation::CAircraftModel &newModel) |
| Own model has been changed. | |
| bool | updateOwnSituationAndGroundElevation (const swift::misc::aviation::CAircraftSituation &situation) |
| Update own aircraft position and if suitable use it to update ground elevation. | |
| swift::misc::simulation::CAircraftModelList | getModelSet () const |
| Get the model set. | |
| bool | validateModelOfAircraft (const swift::misc::simulation::CSimulatedAircraft &aircraft) const |
| Validate if model has callsign and such. | |
| void | logAddingAircraftModel (const swift::misc::simulation::CSimulatedAircraft &aircraft) const |
| Unified qeeing aircraft message. | |
| bool | isAircraftInRangeOrTestMode (const swift::misc::aviation::CCallsign &callsign) const |
| Test version aware version of isAircraftInRange. | |
| virtual void | onSwiftDbAllDataRead () |
| When swift DB data are read. | |
| virtual void | onSwiftDbModelMatchingEntitiesRead () |
| When swift DB data are read. | |
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::COwnAircraftAware | |
| COwnAircraftAware (IOwnAircraftProvider *ownAircraftProvider) | |
| Constructor. | |
Protected Member Functions inherited from swift::misc::IProviderAware< IOwnAircraftProvider > | |
| IProviderAware (IOwnAircraftProvider *provider=nullptr) | |
| Ctor. | |
| virtual | ~IProviderAware ()=default |
| 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::CRemoteAircraftAware | |
| CRemoteAircraftAware () | |
| Default constructor. | |
| CRemoteAircraftAware (IRemoteAircraftProvider *remoteAircraftProvider) | |
| Constructor. | |
Protected Member Functions inherited from swift::misc::IProviderAware< IRemoteAircraftProvider > | |
| IProviderAware (IRemoteAircraftProvider *provider=nullptr) | |
| Ctor. | |
| virtual | ~IProviderAware ()=default |
| 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. | |
Protected Member Functions inherited from swift::misc::network::CClientAware | |
| CClientAware () | |
| Default constructor. | |
| CClientAware (IClientProvider *clientProvider) | |
| Constructor. | |
Protected Member Functions inherited from swift::misc::IProviderAware< IClientProvider > | |
| IProviderAware (IClientProvider *provider=nullptr) | |
| Ctor. | |
| virtual | ~IProviderAware ()=default |
| Dtor. | |
| bool | hasProvider () const |
| Has provider? | |
| IClientProvider * | getProvider () const |
| Provider. | |
| void | setProvider (IClientProvider *provider) |
| Set the provider. More... | |
| IClientProvider * | provider () |
| Provider. | |
| const IClientProvider * | provider () const |
| Const provider. | |
Protected Member Functions inherited from swift::misc::simulation::ISimulationEnvironmentProvider | |
| ISimulationEnvironmentProvider (const CSimulatorPluginInfo &pluginInfo) | |
| Ctor. | |
| ISimulationEnvironmentProvider (const CSimulatorPluginInfo &pluginInfo, const settings::CSimulatorSettings &settings, bool supportElevation, bool supportCG) | |
| Ctor. | |
| geo::CCoordinateGeodeticList | getAllElevationCoordinates (int &maxRemembered) const |
| All remembered coordiantes plus max.remembered ground situations. More... | |
| void | setNewPluginInfo (const CSimulatorPluginInfo &info, const settings::CSimulatorSettings &settings, const CAircraftModel &defaultModel) |
| New plugin info and default model. More... | |
| void | setNewPluginInfo (const CSimulatorPluginInfo &info, const settings::CSimulatorSettings &settings) |
| New plugin info and default model. More... | |
| void | setSimulatorDetails (const QString &name, const QString &details, const QString &version) |
| Set version and simulator details from running simulator. More... | |
| QString | getSimulatorName () const |
| Simulator name as set from the running simulator. More... | |
| QString | getSimulatorVersion () const |
| Simulator version as set from the running simulator. More... | |
| QString | getSimulatorDetails () const |
| Simulator details as set from the running simulator. More... | |
| void | setDefaultModel (const CAircraftModel &defaultModel) |
| Default model. More... | |
| void | clearDefaultModel () |
| Clear default model. More... | |
| void | clearElevations () |
| Clear elevations. | |
| void | clearCGs () |
| Clear CGs. More... | |
| void | clearSimulationEnvironmentData () |
| Clear data. More... | |
| int | cleanUpElevations (const geo::ICoordinateGeodetic &referenceCoordinate, int maxNumber=-1) |
| Only keep closest ones. More... | |
| bool | rememberGroundElevation (const aviation::CCallsign &requestedForCallsign, bool likelyOnGroundElevation, const geo::ICoordinateGeodetic &elevationCoordinate, const physical_quantities::CLength &epsilon=geo::CElevationPlane::singlePointRadius()) |
| Remember a given elevation. More... | |
| bool | rememberGroundElevation (const aviation::CCallsign &requestedForCallsign, bool likelyOnGroundElevation, const geo::CElevationPlane &elevationPlane) |
| Remember a given elevation. More... | |
| bool | insertCG (const physical_quantities::CLength &cg, const aviation::CCallsign &cs) |
| Insert or replace a CG. More... | |
| bool | insertCG (const physical_quantities::CLength &cg, const QString &modelString, const aviation::CCallsign &cs) |
| Insert or replace a CG. More... | |
| bool | insertCGOverridden (const physical_quantities::CLength &cg, const aviation::CCallsign &cs) |
| Insert or replace a CG. More... | |
| bool | insertCGOverridden (const physical_quantities::CLength &cg, const aviation::CCallsignSet &callsigns) |
| Insert or replace an overridden CG. More... | |
| bool | insertCGForModelString (const physical_quantities::CLength &cg, const QString &modelString) |
| Insert or replace a CG. More... | |
| bool | insertCGForModelStringOverridden (const physical_quantities::CLength &cg, const QString &modelString) |
| Insert or replace a CG (overridden mode) More... | |
| aviation::CLengthPerCallsign | clearCGOverrides () |
| Clear all overridden values. More... | |
| int | removeSimulatorCG (const aviation::CCallsign &cs) |
| Remove a CG for a given callsign. More... | |
| void | removePendingElevationRequest (const aviation::CCallsign &cs) |
| Remove pending timestamp. More... | |
| bool | isCgProviderEnabled () const |
| Provider enabled. More... | |
| bool | isElevationProviderEnabled () const |
| Provider enabled. More... | |
| void | setCgProviderEnabled (bool enabled) |
| Provider enabled. More... | |
| void | setElevationProviderEnabled (bool enabled) |
| Provider enabled. More... | |
| void | setSimulationProviderEnabled (bool elvEnabled, bool cgEnabled) |
| Provider enabled. More... | |
Protected Member Functions inherited from swift::misc::IProvider | |
| IProvider () | |
| Constructor. | |
Protected Member Functions inherited from swift::misc::simulation::IInterpolationSetupProvider | |
| virtual bool | setInterpolationSetupPerCallsign (const CInterpolationAndRenderingSetupPerCallsign &setup, const aviation::CCallsign &callsign, bool removeGlobalSetup=true) |
| Insert specialized setup per callsign. More... | |
| void | setLogCallsign (bool log, const aviation::CCallsign &callsign) |
| Log/un-log given callsign. More... | |
| bool | removeInterpolationSetupPerCallsign (const aviation::CCallsign &callsign) |
| Remove specialized setup per callsign. | |
| void | clearInterpolationLogCallsigns () |
| Clear all interpolation log callsigns. More... | |
| int | clearInterpolationSetupsPerCallsign () |
| Clear all setups. More... | |
| bool | logAnyCallsign () const |
| Log any callsign? More... | |
| SetupsPerCallsign | getSetupsPerCallsign () const |
| The setups per callsign. More... | |
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 | |
| static swift::misc::simulation::CAircraftModel | reverseLookupModel (const swift::misc::simulation::CAircraftModel &model) |
| Lookup against DB data. | |
Static Protected Member Functions inherited from swift::misc::simulation::ISimulationEnvironmentProvider | |
| static physical_quantities::CLength | minRange (const physical_quantities::CLength &range) |
| Min.range considered as single point. | |
Protected Attributes | |
| bool | m_updateRemoteAircraftInProgress = false |
| currently updating remote aircraft | |
| bool | m_enablePseudoElevation = false |
| return faked elevations (testing) | |
| int | m_timerId = -1 |
| dispatch timer id | |
| int | m_statsUpdateAircraftRuns = 0 |
| statistics update count | |
| int | m_statsUpdateAircraftLimited = 0 |
| skipped because of max.update limitations | |
| double | m_statsUpdateAircraftTimeAvgMs = 0 |
| statistics average update time | |
| double | m_averageFps = -1.0 |
| FPS. | |
| double | m_simTimeRatio = 1.0 |
| ratio of simulation time to real time, due to low FPS (X-Plane) | |
| double | m_trackMilesShort = 0.0 |
| difference between real and reported groundspeed, multiplied by time | |
| double | m_minutesLate = 0.0 |
| difference between real and reported groundspeed, integrated over time | |
| qint64 | m_updateAllRemoteAircraftUntil = 0 |
| force an update of all remote aircraft, used when own aircraft is moved, paused to make sure all remote aircraft are updated | |
| qint64 | m_statsUpdateAircraftTimeTotalMs = 0 |
| statistics total update time | |
| qint64 | m_statsCurrentUpdateTimeMs = 0 |
| statistics current update time | |
| qint64 | m_statsMaxUpdateTimeMs = 0 |
| statistics max.update time | |
| qint64 | m_lastRecordedGndElevationMs = 0 |
| when gnd.elevation was last modified | |
| qint64 | m_statsLastUpdateAircraftRequestedMs = 0 |
| when was the last aircraft update requested | |
| qint64 | m_statsUpdateAircraftRequestedDeltaMs = 0 |
| delta time between 2 aircraft updates | |
| swift::misc::aviation::CAltitude | m_pseudoElevation |
| pseudo elevation for testing purposes More... | |
| swift::misc::simulation::CSimulatorInternals | m_simulatorInternals |
| setup read from the sim | |
| swift::misc::simulation::CInterpolationLogger | m_interpolationLogger |
| log.interpolation | |
| swift::misc::simulation::CAutoPublishData | m_autoPublishing |
| for the DB | |
| swift::misc::aviation::CAircraftSituationPerCallsign | m_lastSentSituations |
| last situations sent to simulator | |
| swift::misc::aviation::CAircraftPartsPerCallsign | m_lastSentParts |
| last parts sent to simulator | |
| swift::misc::simulation::CSimulatedAircraftList | m_addAgainAircraftWhenRemoved |
| add this model again when removed, normally used to change model | |
| swift::misc::aviation::CAircraftSituationListPerCallsign | m_loopbackSituations |
| traced loopback situations | |
| swift::misc::CTokenBucket | m_limitUpdateAircraftBucket { 5, 100, 5 } |
| means 50 per second | |
| bool | m_limitUpdateAircraft = false |
| limit the update frequency by using swift::misc::CTokenBucket | |
| swift::misc::simulation::settings::CMultiSimulatorSettings | m_multiSettings |
| simulator settings for all simulators More... | |
Additional Inherited Members | |
Public Attributes inherited from QObject | |
| typedef | QObjectList |
| Invalid | |
Properties inherited from QObject | |
| objectName | |
Interface to a simulator.
Definition at line 51 of file simulator.h.
ISimulator status.
Definition at line 66 of file simulator.h.
|
inlinevirtual |
Return as QObject.
Reimplemented from swift::misc::IProvider.
Definition at line 253 of file simulator.h.
|
virtual |
A requested elevation has been received.
Reimplemented in swift::simplugin::xplane::CSimulatorXPlane.
Definition at line 254 of file simulator.cpp.
|
virtual |
Debug function to check state after all aircraft have been removed.
Reimplemented in swift::simplugin::fsxcommon::CSimulatorFsxCommon.
Definition at line 1006 of file simulator.cpp.
|
protectedvirtual |
Pseudo signal, override to emit signal.
Reimplemented from swift::misc::simulation::IInterpolationSetupProvider.
Definition at line 835 of file simulator.cpp.
|
protected |
Emit the combined status.
| oldStatus | optionally one can capture and provide the old status for comparison. In case of equal status values no signal will be sent |
Definition at line 812 of file simulator.cpp.
| CInterpolationAndRenderingSetupPerCallsign swift::core::ISimulator::getInterpolationSetupConsolidated | ( | const swift::misc::aviation::CCallsign & | callsign, |
| bool | forceFullUpdate | ||
| ) | const |
Consolidate setup with other data like from swift::misc::simulation::IRemoteAircraftProvider.
Definition at line 237 of file simulator.cpp.
|
inlinevirtual |
Is overall (swift) application shutting down.
Definition at line 211 of file simulator.h.
| QString swift::core::ISimulator::latestLoggedDataFormatted | ( | const swift::misc::aviation::CCallsign & | cs | ) | const |
The latest logged data formatted.
Definition at line 1139 of file simulator.cpp.
|
virtual |
Logically add a new aircraft. Depending on max. aircraft, enabled status etc. it will physically added to the simulator.
Reimplemented in swift::simplugin::emulated::CSimulatorEmulated.
Definition at line 78 of file simulator.cpp.
|
virtual |
Removes and adds again the aircraft.
Definition at line 963 of file simulator.cpp.
|
protectedpure virtual |
Add new remote aircraft physically to the simulator.
Implemented in swift::simplugin::emulated::CSimulatorEmulated, swift::simplugin::xplane::CSimulatorXPlane, swift::simplugin::fsxcommon::CSimulatorFsxCommon, and swift::simplugin::flightgear::CSimulatorFlightgear.
|
protectedvirtual |
Remove all remote aircraft and their data via ISimulator::clearAllRemoteAircraftData.
Reimplemented in swift::simplugin::xplane::CSimulatorXPlane, swift::simplugin::fsxcommon::CSimulatorFsxCommon, swift::simplugin::flightgear::CSimulatorFlightgear, and swift::simplugin::emulated::CSimulatorEmulated.
Definition at line 739 of file simulator.cpp.
|
protected |
Set elevation and CG in the providers and for auto publishing.
Definition at line 770 of file simulator.cpp.
|
inline |
Public version to remove all aircraft.
Definition at line 114 of file simulator.h.
|
inline |
Request elevation, there is no guarantee the requested elevation will be available in the provider.
Definition at line 236 of file simulator.h.
|
virtual |
Request elevation, there is no guarantee the requested elevation will be available in the provider.
Implements swift::misc::simulation::ISimulationEnvironmentProvider.
Reimplemented in swift::simplugin::xplane::CSimulatorXPlane, swift::simplugin::flightgear::CSimulatorFlightgear, swift::simplugin::emulated::CSimulatorEmulated, and swift::simplugin::fsxcommon::CSimulatorFsxCommon.
Definition at line 247 of file simulator.cpp.
|
protectedvirtual |
Full reset of state.
Reimplemented in swift::simplugin::fsxcommon::CSimulatorFsxCommon, and swift::simplugin::fscommon::CSimulatorFsCommon.
Definition at line 203 of file simulator.cpp.
|
virtual |
Flight network has been connected.
Reimplemented in swift::simplugin::xplane::CSimulatorXPlane, and swift::simplugin::fsxcommon::CSimulatorFsxCommon.
Definition at line 120 of file simulator.cpp.
|
virtual |
Set the global setup.
Reimplemented from swift::misc::simulation::IInterpolationSetupProvider.
Definition at line 844 of file simulator.cpp.
|
protected |
simulator settings for all simulators
Definition at line 597 of file simulator.h.
|
protected |
pseudo elevation for testing purposes
Definition at line 575 of file simulator.h.