MAK RTIspy API Documentation for HLA 1516
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
assistant.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2016 VT MAK
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include "rtiMsConfig.h"
13 #include "assistantShutdownMsg.h"
14 #include "assistantCommandMsg.h"
15 #include "assistantShowDialogMsg.h"
16 #include "rtiUtil.h"
17 #include "assistantSignalRouter.h"
18 #include <vlutil/vlSmartPointers.h>
19 
21 class DtRtiAssistantPeer;
23 class DtAssistantMgr;
37 class DtRidConfigViewMgr;
44 class QApplication;
45 class QTimer;
46 
54 {
55 public:
56 
58  DtRtiAssistant( int& argc, char** argv, bool autoExit,
61  bool disableMulticast = false );
62 
64  virtual ~DtRtiAssistant();
65 
67  static void tick( void* usr );
68  void tick();
69 
70 protected:
71 
75  virtual void initializeAssistantServer( int& argc, char**argv,
77 
81  virtual bool processCommands( DtAssistantShowDialogMsg::DtAssistantShowDialogEnum showDialog,
83 
89  virtual bool showDialogOnConnectedAssistant(DtAssistantShowDialogMsg::DtAssistantShowDialogEnum dialog);
90 
95  virtual void sendShutdownToConnectedAssistant(DtAssistantShutdownMsg::DtShutdownEnum shouldShutDown);
96 
101  virtual bool connectToAssistant();
102 
105 
107  static void processAssistantShutdownMsg( const DtAssistantShutdownMsg& msg, void* usr );
108 
110  virtual void processAssistantShutdownMsg( const DtAssistantShutdownMsg& msg );
111 
113 
115  static void processShutdown( void* usr );
116 
118  virtual void processShutdown( bool shouldConfirm );
119 
120 private:
121 
123  DtRtiAssistant( const DtRtiAssistant& );
124 
126  DtRtiAssistant& operator = ( const DtRtiAssistant& );
127 
128 protected:
129 
130  typedef std::vector<DtAssistantMgr*> DtAssistantMgrVector;
131 
133  std::shared_ptr<DtRtiAssistantServer> myServer;
134 
136  std::shared_ptr<DtRtiAssistantPeer> myPeer;
137 
139  QApplication* myQApp;
140 
143 
146  std::shared_ptr<DtAssistantComponentMgr> myCompMgr;
147 
150  std::shared_ptr<DtAssistantPreferencesInfoMgr> myPrefMgr;
151 
154  std::shared_ptr<DtAssistantRidConfigInfoMgr> myRidInfoMgr;
155 
158  std::shared_ptr<DtAssistantConnectionInfoMgr> myConnInfoMgr;
159 
162  std::shared_ptr<DtAssistantFederationsInfoMgr> myFederationInfoMgr;
163 
166  std::shared_ptr<DtAssistantForwarderCompInfoMgr> myForwarderInfoMgr;
167 
169  std::shared_ptr<DtAssistantTrayIconMgr> myTrayIconMgr;
170 
172  std::shared_ptr<DtAssistantLogFileMgr> myLogFileMgr;
173 
175  std::shared_ptr<DtAssistantPopupMsgMgr> myPopupMgr;
176 
179  std::shared_ptr<DtAssistantConnQueryMgr> myConnQueryMgr;
180 
183  std::shared_ptr<DtAssistantLicenseQueryMgr> myLicQueryMgr;
184 
187  std::shared_ptr<DtAssistantLatencyTestMgr> myLatTestMgr;
188 
191  std::shared_ptr<DtAssistantPreferencesViewMgr> myPrefViewMgr;
192 
195  std::shared_ptr<DtRidConfigViewMgr> myRidConfigViewMgr;
196 
199  std::shared_ptr<DtAssistantFederationsViewMgr> myFederationsViewMgr;
200 
203  std::shared_ptr<DtAssistantFederateViewMgr> myFederateViewMgr;
204 
207  std::shared_ptr<DtAssistantFomViewMgr> myFomViewMgr;
208 
210  std::shared_ptr<DtRemoteAssistantViewMgr> myRemoteAssistantViewMgr;
211 
214  std::shared_ptr<DtRemoteAssistantInfoMgr> myRemoteAssistantInfoMgr;
215 
217 
220 
223 
226 
228  QTimer* myTickTimer;
229 
232 
235 
239 
242 
244  DtTime myExitTime;
245 
247  DtClock myClock;
248 
250  std::shared_ptr< DtFilePrinter > myLogPrinter;
251 
253  MAKRti::DtString myAssistantLogName;
254 
257 
258 };
Compiles network component information from RTI Forwarders.
Definition: networkCompInfoMgr.h:37
std::shared_ptr< DtAssistantFederationsInfoMgr > myFederationInfoMgr
The Assistant federation information manager, which maintains the current state of all known federati...
Definition: assistant.h:162
The DtAssistantShutdownMsg defines a wrapper for the messages sent to and from the Assistant to query...
Definition: assistantShutdownMsg.h:32
DtSignalToCallbackMapper * myTickSignalMapper
Maps tick signals to the tick callback function.
Definition: assistant.h:225
Maps a single Qt signal to any number of callbacks for non-Qt classes.
Definition: sigToCbMapper.h:25
std::shared_ptr< DtAssistantFederationsViewMgr > myFederationsViewMgr
The Assistant federations view manager, which is responsible for displaying federation and network in...
Definition: assistant.h:199
DtClock myClock
Clock for timeouts.
Definition: assistant.h:247
std::shared_ptr< DtAssistantPreferencesViewMgr > myPrefViewMgr
The Assistant preferences view manager, which manages the preferences dialog to display and update us...
Definition: assistant.h:191
std::shared_ptr< DtRtiAssistantServer > myServer
The Assistant server from which new messages will arrive.
Definition: assistant.h:133
Definition: assistantShowDialogMsg.h:39
std::shared_ptr< DtAssistantComponentMgr > myCompMgr
The Assistant component manager, which maintains information on all attached local RTI components...
Definition: assistant.h:146
std::shared_ptr< DtAssistantConnQueryMgr > myConnQueryMgr
The Assistant connection query manager, which processes queries for connection info from connecting c...
Definition: assistant.h:179
At startup all of the assistant manager classes will register their signals and slots with the signal...
Definition: assistantSignalRouter.h:29
Sets up RID configuration page for the assistant.
Definition: remoteAssistantViewMgr.h:22
std::shared_ptr< DtAssistantConnectionInfoMgr > myConnInfoMgr
The Assistant connection information manager, which maintains a list of all known connection configur...
Definition: assistant.h:158
DtTime myExitTime
Time at which Assistant should be closed due to loss of all connections.
Definition: assistant.h:244
DtShutdownEnum
Definition: assistantShutdownMsg.h:37
std::shared_ptr< DtAssistantLicenseQueryMgr > myLicQueryMgr
The Assistant license query manager, which processes queries for license server info from connecting ...
Definition: assistant.h:183
QApplication * myQApp
The Qt Application for the Assistant.
Definition: assistant.h:139
std::shared_ptr< DtAssistantFederateViewMgr > myFederateViewMgr
The Assistant federate info view manager, which is responsible for displaying federate information in...
Definition: assistant.h:203
This file contains the declaration of DtAssistantShowDialogMsg.
int myClientPortNumber
Port the RTI Assistant client should use to communicate.
Definition: assistant.h:234
QTimer * myTickTimer
Timer which causes tick to occur.
Definition: assistant.h:228
DtAssistantSignalRouter mySignalRouter
The signal router between all of the assistant managers.
Definition: assistant.h:256
bool myShutdownInProgress
Indicates that a user requested shutdown is currently in progress.
Definition: assistant.h:241
Populates and displays the Fom dialog.
Definition: fomViewMgr.h:42
Populates and displays the Federate Statistics dialog.
Definition: federateViewMgr.h:47
std::shared_ptr< DtAssistantRidConfigInfoMgr > myRidInfoMgr
The Assistant RID Configuration info manager.
Definition: assistant.h:154
std::shared_ptr< DtFilePrinter > myLogPrinter
Assistant printer.
Definition: assistant.h:250
std::shared_ptr< DtAssistantForwarderCompInfoMgr > myForwarderInfoMgr
The Assistant forwarder component information manager, which maintains the current state of all known...
Definition: assistant.h:166
Responsible for maintaining the console dialogs to display log files for local RTI components...
Definition: logFileMgr.h:33
std::shared_ptr< DtAssistantLogFileMgr > myLogFileMgr
The Assistant tray icon manager, which manages the icon and its menu.
Definition: assistant.h:172
Base class for all classes which perform management activities for the Assistant. ...
Definition: assistantMgr.h:31
The client connection to the RTI Assistant for an LRC.
Definition: rtiAssistantToAssistantClient.h:30
DtAssistantShowDialogEnum
Definition: assistantShowDialogMsg.h:37
DtRtiAssistantPeer manages the sharing of information between one Assistant to other Assistants using...
Definition: rtiAssistantPeer.h:82
Maintains lists of known RTI connections.
Definition: connInfoMgr.h:49
DtSignalToCallbackMapper * myShutdownSignalMapper
Maps shutdown signals to the shutdown callback function.
Definition: assistant.h:222
Manages the server connections of the RTI Assistant.
Definition: rtiAssistantServer.h:45
Compiles federation information from rtiexecs and LRCs.
Definition: federationsInfoMgr.h:50
Maintains list of known RTI license servers and processes license queries from RTI components...
Definition: licenseQueryMgr.h:35
Definition: assistantShutdownMsg.h:39
std::shared_ptr< DtAssistantPopupMsgMgr > myPopupMgr
The Assistant popup message manager, which display popup dialogs.
Definition: assistant.h:175
std::shared_ptr< DtRtiAssistantPeer > myPeer
The Assistant peer which communicates with other Assistants.
Definition: assistant.h:136
Maintains lists of known RTI connections.
Definition: ridConfigInfoMgr.h:23
std::shared_ptr< DtAssistantTrayIconMgr > myTrayIconMgr
The Assistant tray icon manager, which manages the icon and its menu.
Definition: assistant.h:169
Compiles federation information from rtiForwarders and displays federation view dialogs.
Definition: federationsViewMgr.h:47
std::shared_ptr< DtRemoteAssistantInfoMgr > myRemoteAssistantInfoMgr
The Remote Assistant Info Manager.
Definition: assistant.h:214
std::shared_ptr< DtRemoteAssistantViewMgr > myRemoteAssistantViewMgr
The Remote Assistant View.
Definition: assistant.h:210
bool myAutoExit
Indicates whether or not the Assistant should exit when the last connection has closed.
Definition: assistant.h:238
std::shared_ptr< DtRidConfigViewMgr > myRidConfigViewMgr
The RID config view manager, which manages the RID Config Dialog for displaying and updating RID Sett...
Definition: assistant.h:195
This file contains the declaration of DtAssistantCommandMsg.
Manages assistant to assistant connections.
Definition: remoteAssistantInfoMgr.h:29
This file is responsible for connecting the signals and slots of the various assistant manager classe...
Manages the current assistant preferences and displays the preferences dialog when required...
Definition: preferencesInfoMgr.h:42
#define DT_DLL_ASSISTANTAPP
Definition: rtiMsConfig.h:151
Sets up RID configuration page for the assistant.
Definition: ridConfigViewMgr.h:26
std::shared_ptr< DtAssistantPreferencesInfoMgr > myPrefMgr
The Assistant preferences manager, which maintains the current settings for all user configurable Ass...
Definition: assistant.h:150
std::vector< DtAssistantMgr * > DtAssistantMgrVector
Definition: assistant.h:130
Maintains list of known RTI connections and processes connection queries from RTI components...
Definition: connQueryMgr.h:37
MAKRti::DtString myAssistantLogName
Assistant log name.
Definition: assistant.h:253
Coordinates Assistant activities.
Definition: assistant.h:53
int myServerPortNumber
Port the RTIAssistant server should bind to.
Definition: assistant.h:231
Processes popup messages from RTI components.
Definition: popupMsgMgr.h:29
std::shared_ptr< DtAssistantLatencyTestMgr > myLatTestMgr
The Assistant latency test manager, which initiates and reports results of federate latency tests...
Definition: assistant.h:187
Handles activities related to running latency tests and reporting results.
Definition: latencyTestMgr.h:34
DtAssistantMgrVector myManagers
List of all managers.
Definition: assistant.h:219
Processes information on each local RTI component that is connected to this Assistant.
Definition: componentMgr.h:38
Responsible for maintaining the assistant tray icon, its menu, and the notifications displayed by it...
Definition: trayIconMgr.h:42
std::shared_ptr< DtAssistantFomViewMgr > myFomViewMgr
The Assistant FOM view manager, which is responsible for displaying FOM information in the Federate F...
Definition: assistant.h:207
This file contains the declaration of DtAssistantShutdownMsg.
Manages the current assistant preferences and displays the preferences dialog when required...
Definition: preferencesViewMgr.h:43

Document ID: Generated on Wed Jul 8 16:20:32 EDT 2026 from SVN revision 291616
Copyright © 2005-2025 MAK Technologies Inc. All Rights Reserved (www.mak.com)