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
DtRtiMsgKind
Definition: rtiMsgKind.h:9
Definition: netRtiMsgHdr.h:23
!DtIFSPEC1516
Definition: fedTimeFactory.h:190
virtual void printData(DtLogicalTimeFactory *logicalTimeFactory) const
Network representation for the RTI change latency test mode message.
Definition: netChangeLatencyTestModeMsg.h:27
This file contains the declaration of DtNetChangeLatencyTestModeMsg.
Instances of DtConnectionMgr manage the communication objects that the RTI will use to either communi...
Definition: connectMgr.h:60
DtRtiMsg is the base class for messages between RTI components.
Definition: rtiMsg.h:45
DtHandle DtFederateHandle
Definition: internalTypes.h:29
void(* DtChangeLatencyTestModeCb)(const DtChangeLatencyTestModeMsg &inter, void *usr)
Definition: changeLatencyTestModeMsg.h:29
virtual DtRtiMsg * clone(bool copy=true) const =0
Return a copy/empty object of the same type as this.
virtual DtRtiMsgKind internalDtRtiMsgKind()=0
The DtChangeLatencyTestModeMsg defines a wrapper for the change latency test message used to command ...
Definition: changeLatencyTestModeMsg.h:35
#define DT_DLL_LRC
Definition: rtiMsConfig.h:126

Document ID: Generated on Thu May 11 15:55:32 EDT 2023 from SVN revision 254743
Copyright © 2005-2020 MAK Technologies Inc. All Rights Reserved (www.mak.com)