VR-Link API Documentation for HLA 1.3
 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) 1992-2025 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 
23  void* usr );
24 
29 {
30 public:
31 
34  static DtInteraction* create();
35 
38 
41 
43  virtual ~DtStopFreezeInteraction();
44 
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 
111  bool myReflect;
112  bool myUpdate;
114 
115 };
116 
117 #endif
Contains the DtEntityIdentifier class declaration.
DtInteraction is an abstract base class for representing HLA interactions (or events) (as opposed to ...
Definition: interactionHLA.h:33
Instances of DtExerciseConn are used to provide an application&#39;s interface or connection to the netwo...
Definition: exerciseConnHLA.h:61
DtInteractionWithEncDec & operator=(const DtInteractionWithEncDec &orig)
assignment operator
#define DT_DLL_VL
Definition: vlMachineTypes.h:108
bool myReflect
Definition: stopFreezeInteractionHLA.h:111
DtStopReason
Definition: disEnums.h:387
DtTimeStampType myRealTimeType
Definition: stopFreezeInteractionHLA.h:109
static void removeCallback(DtExerciseConn *conn, const std::vector< DtString > *classes, DtReceiveInteractionCb cb, void *usr, DtDDMRegionSP region=DtDDMRegionSP())
This file defines math constants and methods which may be useful in simulations.
virtual void printData() const
Print the interaction&#39;s data to DtInfo.
Definition: interactionHLA.h:358
DtEntityIdentifier myReceiveEnt
Definition: stopFreezeInteractionHLA.h:106
virtual void printDataToStream(std::ostream &stream) const
Print the interaction&#39;s data to the stream.
Definition: interactionHLA.h:366
virtual const char * name() const =0
Name of the interaction. (Not necessarily the ClassName from the FOM.)
std::shared_ptr< DtDDMRegion > DtDDMRegionSP
Definition: region13.h:31
DtTime myRealTime
Definition: stopFreezeInteractionHLA.h:108
Instances of DtStopFreezeInteraction are used to represent StopFreeze Interactions in the RPR ROM...
Definition: stopFreezeInteractionHLA.h:28
static void addCallback(DtExerciseConn *conn, const std::vector< DtString > *classes, DtReceiveInteractionCb cb, void *usr, DtDDMRegionSP region=DtDDMRegionSP())
Register/Deregister callback function cb with conn, on all interaction class name (char*) contained i...
DtStopReason myReason
Definition: stopFreezeInteractionHLA.h:110
Instances of DtEntityIdentifier are used as a unique ID for entities in DIS.
Definition: entityIdentifier.h:31
void(* DtStopFreezeInteractionCb)(DtStopFreezeInteraction *inter, void *usr)
StopFreeze interaction callback function signature.
Definition: stopFreezeInteractionHLA.h:22
bool myRunClock
Definition: stopFreezeInteractionHLA.h:113
This file provides a declaration of the class DtInteractionWithEncDec.
class DtInteractionWithEncDec:
Definition: interactionWithEncDec.h:44
DtTimeStampType
Definition: vlTimeStampType.h:16
DtEntityIdentifier myOrigEnt
Definition: stopFreezeInteractionHLA.h:105
int myRequestId
Definition: stopFreezeInteractionHLA.h:107
bool myUpdate
Definition: stopFreezeInteractionHLA.h:112

Document ID: Generated on Thu Oct 16 00:12:25 EDT 2025 from SVN revision 280738
Copyright © 1992-2025 MAK Technologies. All Rights Reserved (www.mak.com)