swift
Signals | Public Member Functions | Static Public Member Functions | Protected Member Functions | Friends | List of all members
swift::simplugin::emulated::CSimulatorEmulated Class Reference

swift simulator implementation More...

Inheritance diagram for swift::simplugin::emulated::CSimulatorEmulated:
[legend]

Signals

void internalAircraftChanged ()
 Internal aircraft changed.
 
- Signals inherited from swift::core::ISimulator
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

 CSimulatorEmulated (const swift::misc::simulation::CSimulatorPluginInfo &info, swift::misc::simulation::IOwnAircraftProvider *ownAircraftProvider, swift::misc::simulation::IRemoteAircraftProvider *remoteAircraftProvider, swift::misc::network::IClientProvider *clientProvider, QObject *parent=nullptr)
 Constructor, parameters as in. More...
 
virtual ~CSimulatorEmulated ()
 Destructor.
 
virtual bool connectTo ()
 Connect to simulator.
 
virtual bool disconnectFrom ()
 Disconnect from simulator.
 
virtual void unload ()
 Driver will be unloaded.
 
virtual bool isConnected () const
 Are we connected to the simulator?
 
virtual bool isPaused () const
 Simulator paused?
 
virtual bool isSimulating () const
 Simulator running?
 
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)
 Update own aircraft cockpit (usually from context)
 
virtual bool updateOwnSimulatorSelcal (const swift::misc::aviation::CSelcal &selcal, const swift::misc::CIdentifier &originator)
 Update own aircraft cockpit (usually from context)
 
virtual void displayStatusMessage (const swift::misc::CStatusMessage &message) const
 Display a status message in the simulator.
 
virtual void displayTextMessage (const swift::misc::network::CTextMessage &message) const
 Display a text message.
 
virtual bool isPhysicallyRenderedAircraft (const swift::misc::aviation::CCallsign &callsign) const
 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
 Physically rendered (displayed in simulator) This shall only return aircraft handled in the simulator.
 
virtual swift::misc::CStatusMessageList getInterpolationMessages (const swift::misc::aviation::CCallsign &callsign) const
 Interpolation messages for callsign.
 
virtual bool testSendSituationAndParts (const swift::misc::aviation::CCallsign &callsign, const swift::misc::aviation::CAircraftSituation &situation, const swift::misc::aviation::CAircraftParts &parts)
 Send situation/parts for testing.
 
virtual 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...
 
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 int physicallyRemoveMultipleRemoteAircraft (const swift::misc::aviation::CCallsignSet &callsigns)
 Remove remote aircraft from simulator.
 
virtual bool parseCommandLine (const QString &commandLine, const swift::misc::CIdentifier &originator)
 
void setCombinedStatus (bool connected, bool simulating, bool paused)
 UI setter.
 
swift::misc::simulation::CSimulatorInfo getEmulatedSimulator () const
 The emulated simulated simulator.
 
const swift::misc::simulation::CSimulatedAircraftgetInternalOwnAircraft () const
 Internal own aircraft. More...
 
bool changeInternalCom (const swift::misc::simulation::CSimulatedAircraft &aircraft)
 Simulator internal change of COM values. More...
 
bool changeInternalCom (const swift::misc::aviation::CComSystem &comSystem, swift::misc::aviation::CComSystem::ComUnit unit)
 Simulator internal change of COM values. More...
 
bool changeInternalSelcal (const swift::misc::aviation::CSelcal &selcal)
 Simulator internal change of SELCAL. More...
 
bool changeInternalSituation (const swift::misc::aviation::CAircraftSituation &situation)
 Simulator internal change of situation. More...
 
bool changeInternalParts (const swift::misc::aviation::CAircraftParts &parts)
 Simulator internal change of parts. More...
 
bool setInterpolatorFetchTime (int timeMs)
 Interpolator fetch time, <=0 stops.
 
bool isInterpolatorFetching () const
 Is fetching from interpolator.
 
- Public Member Functions inherited from swift::simplugin::common::CSimulatorPluginCommon
virtual ~CSimulatorPluginCommon ()
 Destructor.
 
- Public Member Functions inherited from swift::core::ISimulator
 ~ISimulator ()
 Destructor.
 
virtual SimulatorStatus getSimulatorStatus () const
 Combined status.
 
virtual const swift::misc::simulation::CSimulatorInternalsgetSimulatorInternals () const
 Get the simulator current internal state.
 
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 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.
 
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.
 
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::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.
 
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...
 
