MAK RTIspy API Documentation for HLA 1516
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 
26 class DtAssistantShmExecCompInfoMsg;
34 
35 typedef std::map< int, DtBoost::shared_ptr<DtAssistantComponentInfo> > DtIdToComponentInfoMap;
36 
43 {
44  Q_OBJECT
45 
46 public:
47 
49  DtAssistantComponentMgr( DtBoost::shared_ptr<DtRtiAssistantServer> server,
50  DtBoost::shared_ptr<DtRtiAssistantPeer> peer,
51  DtAssistantSignalRouter& signalRouter );
52 
54  virtual ~DtAssistantComponentMgr();
55 
56 private:
57 
60 
63 
64 public:
65 
66 
69  virtual const DtAssistantComponentInfo* componentInfo( int compId ) const;
70 
72  virtual const DtIdToComponentInfoMap& components() const;
73 
75  virtual const DtIdToComponentInfoMap& rtiexecComponents() const;
76 
78  virtual const DtIdToComponentInfoMap& lrcComponents() const;
79 
81  virtual const DtIdToComponentInfoMap& forwarderComponents() const;
82 
84  virtual const DtIdToComponentInfoMap& webServerComponents() const;
85 
88  virtual const DtIdToComponentInfoMap& sharedMemComponents() const;
89 
91  virtual MAKRti::DtString printLocalComponentList() const;
92 
94  virtual MAKRti::DtString printFederationList(const DtAssistantExecStateMsg& msg);
95 
97  virtual MAKRti::DtString printRtiExecComponentsList(std::map<int, MAKRti::DtString>& data) const;
98 
100  virtual MAKRti::DtString printForwarderComponentsList(const std::map<int, MAKRti::DtString>& data) const;
101 
102 public slots:
103 
105  void updateComponent( int compId, const DtAssistantComponentInfo& comp );
106 
107 protected:
108 
111 
112 
113  static void processConnMsg(const DtAssistantConnMsg& msg, void* usr);
114 
116  virtual void processConnMsg(const DtAssistantConnMsg& msg);
117 
119  virtual void processNewConnMsg(const DtAssistantConnMsg& msg);
120 
122  virtual void processCloseConnMsg(const DtAssistantConnMsg& msg);
123 
125  static void processLrcCompInfoMsg(const DtAssistantLrcCompInfoMsg& msg, void* usr);
126 
128  virtual void processLrcCompInfoMsg(const DtAssistantLrcCompInfoMsg& msg);
129 
131  static void processRtiexecCompInfoMsg(const DtAssistantRtiexecCompInfoMsg& msg, void* usr);
132 
134  virtual void processRtiexecCompInfoMsg(const DtAssistantRtiexecCompInfoMsg& msg);
135 
137  static void processRtiForwarderCompInfoMsg(const DtAssistantRtiForwarderCompInfoMsg& msg, void* usr);
138 
140  virtual void processRtiForwarderCompInfoMsg(const DtAssistantRtiForwarderCompInfoMsg& msg);
141 
143  static void processWwwCompInfoMsg(const DtAssistantWwwCompInfoMsg& msg, void* usr);
144 
146  virtual void processWwwCompInfoMsg(const DtAssistantWwwCompInfoMsg& msg);
147 
149 
151  static void processSocketRemoval(int compId, const MAKRti::DtString& reason, void* usr);
152 
154  virtual void processSocketRemoval(int compId, const MAKRti::DtString& reason);
155 
156 signals:
157 
160 
161  void lrcComponentAdded( const DtAssistantComponentInfo* );
162  void rtiexecComponentAdded( const DtAssistantComponentInfo* );
163  void forwarderComponentAdded( const DtAssistantComponentInfo* );
164  void webServerComponentAdded( const DtAssistantComponentInfo* );
165  void sharedMemComponentAdded( const DtAssistantComponentInfo* );
167 
170 
171  void lrcComponentRemoved( const DtAssistantComponentInfo* );
172  void rtiexecComponentRemoved( const DtAssistantComponentInfo* );
173  void forwarderComponentRemoved( const DtAssistantComponentInfo* );
174  void webServerComponentRemoved( const DtAssistantComponentInfo* );
175  void sharedMemComponentRemoved( const DtAssistantComponentInfo* );
177 
180 
181  void lrcComponentRemovedUnexpectedly( const DtAssistantComponentInfo* );
182  void rtiexecComponentRemovedUnexpectedly( const DtAssistantComponentInfo* );
183  void forwarderComponentRemovedUnexpectedly( const DtAssistantComponentInfo* );
184  void webServerComponentRemovedUnexpectedly( const DtAssistantComponentInfo* );
185  void sharedMemComponentRemovedUnexpectedly( const DtAssistantComponentInfo* );
187 
190 
191  void lrcComponentRenamed( const DtAssistantComponentInfo* );
192  void rtiexecComponentRenamed( const DtAssistantComponentInfo* );
193  void forwarderComponentRenamed( const DtAssistantComponentInfo* );
194  void webServerComponentRenamed( const DtAssistantComponentInfo* );
195  void sharedMemComponentRenamed( const DtAssistantComponentInfo* );
197 
200 
201  void lrcComponentConnected( const DtAssistantComponentInfo* );
202  void rtiexecComponentConnected( const DtAssistantComponentInfo* );
203  void forwarderComponentConnected( const DtAssistantComponentInfo* );
205 
208 
209  void lrcComponentDisconnected( const DtAssistantComponentInfo* );
210  void rtiexecComponentDisconnected( const DtAssistantComponentInfo* );
211  void forwarderComponentDisconnected( const DtAssistantComponentInfo* );
213 
216 
217  void lrcComponentUpdated( const DtAssistantComponentInfo* );
218  void rtiexecComponentUpdated( const DtAssistantComponentInfo* );
219  void forwarderComponentUpdated( const DtAssistantComponentInfo* );
220  void webServerComponentUpdated( const DtAssistantComponentInfo* );
221  void sharedMemComponentUpdated( const DtAssistantComponentInfo* );
223 
225  void localFederateJoined( const DtAssistantComponentInfo*,
226  const MAKRti::DtString& federateType,
227  const MAKRti::DtString& federateName,
228  unsigned federateHandle,
229  const MAKRti::DtString& federationName,
230  unsigned federationHandle,
231  DtHlaVersionId hlaVersion );
232 
234  void localFederateResigned( const DtAssistantComponentInfo* );
235 
237  void forwarderHasRtiexec( const DtAssistantComponentInfo* );
238 
240  void forwarderHasNoRtiexec( const DtAssistantComponentInfo* );
241 
242 protected:
243 
246 
248 
250 
252 
254 
256 
259 
261  DtClock myClock;
262 };
263 
264 #endif

Document ID: Generated on Tue May 7 16:26:47 EDT 2013 from SVN revision 126903
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)