VR-Link API Documentation for HLA Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
aggregatePublisherDIS.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1992-2025 MAK Technologies, Inc
3 ** All rights reserved.
4 *********************************************************************/
5 #pragma once
6 #if DtDIS
10 
11 
13 #include "objectPublisherDIS.h"
14 #include "aggregateStateEncoder.h"
15 #include "aggregateStateDecoder.h"
16 #include "relativeLocationPdu.h"
17 
19 
24 {
25 public:
26 
29  typedef DtAggregateStateRepository* (*DtStateRepCreator)();
30 
33  DtAggregateStateRepository *stateRepToUse,
34  DtExerciseConn* conn,
35  const DtObjectId& id = DtObjectId::nullId());
36 
39  DtExerciseConn* conn,
40  const DtObjectId& id = DtObjectId::nullId());
41 
45  const DtEntityType& type,
46  DtExerciseConn* conn,
47  const DtObjectId& id = DtObjectId::defaultId());
48 
52  const DtEntityType& type,
53  DtExerciseConn* conn,
54  DtDeadReckonTypes algorithm,
55  DtForceType forceId,
56  const DtObjectId& id = DtObjectId::defaultId());
57 
59  virtual ~DtAggregatePublisher();
60 
62  virtual bool tick();
63 
65  virtual void forceUpdate();
66 
68  virtual DtAggregateStateRepository* aggregateStateRep();
69 
71  virtual DtAggregateStateRepository* asr();
72 
74  virtual const DtObjectId& id() const;
75 
77  virtual const DtObjectId& localId() const;
78 
80  virtual const DtGlobalObjectDesignator& globalId() const;
81 
83  DtTime entityTypeHeartbeat(int type, int domain);
84 
85 public:
86 
88  static void setStateRepCreator(DtStateRepCreator creator);
89  static DtStateRepCreator setStateRepCreator(void);
90 
91  static void setClassDfltTimeThreshold(DtTime threshold);
92  static void setStationaryDfltTimeThreshold(DtTime threshold);
93  static void setEntityTypeDfltTimeThreshold(int type, int domain, DtTime threshold);
94 
95 protected:
96 
98  void init(const DtEntityIdentifier& vehId);
99 
102 
105 
106 protected:
107 
108  DtObjectId myId;
109  DtAggregateStateDecoder* myAggregateDecoder;
110  DtAggregateStateEncoder* myAggregateEncoder;
111  DtRelativeLocationPdu myLastSentRelLocPdu;
112  DtTime myLastSentRelLocPduTime;
113 
114 protected:
115  static DtStateRepCreator theStateRepCreator;
116  static DtTime theClassDfltTimeThreshold;
117  static bool theClassDfltIsSetFlag;
118  static DtTime theStationaryDfltTimeThreshold;
119  static bool theStationaryDfltIsSetFlag;
120  static std::map<std::pair<int,int>,DtTime> theEntityTypeHeartbeat;
121 };
122 
123 
125 {
126  return static_cast<DtAggregateStateRepository*>(myStateRep);
127 }
128 
129 inline const DtObjectId& DtAggregatePublisher::localId() const
130 {
131  return id();
132 }
133 
134 
135 #endif
136 
DtStateRepository * myStateRep
Definition: objectPublisherHLA.h:221
Instances of DtExerciseConn are used to provide an application&#39;s interface or connection to the netwo...
Definition: exerciseConnHLA.h:61
#define DT_DLL_VL
Definition: vlMachineTypes.h:108
static const DtObjectId & defaultId()
Instances of DtObjectPublisher are used for local or source simulations of objects, (i.e.
Definition: objectPublisherHLA.h:34
Instances of DtAggregatePublisher are used for local or source simulations of aggregate entities...
Definition: aggregatePublisherHLA.h:27
virtual bool tick()
Tick (update) this object.
virtual DtAggregateStateRepository * asr()
Synonym for aggregateStateRep().
Definition: aggregatePublisherHLA.h:130
virtual const DtGlobalObjectDesignator & globalId() const
Get the HLA object&#39;s global object designator - the object name in RTI1.3.3, but the objectId in RTI1...
virtual void forceUpdate()
Specify a set of attributes that should be included in the ahvps the next time tick is called...
Instances of DtEntityIdentifier are used as a unique ID for entities in DIS.
Definition: entityIdentifier.h:31
DtObjectPublisher & operator=(const DtObjectPublisher &orig)
assignment operator – not implemented
This class declares the DIS version of DtObjectPublisher.
DtForceType
Section 4.
Definition: disEnums.h:199
This file declares the class DtAggregateStateEncoder.
DtObjectId instances are used to represent RTI::ObjectInstances in VR-Link.
Definition: objectId.h:38
This file declares the class DtAggregateStateDecoder – DIS only.
This file provides a declaration of the class DtAggregateStateRepository.
static const DtObjectId & nullId()
DtDeadReckonTypes
Definition: disEnums.h:1013
DtReal DtTime
A definition of DtTime.
Definition: vlTime.h:19
Instances of DtString are used to represent strings.
Definition: vlString.h:36
virtual const DtObjectId & id() const
Get the object&#39;s local identifier.
void init(RTI::ObjectClassHandle hand, DtStateRepository *stateRep, DtStateRepository *asSeenByRemote, DtHlaStateEncoder *encoder=0, DtHlaStateDecoder *decoder=0)
virtual const DtObjectId & localId() const
Get the object&#39;s local identifier.
Definition: objectPublisherHLA.h:277
A protocol independent representation of an aggregate.
Definition: aggregateStateRepository.h:29
DtEntityType is used to represent the type an entity object.
Definition: entityType.h:26

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)