VR-Link API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
acknowledgeInteractionHLA.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1992-2010 VT MAK
3 ** All rights reserved.
4 *********************************************************************/
5 
6 
9 
10 #ifndef acknowledgeInteractionHLA_H_
11 #define acknowledgeInteractionHLA_H_
12 
13 #if DtHLA
14 
15 #include "interactionWithEncDec.h"
16 #include "hostStructs.h"
17 #include <matrix/vlMath.h>
18 
19 
20 
23 
24 
25 
28  void* usr);
29 
30 
35 {
36 public:
37 
40 
42  virtual ~DtAcknowledgeInteraction();
43 
46 
49 
51  virtual void printData() const;
52 
54  virtual void printDataToStream(std::ostream& stream) const;
55 
57  virtual void setSenderId(const DtEntityIdentifier& id);
58  virtual const DtEntityIdentifier& senderId() const;
59 
61  virtual void setReceiverId(const DtEntityIdentifier& id);
62  virtual const DtEntityIdentifier& receiverId() const;
63 
65  virtual void setAcknowledgeFlag(DtAcknowledgeFlag flag);
66  virtual DtAcknowledgeFlag acknowledgeFlag() const;
67 
69  virtual void setResponseFlag(DtResponseFlag flag);
70  virtual DtResponseFlag responseFlag() const;
71 
73  virtual void setRequestId(int id);
74  virtual int requestId() const;
75 
77  virtual const char* name() const;
78 
79 public:
80 
83  static DtInteraction* create();
84 
87  static void addCallback(DtExerciseConn* conn,
88  DtAcknowledgeInteractionCb cb, void* usr, DtDDMRegionSP region =
89  DtDDMRegionSP());
90  static void removeCallback(DtExerciseConn* conn,
91  DtAcknowledgeInteractionCb cb, void* usr, DtDDMRegionSP region =
92  DtDDMRegionSP());
93 
94 protected:
95 
101 };
102 
103 #endif
104 #endif
105 
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:58
DtInteractionWithEncDec & operator=(const DtInteractionWithEncDec &orig)
assignment operator
#define DT_DLL_VL
Definition: vlMachineTypes.h:108
DtAcknowledgeFlag myAckFlag
Definition: acknowledgeInteractionHLA.h:99
int myRequestId
Definition: acknowledgeInteractionHLA.h:98
DtEntityIdentifier myReceiveEnt
Definition: acknowledgeInteractionHLA.h:97
static void removeCallback(DtExerciseConn *conn, const std::set< DtString > *classes, DtReceiveInteractionCb cb, void *usr, DtDDMRegionSP region=DtDDMRegionSP())
DtResponseFlag
Definition: disEnums.h:402
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:348
virtual void printDataToStream(std::ostream &stream) const
Print the interaction&#39;s data to the stream.
Definition: interactionHLA.h:356
virtual const char * name() const =0
Name of the interaction. (Not necessarily the ClassName from the FOM.)
DtAcknowledgeFlag
Definition: disEnums.h:393
Instances of DtEntityIdentifier are used as a unique ID for entities in DIS.
Definition: entityIdentifier.h:31
static void addCallback(DtExerciseConn *conn, const std::set< DtString > *classes, DtReceiveInteractionCb cb, void *usr, DtDDMRegionSP region=DtDDMRegionSP())
Register/Deregister callback function cb with conn, on all interaction class name (char*) contained i...
Instances of DtAcknowledgeInteraction are used to represent Acknowledge Interactions in the RPR ROM...
Definition: acknowledgeInteractionHLA.h:34
DtBoost::shared_ptr< DtDDMRegion > DtDDMRegionSP
Definition: region13.h:31
This file is deprecated - Please see simulationAddress.h, entityIdentifier.h, entityType.h, burstDescriptor.h, and NetStructs.h.
DtResponseFlag myRespFlag
Definition: acknowledgeInteractionHLA.h:100
This file provides a declaration of the class DtInteractionWithEncDec.
void(* DtAcknowledgeInteractionCb)(DtAcknowledgeInteraction *inter, void *usr)
Acknowledge interaction callback function signature.
Definition: acknowledgeInteractionHLA.h:27
class DtInteractionWithEncDec:
Definition: interactionWithEncDec.h:44
DtEntityIdentifier myOrigEnt
Definition: acknowledgeInteractionHLA.h:96

Document ID: Generated on Tue Feb 2 21:02:17 EST 2021 from SVN revision 223668
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)