Signals |
| void | heartbeat () |
| | Emitted when other managers should heartbeat local data to remote assistants.
|
| void | prune () |
| | Emitted when other managers should prune data from remote assistants.
|
| void | connectionsAddedOrUpdated (const DtRtiConnectionAndConfiguration &conns) |
| | Emitted when a connection is added or updated.
|
| void | connectionsAboutToBeRemoved (const DtRtiConnectionAndConfiguration &conns) |
| | Emitted when a connection is about to be completely removed.
|
| void | connectionsRemoved (const DtRtiConnectionAndConfiguration &conns) |
| | Emitted when a connection is completely removed.
|
| void | assistantFound (const DtAssistantInfo &info) |
| | Emitted when a new assistant is discovered.
|
| void | assistantLost (const DtAssistantInfo &info) |
| | Emitted when a known assistant is lost.
|
| void | rtiexecStartupRequested (const DtRtiConnectionInfoDataPair &, const DtRtiConnectionConfigurationInfo &, bool) |
| | Emitted when a remote request is received to start an rtiexec.
|
| void | warningDialogDisplayed () |
| | Emitted when a warning dialog is displayed.
|
| void | warningDialogDismissed () |
| | Emitted when a warning dialog is dismissed.
|
| void | popupRequested (const MAKRti::DtString &text, int sourceCompId, const MAKRti::DtString &advancedText) |
| | Emitted when a popup dialog should be displayed.
|
| void | popupRequested (const MAKRti::DtString &text, const MAKRti::DtString &source, const MAKRti::DtString &advancedText) |
| | Emitted when a popup dialog should be displayed.
|
| void | notificationRequested (const MAKRti::DtString &message, MAKRti::DtNotifyLevelType notifyLevel, int sourceCompId, bool logOnly) |
| | Emitted when a notification should be displayed.
|
| void | notificationRequested (const MAKRti::DtString &message, MAKRti::DtNotifyLevelType notifyLevel, const MAKRti::DtString &source, bool logOnly) |
| | Emitted when a notification should be displayed.
|
Public Member Functions |
| | DtAssistantConnectionInfoMgr (DtBoost::shared_ptr< DtRtiAssistantServer > server, DtBoost::shared_ptr< DtRtiAssistantPeer > peer, DtAssistantSignalRouter &signalRouter, const MAKRti::DtFilename &configDir, const MAKRti::DtString &logFileName) |
| | Constructor.
|
| virtual | ~DtAssistantConnectionInfoMgr () |
| | Destructor.
|
| virtual void | tick () |
| | Performs tasks that need to be completed periodically.
|
| virtual void | startShutdown () |
| | Performs any necessary processing at the start of shutdown.
|
| virtual bool | isCacheFileVersionOld () const |
| | Returns true if the opened cache file had an older version.
|
| virtual unsigned int | lightweightMemoryPeriod () const |
| | Get memory period, in minutes, for remote lightweight connections.
|
| virtual unsigned int | lightweightHeartbeatInterval () const |
| | Get the interval between lightweight conn heartbeat messages.
|
| virtual unsigned int | assistantMemoryPeriod () const |
| | Get memory period, in seconds, for remote assistant information.
|
| virtual unsigned int | assistantHeartbeatInterval () const |
| | Get the interval between assistant heartbeat messages.
|
| virtual unsigned int | requestedAssistantHeartbeatInterval () const |
| | Get the interval at which this assistant requests remote assistant heartbeat messages.
|
| virtual bool | acceptRemoteCommands () const |
| | Get whether or not this assistant accepts commands.
|
| virtual bool | remoteAssistantAcceptsCommands (const DtAssistantInfo &assistant) const |
| | Get whether or not a remote assistant accepts commands.
|
| virtual bool | hostHasARemoteAssistantThatAcceptsCommands (const DtHostNameAddress &host, const MAKRti::DtInetAddr &interfaceAddr) const |
| | Determine whether there are any remote assistants on the given host machine that will accept commands.
|
| virtual int | localRtiexecCompId (const DtRtiConnectionInfo &conn) const |
| | Gets the component ID of the local rtiexec on the given connection, or returns -1 if it cannot be found.
|
| virtual int | localRtiForwarderCompId (const DtRtiConnectionInfo &conn) const |
| | Gets the component ID of the local rtiFrowarder that matches the conn.
|
| virtual bool | getRemoteRtiexecLocation (const DtRtiConnectionInfo &conn, DtAssistantInfo &assistant, int &id) const |
| | Finds the location (assistant and component ID) of the remote rtiexec for the given connection.
|
| virtual bool | getRemoteRtiForwarderLocation (const DtRtiConnectionInfo &conn, DtAssistantInfo &assistant, int &id) const |
| | Finds the location (assistant and component ID) of the remote RTI Forwarder for the given connection.
|
| virtual bool | getRemoteRtiexecConnInfo (const DtAssistantInfo &assistant, int id, DtRtiConnectionInfoDataPair &conn) const |
| | Finds connection information for the remote rtiexec based on its location (assistant and component ID)
|
| virtual bool | getRemoteForwarderConnInfo (const DtAssistantInfo &assistant, int id, DtRtiConnectionInfoDataPair &conn) const |
| | Finds connection information for the remote forwarder based on its location (assistant and component ID)
|
| virtual bool | getChosenConnectionAndConfiguration (DtRtiConnectionInfoDataPair &conn, DtRtiConfigurationInfoDataPair &config) |
| | Finds the currently chosen connection and configuration.
|
| virtual bool | getConnectionInfo (DtRtiConnectionInfoDataPair &conn) |
| | Finds and retrieves the full connection info and associated data for the connection.
|
| virtual bool | getConfigurationForConn (const DtRtiConnectionInfo &conn, DtRtiConfigurationInfoDataPair &config) |
| | Finds and retrieves the full connection info and associated data for the connection.
|
| virtual MAKRti::DtString | connectionName (const DtRtiConnectionInfo &conn) |
| | Returns the name for the given connection.
|
| virtual bool | isStillDefaultChosen () const |
| | Returns true if a connection file was not found and loaded when the cache was created and the user has not yet set (or unset) a chosen connection.
|
virtual const
DtRtiConnectionAndConfiguration & | connectionsAndConfigurations () |
| | Returns the current list of all connections and configurations.
|
| virtual void | addUserDefinedConnections (const DtRtiConnectionAndConfiguration &conns) |
| | Adds new user defined connections.
|
| virtual void | removeUserDeletedConnections (const DtRtiConnectionAndConfiguration &conns) |
| | Removes user deleted connections.
|
| virtual void | removeAllLocalRtiexecsForwarders () |
| | Remove all local rtiexecs and forwarders.
|
| virtual void | removeAllLocalLightweightConns () |
| | Remove all local lightweight connections.
|
| virtual bool | isConnConflicting (const DtRtiConnectionInfo &conn, MAKRti::DtString &reason) const |
| | If the given connection conflicts with any currently active connection, returns true, sets the name of the active conflicting connection, and sets a description of the reason for the conflict.
|
| void | saveConnections () |
| | Saves the connections to file.
|
| | DtAssistantMgr (DtBoost::shared_ptr< DtRtiAssistantServer > server, DtBoost::shared_ptr< DtRtiAssistantPeer > peer, DtAssistantSignalRouter &signalRouter) |
| | Constructor.
|
| virtual | ~DtAssistantMgr () |
| | Destructor.
|
| virtual void | initialize () |
| | Initializes this manager just prior to beginning assistant processing.
|
| virtual bool | dialogsVisible () const |
| | Determines if there are any visible dialogs for which this manager is responsible.
|
| virtual void | configWidget (DtAssistantConfigWidget **widget, QIcon &icon, QString &name, DtPreferencesPage &pageId) |
| | Retrieves a widget which will be placed in the configuration dialog for configuring user preferences.
|
| virtual void | updateConfigWidget () |
| | Forces the configuration widget to be updated.
|
| virtual void | processConfigWidgetAccept () |
| | Process the changes that were accepted in the configuration widget.
|
Protected Member Functions |
| virtual void | processInterfaceFound () |
| | Called by the callback function to process discovery of a new network interface.
|
| virtual void | heartbeatAssistant () |
| | Sends heartbeat messages for majority of assistant information.
|
| virtual void | heartbeatLightweightConnections () |
| | Sends heartbeat messages for all lightweight connections.
|
| virtual void | pruneStaleLightweightConns () |
| | Prune remote lightweight connections which have not been heartbeated since the last removal time.
|
| virtual void | pruneStaleAssistantsExecsFwrdrs () |
| | Prune remote assistants, rtiexecs, and forwarders which have not been heartbeated since the last removal time.
|
| virtual void | determineHeartbeatIntervals () |
| | From the list of known assistant peers and their respective heartbeat periods, calculate the heartbeat interval (half the shortest interval) for lightweight connection info and other information.
|
virtual
DtAssistantStateMap::iterator | findOrAddRemoteAssistant (const DtAssistantInfo &assistant) |
| | Finds the given state information for the given assistant, or adds the assistant if it is not yet present.
|
| virtual void | unverifyRtiexecsForwardersForAssistant (DtAssistantStateMap::iterator astntIter, DtRtiConnectionAndConfiguration &connsToRemove, DtRtiConnectionAndConfiguration &updatedConns) |
| | Unverify all rtiexecs and forwarders owned by this assistant (assumes iterator is valid).
|
| virtual void | unverifyListedRtiexecsForwardersForAssistant (const DtRtiConnectionAndConfiguration &removeList, DtAssistantStateMap::iterator astntIter, DtRtiConnectionAndConfiguration &connsToRemove, DtRtiConnectionAndConfiguration &updatedConns) |
| | Unverify all of the rtiexecs and forwarders in the given list from the stored list if they are owned by the given assistant (assumes iterator is valid).
|
| virtual void | addListedRtiexecsForwardersForAssistant (const DtRtiConnectionAndConfiguration &addList, DtAssistantStateMap::iterator astntIter, DtRtiConnectionAndConfiguration &connsToRemove, DtRtiConnectionAndConfiguration &updatedConns) |
| | Add all of the rtiexecs and forwarders in the given list to the stored list and assign ownership to the given assistant (assumes iterator is valid).
|
| virtual void | checkForConflictingConns (DtRtiConnectionAndConfiguration &updatedConns) |
| | Checks all connections with unknown or conflicting state to see if they are now conflicting.
|
| virtual void | removeConnections (const DtRtiConnectionAndConfiguration &connsToRemove) |
| | Removes the given connections from the connection list and emits necessary signals.
|
| virtual void | setInterfaceForPredefinedConns (const MAKRti::DtInetAddr &interfaceAddr) |
| | Sets the network interface address to be used for the predefined connections.
|
| void | startDialog (QDialog *dlg, bool inTaskbar, bool warningDialog) |
| | Sets up the given widget as a dialog.
|
| void | finishDialog (QDialog *dlg) |
| | Should be called prior to deleting any dialog started with startDialog.
|
| void | showDialog (QDialog *dlg) |
| | Shows the dialog.
|
| void | startMainWindow (QMainWindow *dlg) |
| | Sets up a main window dialog.
|
| void | finishMainWindow (QMainWindow *dlg) |
| | Should be called prior to deleting any dialog started with startMainWindow.
|
| void | showMainWindow (QMainWindow *dlg) |
| | Shows the dialog.
|
| void | showPopup (const MAKRti::DtString &text, int sourceCompId=-1, const MAKRti::DtString &advancedText=MAKRti::DtString::nullString()) |
| | Displays a popup message with the given text, advanced text, and name of the given source component.
|
| void | showPopup (const MAKRti::DtString &text, const MAKRti::DtString &source, const MAKRti::DtString &advancedText=MAKRti::DtString::nullString()) |
| | Displays a popup message with the given text, advanced text, and source name.
|
| void | displayNotification (const MAKRti::DtString &message, MAKRti::DtNotifyLevelType notifyLevel, int sourceCompId=-1) |
| | Displays and logs a notification from the given component.
|
| void | displayNotification (const MAKRti::DtString &message, MAKRti::DtNotifyLevelType notifyLevel, const MAKRti::DtString &source) |
| | Displays and logs notification with the given component name.
|
| void | logNotification (const MAKRti::DtString &message, MAKRti::DtNotifyLevelType notifyLevel, int sourceCompId=-1) |
| | Logs a notification from the given component, does not display.
|
| void | logNotification (const MAKRti::DtString &message, MAKRti::DtNotifyLevelType notifyLevel, const MAKRti::DtString &source) |
| | Logs a notification with the given component name, does not display.
|
Protected Attributes |
DtBoost::shared_ptr
< DtConnectionCache > | myConnectionCache |
| | The cached rtiexec and lightweight connections.
|
| bool | myAcceptRemoteCmds |
| | Whether or not remote commands are accepted.
|
| DtClock | myClock |
| | Clock for timeouts and periodic update messages.
|
| DtTime | myNextAssistantHeartbeatTime |
| | Time at which we will next send information on our own assistant and local rtiexecs, forwarders, and licenses.
|
| DtTime | myNextLightweightHeartbeatTime |
| | Time at which we will next send information on our own local lightweight connections.
|
| DtTime | myNextAssistantInfoRemovalTime |
| | Time at which we will next remove any un-heartbeated remote assistants, rtiexecs, and forwarders.
|
| DtTime | myNextLightweightRemovalTime |
| | Time at which we will next remove any un-heartbeated remote lightweight connections.
|
| unsigned int | myAssistantHeartbeatInterval |
| | Interval, in secs, at which we will send assistant info heartbeat msgs.
|
| unsigned int | myLightweightHeartbeatInterval |
| | Interval, in secs, at which we will send lightweight conn heartbeat msgs.
|
| unsigned int | myAssistantInfoRemovalPeriod |
| | Interval at which we will check for remote assistants, rtiexecs, and forwarders have not been heartbeated.
|
| unsigned int | myLightweightRemovalPeriod |
| | Interval at which we will check for remote lightweight connections that have not been heartbeated.
|
| MAKRti::DtString | myHostName |
| | Name of this host.
|
| DtRtiConnectionAndConfiguration | myRemovedLocalExecsAndFwrdrs |
| | Sets of removed local rtiexecs and forwarders.
|
| DtAssistantStateMap | myRemoteAssistantStates |
| | All known remote assistants and their current rtiexecs and forwarders.
|
| DtRtiConnectionAndConfiguration | myConnsAndConfigs |
| | All of the connections and configurations.
|
| bool | myStillDefaultChosen |
| | Indicates that the default chosen connection state is still in use (no connection file existed and user has not chosen or unchosen a connection to be used without prompting).
|
| bool | myPredefinedConnsNeedInterface |
| | If there was no network interface when the assistant started, the predefined connections will be invalid.
|
| MAKRti::DtInetAddr | myPotentialPredefinedConnsInterface |
| | A network interface to potentially use for the predefined connections, if it stays active long enough.
|
| DtTime | mySetPredefinedConnsInterfaceTime |
| | Time at which predefined connections should be set with the myPotentialPredefinedConnsInterface.
|
| MAKRti::DtString | myLogFileName |
| | The name of the log file.
|
DtBoost::shared_ptr
< DtRtiAssistantServer > | myServer |
| | The Assistant server from which new messages will arrive from local RTI components.
|
DtBoost::shared_ptr
< DtRtiAssistantPeer > | myPeer |
| | The Assistant peer which communicates with other Assistants.
|
| std::set< QDialog * > | myUnparentedDialogs |
| | All unparented dialogs that are created by the GUI should be added to this set.
|
| std::set< QMainWindow * > | myMainWindows |
| | All main windows that are created by the GUI should be added to this set.
|
| std::set< QDialog * > | myWarningDialogs |
| | Set of the popup dialogs, either parented or unparented, which, when active, should cause a warning icon to be displayed.
|
Maintains lists of known RTI connections.
This includes all lightweight and rtiexec, remote and local, active and inactive connections.