VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
stopFreezeInteractionHLA.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2016 MAK Technologies, Inc
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #pragma once
11 
12 #if DtHLA
13 
15 #include <vlpi/entityIdentifier.h>
16 #include <matrix/vlMath.h>
17 
18 class DtExerciseConn;
20 
22 typedef void (*DtStopFreezeInteractionCb)( DtStopFreezeInteraction* inter,
23  void* usr );
24 
28 class DT_DLL_VL DtStopFreezeInteraction : public DtInteractionWithEncDec
29 {
30 public:
31 
34  static DtInteraction* create();
35 
38 
41 
43  virtual ~DtStopFreezeInteraction();
44 
46  DtStopFreezeInteraction& operator = ( const DtStopFreezeInteraction& orig );
47 
49  virtual void printData() const;
50 
52  virtual void printDataToStream( std::ostream& stream ) const;
53 
55  virtual void setSenderId( const DtEntityIdentifier& id );
56  virtual const DtEntityIdentifier& senderId() const;
57 
59  virtual void setReceiverId( const DtEntityIdentifier& id );
60  virtual const DtEntityIdentifier& receiverId() const;
61 
63  virtual void setRealWorldTime( const DtTime time );
64  virtual DtTime realWorldTime() const;
65 
68  DtTimeStampType realWorldTimeType() const;
69  void setRealWorldTimeType( const DtTimeStampType type );
70 
72  virtual void setRequestId( int id );
73  virtual int requestId() const;
74 
76  virtual DtStopReason reason() const;
77  virtual void setReason( DtStopReason reason );
78 
80  virtual bool reflectWhenFrozen() const;
81  virtual void setReflectWhenFrozen( bool flag );
82 
84  virtual bool runClockWhenFrozen() const;
85  virtual void setRunClockWhenFrozen( bool flag );
86 
88  virtual bool updateWhenFrozen() const;
89  virtual void setUpdateWhenFrozen( bool flag );
90 
92  virtual const char* name() const;
93 
96  static void addCallback( DtExerciseConn* conn,
97  DtStopFreezeInteractionCb cb, void* usr,
98  DtDDMRegionSP region = DtDDMRegionSP() );
99  static void removeCallback( DtExerciseConn* conn,
100  DtStopFreezeInteractionCb cb, void* usr,
101  DtDDMRegionSP region = DtDDMRegionSP() );
102 
103 protected:
104 
105  DtEntityIdentifier myOrigEnt;
106  DtEntityIdentifier myReceiveEnt;
107  int myRequestId;
108  DtTime myRealTime;
109  DtTimeStampType myRealTimeType;
110  DtStopReason myReason;
111  bool myReflect;
112  bool myUpdate;
113  bool myRunClock;
114 
115 };
116 
117 #endif
Contains the DtEntityIdentifier class declaration.
DtInteraction is an base class for representing DIS PDUs which don&#39;t have state.
Definition: interactionDIS.h:24
Instances of DtExerciseConn are used to provide an application&#39;s interface or connection to the netwo...
Definition: exerciseConnDIS.h:62
#define DT_DLL_VL
Definition: vlMachineTypes.h:108
DtStopReason
Definition: disEnums.h:387
This file defines math constants and methods which may be useful in simulations.
Instances of DtEntityIdentifier are used as a unique ID for entities in DIS.
Definition: entityIdentifier.h:31
DtTimeStampType
Definition: vlTimeStampType.h:16
DtStopFreezePdu DtStopFreezeInteraction
Definition: stopFreezePdu.h:18
Instances of DtStopFreezePdu are used to send/receive stop/freeze PDUs.
Definition: stopFreezePdu.h:27

Document ID: Generated on Thu Sep 19 02:12:35 EDT 2024 from SVN revision 269601
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)