MAK RTIspy API Documentation for HLA 1516
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
componentMgr.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2009 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: componentMgr.h,v $ $Revision: 1.16 $ $State: Exp $
7 *********************************************************************/
8 
9 #ifndef componentMgr_H_
10 #define componentMgr_H_
11 
14 
15 #include "rtiMsConfig.h"
16 #include "assistantMgr.h"
20 #include "assistantConnMsg.h"
21 #include <rtiVersion.h>
22 #include <vlutil/vlTime.h>
23 
30 
31 typedef std::map< int, std::shared_ptr<DtAssistantComponentInfo> > DtIdToComponentInfoMap;
32 
39 {
40  Q_OBJECT
41 
42 public:
43 
45  DtAssistantComponentMgr( std::shared_ptr<DtRtiAssistantServer> server,
46  std::shared_ptr<DtRtiAssistantPeer> peer,
47  DtAssistantSignalRouter& signalRouter );
48 
50  virtual ~DtAssistantComponentMgr();
51 
52 private:
53 
56 
59 
60 public:
61 
62 
65  virtual const DtAssistantComponentInfo* componentInfo( int compId ) const;
66 
68  virtual const DtIdToComponentInfoMap& components() const;
69 
71  virtual const DtIdToComponentInfoMap& rtiexecComponents() const;
72 
74  virtual const DtIdToComponentInfoMap& lrcComponents() const;
75 
77  virtual const DtIdToComponentInfoMap& forwarderComponents() const;
78 
81  virtual const DtIdToComponentInfoMap& sharedMemComponents() const;
82 
84  virtual MAKRti::DtString printLocalComponentList() const;
85 
87  virtual MAKRti::DtString printFederationList(const DtAssistantExecStateMsg& msg);
88 
90  virtual MAKRti::DtString printRtiExecComponentsList(std::map<int, MAKRti::DtString>& data) const;
91 
93  virtual MAKRti::DtString printForwarderComponentsList(const std::map<int, MAKRti::DtString>& data) const;
94 
95 public slots:
96 
98  virtual void updateComponent( int compId, const DtAssistantComponentInfo& comp );
99 
100 protected:
101 
104 
105  static void processConnMsg(const DtAssistantConnMsg& msg, void* usr);
107 
109  virtual void processConnMsg(const DtAssistantConnMsg& msg);
110 
112  virtual void processNewConnMsg(const DtAssistantConnMsg& msg);
113 
115  virtual void processCloseConnMsg(const DtAssistantConnMsg& msg);
116 
118  static void processLrcCompInfoMsg(const DtAssistantLrcCompInfoMsg& msg, void* usr);
119 
121  virtual void processLrcCompInfoMsg(const DtAssistantLrcCompInfoMsg& msg);
122 
124  static void processRtiexecCompInfoMsg(const DtAssistantRtiexecCompInfoMsg& msg, void* usr);
125 
127  virtual void processRtiexecCompInfoMsg(const DtAssistantRtiexecCompInfoMsg& msg);
128 
130  static void processRtiForwarderCompInfoMsg(const DtAssistantRtiForwarderCompInfoMsg& msg, void* usr);
131 
133  virtual void processRtiForwarderCompInfoMsg(const DtAssistantRtiForwarderCompInfoMsg& msg);
134 
136 
138  static void processSocketRemoval(int compId, const MAKRti::DtString& reason, void* usr);
139 
141  virtual void processSocketRemoval(int compId, const MAKRti::DtString& reason);
142 
143 signals:
144 
147 
148  void lrcComponentAdded( const DtAssistantComponentInfo* );
149  void rtiexecComponentAdded( const DtAssistantComponentInfo* );
150  void forwarderComponentAdded( const DtAssistantComponentInfo* );
151  void sharedMemComponentAdded( const DtAssistantComponentInfo* );
153 
156 
157  void lrcComponentRemoved( const DtAssistantComponentInfo* );
158  void rtiexecComponentRemoved( const DtAssistantComponentInfo* );
159  void forwarderComponentRemoved( const DtAssistantComponentInfo* );
160  void sharedMemComponentRemoved( const DtAssistantComponentInfo* );
162 
165 
166  void lrcComponentRemovedUnexpectedly( const DtAssistantComponentInfo* );
167  void rtiexecComponentRemovedUnexpectedly( const DtAssistantComponentInfo* );
168  void forwarderComponentRemovedUnexpectedly( const DtAssistantComponentInfo* );
169  void sharedMemComponentRemovedUnexpectedly( const DtAssistantComponentInfo* );
171 
174 
175  void lrcComponentRenamed( const DtAssistantComponentInfo* );
176  void rtiexecComponentRenamed( const DtAssistantComponentInfo* );
177  void forwarderComponentRenamed( const DtAssistantComponentInfo* );
178  void sharedMemComponentRenamed( const DtAssistantComponentInfo* );
180 
183 
184  void lrcComponentConnected( const DtAssistantComponentInfo* );
185  void rtiexecComponentConnected( const DtAssistantComponentInfo* );
186  void forwarderComponentConnected( const DtAssistantComponentInfo* );
188 
191 
192  void lrcComponentDisconnected( const DtAssistantComponentInfo* );
193  void rtiexecComponentDisconnected( const DtAssistantComponentInfo* );
194  void forwarderComponentDisconnected( const DtAssistantComponentInfo* );
196 
199 
200  void lrcComponentUpdated( const DtAssistantComponentInfo* );
201  void rtiexecComponentUpdated( const DtAssistantComponentInfo* );
202  void forwarderComponentUpdated( const DtAssistantComponentInfo* );
203  void sharedMemComponentUpdated( const DtAssistantComponentInfo* );
205 
208  void recoverConnection(const DtRtiConnectionInfo& connInfo, DtRtiConnectionInfo& recoveredConn);
209 
211  void localFederateJoined( const DtAssistantComponentInfo*,
212  const MAKRti::DtString& federateType,
213  const MAKRti::DtString& federateName,
214  unsigned federateHandle,
215  const MAKRti::DtString& federationName,
216  unsigned federationHandle,
217  DtHlaVersionId hlaVersion );
218 
220  void localFederateResigned( const DtAssistantComponentInfo* );
221 
223  void forwarderHasRtiexec( const DtAssistantComponentInfo* );
224 
226  void forwarderHasNoRtiexec( const DtAssistantComponentInfo* );
227 protected:
228 
231 
233 
235 
237 
239 
242 
244  DtClock myClock;
245 };
246 
247 #endif
The DtAssistantExecStateMsg defines a wrapper for the RTI Assistant federation state message sent to ...
Definition: assistantExecStateMsg.h:34
DtIdToComponentInfoMap myForwarderComponentsById
Map containing the information on all connected components indexed by component ID.
Definition: componentMgr.h:238
Contains the DtRtiConnectionAndConfiguration class declaration.
At startup all of the assistant manager classes will register their signals and slots with the signal...
Definition: assistantSignalRouter.h:29
This file contains the declaration of DtRtiConnectionInfo.
Contains the DtRtiConnectionConfigurationInfo class declaration.
The DtAssistantLrcCompInfoMsg defines a wrapper for the RTI Assistant component information message u...
Definition: assistantLrcCompInfoMsg.h:40
DtHlaVersionId
Definition: rtiVersion.h:50
DtIdToComponentInfoMap myRtiExecComponentsById
Map containing the information on all connected components indexed by component ID.
Definition: componentMgr.h:234
DtIdToComponentInfoMap mySharedMemComponentsById
Map containing the information on all connected components indexed by component ID.
Definition: componentMgr.h:240
Stores information on any RTI components.
Definition: compInfo.h:25
Base class for all classes which perform management activities for the Assistant. ...
Definition: assistantMgr.h:31
This file contains the declaration of DtAssistantMgr.
DtAssistantMgr & operator=(DtAssistantMgr const &)
Assignment not implemented – Assignment Not Allowed!
This file contains the declaration of DtAssistantConnMsg.
The DtAssistantRtiForwarderCompInfoMsg defines a wrapper for the RTI Assistant component information ...
Definition: assistantRtiForwarderCompInfoMsg.h:36
#define DT_DLL_ASSISTANTAPP
Definition: rtiMsConfig.h:151
The DtAssistantConnMsg defines a wrapper for the RTI Assistant connection information message used to...
Definition: assistantConnMsg.h:30
DtIdToComponentInfoMap myComponentsById
Map containing the information on all connected components indexed by component ID.
Definition: componentMgr.h:232
The DtAssistantRtiexecCompInfoMsg defines a wrapper for the RTI Assistant component information messa...
Definition: assistantRtiexecCompInfoMsg.h:39
std::map< int, std::shared_ptr< DtAssistantComponentInfo > > DtIdToComponentInfoMap
Definition: componentMgr.h:29
Processes information on each local RTI component that is connected to this Assistant.
Definition: componentMgr.h:38
DtIdToComponentInfoMap myLrcComponentsById
Map containing the information on all connected components indexed by component ID.
Definition: componentMgr.h:236
Stores the information on an RTI connection known by the Assistant.
Definition: assistantConnectionInfo.h:36
DtClock myClock
The clock.
Definition: componentMgr.h:244

Document ID: Generated on Sun Jul 20 16:15:30 EDT 2025 from SVN revision 277985
Copyright © 2005-2025 MAK Technologies Inc. All Rights Reserved (www.mak.com)