MAK Data Logger API Documentation for HLA
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
hlaStateObject.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 1992-2016 VT MAK
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <lgrSim/lgrSim.h>
13 
14 #include <lgrCore/stateObject.h>
15 #include <lgrUtil/absoluteTime.h>
16 #include "hlaMessageFactory.h"
18 
19 #include <list>
20 #include <map>
21 
22 #include <vl/rtiCompatibility.h>
23 
24 namespace MAKLogger
25 {
26  class DtLgrHlaMessage;
27  class DtLgrHlaMessageState;
28  class DtLgrHlaSimulationManager;
29 
33  {
34  public:
35 
38 
39  void update(DtAbsoluteTime time, const DtLgrHandleValueReferenceMap* attributes);
40 
41  //Generate a list of timed AHVPSets.
42  void generate(DtTimedHandleValueMapList& outputList);
43 
44  typedef std::map<DtLgrHlaHandle,DtHlaTimeStampedAttribute*> HandleTimedAttributeMap;
45  const HandleTimedAttributeMap& attributes() const;
46 
47  protected:
48 
50  };
51 
55  {
56 
57  public:
58 
61 
62 
64 
65 
66  virtual ~DtHlaStateObject();
67 
69  virtual bool isEntity() const;
70 
72  virtual bool isAggregate() const;
73 
75  virtual DtU64 uniqueId() const;
76 
78  virtual DtU64 uniqueId(const DtHlaObject* object) const;
79 
81  virtual const DtString& name() const;
82 
84  virtual DtU64 packetId(const DtPacket& packet) const;
85 
88  virtual void setPacketId(DtU64,DtPacket&) const;
89 
92  virtual DtPacket* createUpdate(const DtAbsoluteTime* time) const;
93 
96  virtual DtPacket* createUpdates(const DtAbsoluteTime* time) const;
97 
99  virtual DtPacket* createRemoval(const DtAbsoluteTime& currentTime) const;
100 
102  virtual bool packetForMe(const DtPacket&) const;
103 
105  virtual void updateViaPacket(const DtPacket&);
106 
108  virtual DtHlaTimeStampledStateRep* attributes();
109 
111  virtual const DtRegionDescSet& regionSet() const;
112 
113  inline DtLgrHlaHandle objectHandle() const{ return myObjectHandle;}
114  inline DtLgrHlaHandle classHandle() const{ return myClassHandle;}
115  inline const DtString& tag() const { return myTag;}
116 
117  protected:
118 
123 
129 
131 
132  };
133 
134 }
135 

Document ID: Generated on Thu Jul 23 15:05:27 EDT 2020 from SVN revision 215371
Copyright © 2020 MAK Technologies. All Rights Reserved (www.mak.com)