const swift::misc::simulation::CAutoPublishDatagetPublishData () 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::CInterpolationLoggerinterpolationLogger () 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 swift::misc::simulation::COwnAircraftAware
void setOwnAircraftProvider (IOwnAircraftProvider *provider)
 Set the provider.
 
CSimulatedAircraft getOwnAircraft () const
 Own aircraft. More...
 
aviation::CCallsign getOwnCallsign () const
 Own aircraft's callsign. More...
 
aviation::CComSystem getOwnComSystem (aviation::CComSystem::ComUnit unit) const
 Own aircraft COM unit. More...
 
aviation::CTransponder getOwnTransponder () const
 Own aircraft XPDR. More...
 
swift::misc::geo::CCoordinateGeodetic getOwnAircraftPosition () const
 Own aircraft's position. More...
 
aviation::CAircraftSituation getOwnAircraftSituation () const
 Own aircraft's position. More...
 
aviation::CAircraftParts getOwnAircraftParts () const
 Own aircraft's parts. More...
 
swift::misc::simulation::CAircraftModel getOwnAircraftModel () const
 Own aircraft model. More...
 
swift::misc::physical_quantities::CLength getDistanceToOwnAircraft (const swift::misc::geo::ICoordinateGeodetic &position) const
 Distance to own aircraft. More...
 
bool updateCockpit (const swift::misc::simulation::CSimulatedAircraft &aircraft, const swift::misc::CIdentifier &originator)
 
bool updateCockpit (const aviation::CComSystem &com1, const aviation::CComSystem &com2, const aviation::CTransponder &transponder, const swift::misc::CIdentifier &originator)
 
bool updateActiveComFrequency (const swift::misc::physical_quantities::CFrequency &frequency, aviation::CComSystem::ComUnit comUnit, const swift::misc::CIdentifier &originator)
 Update cockpit, but only send signals when applicable. More...
 
bool updateSelcal (const aviation::CSelcal &selcal, const swift::misc::CIdentifier &originator)
 Update cockpit, but only send signals when applicable. More...
 
bool updateOwnCallsign (const aviation::CCallsign &callsign)
 Update aircraft's callsign. More...
 
bool updateOwnIcaoCodes (const aviation::CAircraftIcaoCode &aircraftIcaoData, const aviation::CAirlineIcaoCode &airlineIcaoCode)
 Update ICAO data. More...
 
bool updateOwnModel (const swift::misc::simulation::CAircraftModel &model)
 Update model. More...
 
bool updateOwnSituation (const aviation::CAircraftSituation &situation)
 Update own situation. More...
 
bool updateOwnParts (const aviation::CAircraftParts &parts)
 Update own parts. More...
 
bool updateOwnCG (const physical_quantities::CLength &cg)
 Update own aircraft's CG (aka vertical offset) More...
 
- Public Member Functions inherited from swift::misc::simulation::CRemoteAircraftAware
virtual ~CRemoteAircraftAware ()
 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.
 
IRemoteAircraftProvidergetRemoteAircraftProvider () 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::CLengthgetSimulatorCGsPerModelString () 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 ()
 Dtor.
 
 IProvider (const IProvider &)=delete
 Copy constructor.
 
