MAK RTIspy API Documentation for HLA 1516
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
changeLatencyTestModeMsg.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2008 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: changeLatencyTestModeMsg.h,v $ $Revision: 1.3 $ $State: Exp $
7 *********************************************************************/
8 
9 #ifndef DtChangeLatencyTestModeMsg_H_
10 #define DtChangeLatencyTestModeMsg_H_
11 
15 
16 // PLEASE NOTE: This class is duplicated as DtAssistantChangeLatencyTestModeMsg
17 // in assistantChangeLatencyTestModeMsg.h. Any changes made to this class
18 // should also be made there.
19 
20 #include <vlutil/vlString.h>
21 #include <vlutil/vlUtil.h>
22 
23 #include "rtiMsg.h"
25 
26 class DtConnectionMgr;
28 
29 typedef void (*DtChangeLatencyTestModeCb)(const DtChangeLatencyTestModeMsg& inter, void* usr);
30 
36 {
37 public:
38 
40  DtChangeLatencyTestModeMsg(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
41 
43  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
44 
46  DtChangeLatencyTestModeMsg( bool continuous,
47  bool shouldHalt,
48  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER );
49 
51  virtual ~DtChangeLatencyTestModeMsg();
52 
54  virtual DtRtiMsg* clone(bool copy = true) const;
55 
57  virtual void printData(DtLogicalTimeFactory* logicalTimeFactory) const;
58 
60  virtual bool runTest() const;
61  virtual void setRunTest( bool yesNo );
62 
64  virtual DtFederateHandle initiator() const;
65  virtual void setInitiator( DtFederateHandle handle );
66 
68  virtual bool continuousUpdate() const;
69  virtual void setContinuousUpdate(bool yesNo);
70 
73  virtual bool shouldHaltContinuous() const;
74  virtual void setShouldHaltContinuous( bool yesNo );
75 
77  virtual bool observingResults() const;
78  virtual void setObservingResults( bool yesNo );
79 
81  virtual unsigned int interactionPeriod() const;
82  virtual void setInteractionPeriod( unsigned int period );
83 
85  virtual unsigned int numInteractions() const;
86  virtual void setNumInteractions( unsigned int num );
87 
89  virtual unsigned int payloadBytes() const;
90  virtual void setPayloadBytes( unsigned int bytes );
91 
92 
93 public:
94 
96  static DtRtiMsg* create(const DtNetMsgHeader* initial,
97  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
98 
99  static DtRtiMsg* create(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
100 
103  static void addCallback(DtConnectionMgr* conn,
104  DtChangeLatencyTestModeCb cb, void* usr);
105  static void removeCallback(DtConnectionMgr* conn,
106  DtChangeLatencyTestModeCb cb, void* usr);
107 
108 protected:
109 
111  virtual DtNetChangeLatencyTestModeMsg* netChangeLatencyTestModeMsg();
112  virtual const DtNetChangeLatencyTestModeMsg* netChangeLatencyTestModeMsg() const;
113 
116 
118  virtual int minSize() const;
119 
120 };
121 
122 #endif

Document ID: Generated on Wed Mar 11 20:26:49 EDT 2015 from SVN revision 150939
Copyright © 2005-2015 VT MÄK Inc. All Rights Reserved (www.mak.com)