IProvideroperator= (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 CIdentifieridentifier () const
 Get identifier.
 
void setIdentifier (const CIdentifier &identifier)
 Set identifier, allows to set an external identifier.
 
bool isMyIdentifier (const CIdentifier &otherIdentifier) const
 My identifier?
 

Static Public Member Functions

static void registerHelp ()
 Register help.
 
- Static Public Member Functions inherited from swift::core::ISimulator
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::CCallsigngetTestCallsign ()
 Get a test callsign.
 

Protected Member Functions

virtual bool physicallyAddRemoteAircraft (const swift::misc::simulation::CSimulatedAircraft &remoteAircraft)
 Add new remote aircraft physically to the simulator. More...
 
virtual bool physicallyRemoveRemoteAircraft (const swift::misc::aviation::CCallsign &callsign)
 Remove remote aircraft from simulator.
 
virtual int physicallyRemoveAllRemoteAircraft ()
 Remove all remote aircraft and their data via ISimulator::clearAllRemoteAircraftData. More...
 
virtual bool parseDetails (const swift::misc::CSimpleCommandParser &parser)
 Parsed in derived classes. More...
 
- Protected Member Functions inherited from swift::simplugin::common::CSimulatorPluginCommon
 CSimulatorPluginCommon (const swift::misc::simulation::CSimulatorPluginInfo &info, swift::misc::simulation::IOwnAircraftProvider *ownAircraftProvider, swift::misc::simulation::IRemoteAircraftProvider *renderedAircraftProvider, swift::misc::network::IClientProvider *clientProvider, QObject *parent=nullptr)
 Constructor.
 
- Protected Member Functions inherited from swift::core::ISimulator
 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 void onRecalculatedRenderedAircraft (const swift::misc::simulation::CAirspaceAircraftSnapshot &snapshot)
 Recalculate the rendered aircraft, this happens when restrictions are applied (max. aircraft, range)
 
virtual void clearAllRemoteAircraftData ()
 Clear all aircraft related data, but do not physically remove the aircraft.
 
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 swift::misc::simulation::COwnAircraftAware
 COwnAircraftAware (IOwnAircraftProvider *ownAircraftProvider)
 Constructor.
 
- Protected Member Functions inherited from swift::misc::IProviderAware< IOwnAircraftProvider >
 IProviderAware (IOwnAircraftProvider *provider=nullptr)
 Ctor.
 
virtual ~IProviderAware ()
 Dtor.
 
bool hasProvider () const
 Has provider?
 
IOwnAircraftProvider * getProvider () const
 Provider.
 
void setProvider (IOwnAircraftProvider *provider)
 Set the provider. More...
 
IOwnAircraftProvider * provider ()
 Provider.
 
const IOwnAircraftProvider * provider () const
 Const provider.
 
- Protected Member Functions inherited from swift::misc::simulation::CRemoteAircraftAware
 CRemoteAircraftAware ()
 Default constructor.
 
 CRemoteAircraftAware (IRemoteAircraftProvider *remoteAircraftProvider)
 Constructor.
 
- Protected Member Functions inherited from swift::misc::IProviderAware< IRemoteAircraftProvider >
 IProviderAware (IRemoteAircraftProvider *provider=nullptr)
 Ctor.
 
virtual ~IProviderAware ()
 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 ()
 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.
 
CIdentifiableoperator= (const CIdentifiable &)=default
 Copy assignment operator.
 

Friends

class CSimulatorEmulatedMonitorDialog
 the monitor widget represents the simulator and needs access to internals (i.e. More...
 

Additional Inherited Members

- Public Types inherited from swift::core::ISimulator
enum  SimulatorStatusFlag {
  Unspecified = 0 , Disconnected = 1 << 0 , Connected = 1 << 1 , Simulating = 1 << 2 ,
  Paused = 1 << 3
}
 ISimulator status. More...
 
- Public Types inherited from swift::misc::simulation::IInterpolationSetupProvider
using SetupsPerCallsign = QMap< aviation::CCallsign, CInterpolationAndRenderingSetupPerCallsign >
 setups per callsign
 
- Static Protected Member Functions inherited from swift::simplugin::common::CSimulatorPluginCommon
static void registerHelp ()
 Register help.
 
- Static Protected Member Functions inherited from swift::core::ISimulator
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 inherited from swift::core::ISimulator
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...
 

Detailed Description

swift simulator implementation

Definition at line 28 of file simulatoremulated.h.

Constructor & Destructor Documentation

◆ CSimulatorEmulated()

swift::simplugin::emulated::CSimulatorEmulated::CSimulatorEmulated ( const swift::misc::simulation::CSimulatorPluginInfo info,
swift::misc::simulation::IOwnAircraftProvider ownAircraftProvider,
swift::misc::simulation::IRemoteAircraftProvider remoteAircraftProvider,
swift::misc::network::IClientProvider clientProvider,
QObject *  parent = nullptr 
)

Constructor, parameters as in.

See also
swift::core::ISimulatorFactory::create

Definition at line 30 of file simulatoremulated.cpp.

Member Function Documentation

◆ changeInternalCom() [1/2]

bool swift::simplugin::emulated::CSimulatorEmulated::changeInternalCom ( const swift::misc::aviation::CComSystem comSystem,
swift::misc::aviation::CComSystem::ComUnit  unit 
)

Simulator internal change of COM values.

Remarks
normally used by corresponding swift::simplugin::emulated::CSimulatorEmulatedMonitorDialog

Definition at line 267 of file simulatoremulated.cpp.

◆ changeInternalCom() [2/2]

bool swift::simplugin::emulated::CSimulatorEmulated::changeInternalCom ( const swift::misc::simulation::CSimulatedAircraft aircraft)

Simulator internal change of COM values.

Remarks
normally used by corresponding swift::simplugin::emulated::CSimulatorEmulatedMonitorDialog

Definition at line 254 of file simulatoremulated.cpp.

◆ changeInternalParts()

bool swift::simplugin::emulated::CSimulatorEmulated::changeInternalParts ( const swift::misc::aviation::CAircraftParts parts)

Simulator internal change of parts.

Remarks
normally used by corresponding swift::simplugin::emulated::CSimulatorEmulatedMonitorDialog

Definition at line 291 of file simulatoremulated.cpp.

◆ changeInternalSelcal()

bool swift::simplugin::emulated::CSimulatorEmulated::changeInternalSelcal ( const swift::misc::aviation::CSelcal selcal)

Simulator internal change of SELCAL.

Remarks
normally used by corresponding swift::simplugin::emulated::CSimulatorEmulatedMonitorDialog

Definition at line 276 of file simulatoremulated.cpp.

◆ changeInternalSituation()

bool swift::simplugin::emulated::CSimulatorEmulated::changeInternalSituation ( const swift::misc::aviation::CAircraftSituation situation)

Simulator internal change of situation.

Remarks
normally used by corresponding swift::simplugin::emulated::CSimulatorEmulatedMonitorDialog

Definition at line 283 of file simulatoremulated.cpp.

◆ getInternalOwnAircraft()

const swift::misc::simulation::CSimulatedAircraft& swift::simplugin::emulated::CSimulatorEmulated::getInternalOwnAircraft ( ) const
inline

Internal own aircraft.

Remarks
normally used by corresponding swift::simplugin::emulated::CSimulatorEmulatedMonitorDialog

Definition at line 97 of file simulatoremulated.h.

◆ logicallyAddRemoteAircraft()

bool swift::simplugin::emulated::CSimulatorEmulated::logicallyAddRemoteAircraft ( const swift::misc::simulation::CSimulatedAircraft remoteAircraft)
virtual

Logically add a new aircraft. Depending on max. aircraft, enabled status etc. it will physically added to the simulator.

See also
physicallyAddRemoteAircraft

Reimplemented from swift::core::ISimulator.

Definition at line 89 of file simulatoremulated.cpp.

◆ parseDetails()

bool swift::simplugin::emulated::CSimulatorEmulated::parseDetails ( const swift::misc::CSimpleCommandParser parser)
protectedvirtual

Parsed in derived classes.

Reimplemented from swift::simplugin::common::CSimulatorPluginCommon.

Definition at line 364 of file simulatoremulated.cpp.

◆ physicallyAddRemoteAircraft()

bool swift::simplugin::emulated::CSimulatorEmulated::physicallyAddRemoteAircraft ( const swift::misc::simulation::CSimulatedAircraft remoteAircraft)
protectedvirtual

Add new remote aircraft physically to the simulator.

See also
changeRemoteAircraftEnabled to hide a remote aircraft

Implements swift::core::ISimulator.

Definition at line 325 of file simulatoremulated.cpp.

◆ physicallyRemoveAllRemoteAircraft()

int swift::simplugin::emulated::CSimulatorEmulated::physicallyRemoveAllRemoteAircraft ( )
protectedvirtual

Remove all remote aircraft and their data via ISimulator::clearAllRemoteAircraftData.

Remarks
each driver is supposed to override that, implement the "physically removing part" (simulator specific) and the call the base class
See also
ISimulator::clearAllRemoteAircraftData

Reimplemented from swift::core::ISimulator.

Definition at line 358 of file simulatoremulated.cpp.

◆ requestElevation()

bool swift::simplugin::emulated::CSimulatorEmulated::requestElevation ( const swift::misc::geo::ICoordinateGeodetic reference,
const swift::misc::aviation::CCallsign callsign 
)
virtual

Request elevation, there is no guarantee the requested elevation will be available in the provider.

Remarks
This function is thread safe.
needs to be overridden if the concrete driver supports such an option
See also
ISimulator::callbackReceivedRequestedElevation

Reimplemented from swift::core::ISimulator.

Definition at line 199 of file simulatoremulated.cpp.

Friends And Related Function Documentation

◆ CSimulatorEmulatedMonitorDialog

friend class CSimulatorEmulatedMonitorDialog
friend

the monitor widget represents the simulator and needs access to internals (i.e.

private/protected)

Definition at line 35 of file simulatoremulated.h.


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