VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
simAggregateRemoteEntityNetInterface.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2015 MaK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 
11 #pragma once
12 
15 #include <vl/globalObjectDesignatorList.h>
16 #include <vl/variableDatumRecord.h>
17 
20 
25 namespace makVrf
26 {
27  class DtVrfStateComponent;
28  class DtStatePropertiesStateComponent;
29 
32  {
33  private:
34 
37 
40 
42  const DtSimAggregateRemoteEntityNetInterface & operator=(const
44 
45  public:
46 
49  bool publishObject = true);
50 
53 
56  virtual void updateFromReflectedObject();
57 
60  virtual DtReflectedExtAggregate * reflectedAggregate() const;
61 
64  virtual DtExtAggregateStateRepository * aggregateNetworkState() const;
65 
69  virtual bool isValidReflectedObject(DtReflectedObject*) const;
70 
73  virtual bool updateStateFromVariableDatum();
74 
76  virtual bool getUserVariableDatum( int userRecordNumber,
77  DtVariableDatumRecord& rec);
78 
79 
81  virtual void updateUUIDIfNeeded();
82 
83  virtual const DtGlobalObjectDesignatorList& netSubordinateEntities() const;
84  virtual const DtGlobalObjectDesignatorList& netSubordinateAggregates() const;
85 
86  virtual bool isAggregate() const { return true; }
87 
90  virtual DtString type() const;
91 
92  virtual bool isEntity() const { return false; };
93  virtual bool isUnit() const { return false; };
94 
99  isAggregateRemoteEntityNetInterface(const DtSimObjectNetInterface* objNetInterface);
100 
102  isAggregateRemoteEntityNetInterface(DtSimObjectNetInterface* objNetInterface);
103 
104 
105  static DtSimObjectNetInterface * creator(
106  DtStateData * simObject, DtVrlinkNetworkInterface* objMgr, bool publishObject);
107 
108  protected:
109  virtual DtVrfStateComponent* getOrCreateVrfStateComponent(DtExtAggregateStateRepository* netState);
110  virtual DtStatePropertiesStateComponent* getOrCreateStatePropertiesStateComponent(DtExtAggregateStateRepository* netState);
111  virtual void initializeRemoteStateComponents();
112 
113  protected:
114  DtGlobalObjectDesignatorList myNetSubordinateEntities;
115  DtGlobalObjectDesignatorList myNetSubordinateAggregates;
116 
117  DtVariableDatumRecord myPreviousSubordinateOrderRecord;
118 
120 
121  typedef std::map<DtString, int> WaitingForSubordinateMap;
123  };
124 }
1) Define the interface class that will be used to represent the next and curent frames. The UNDEFINED_ macros are convenience macros that will define methods that throw exceptions (until they are implemented)
Definition: statePropertiesStateComponent.h:93
virtual bool isEntity() const
Definition: simAggregateRemoteEntityNetInterface.h:92
virtual bool isUnit() const
Is this network interface for a local (true) or remote (false) object? Deriving network interfaces sh...
Definition: simAggregateRemoteEntityNetInterface.h:93
Definition: reflectedExtAggregate.h:35
WaitingForSubordinateMap myWaitingForSubordinateMap
Definition: simAggregateRemoteEntityNetInterface.h:122
virtual bool isAggregate() const
Definition: simAggregateRemoteEntityNetInterface.h:86
Definition: simRemoteEntityNetInterface.h:31
bool myWarnOnSubordinateOrderDecodingError
Definition: simAggregateRemoteEntityNetInterface.h:119
Definition: simAggregateRemoteEntityNetInterface.h:30
1) Define the interface class that will be used to represent the next and curent frames. The UNDEFINED_ macros are convenience macros that will define methods that throw exceptions (until they are implemented)
Definition: vrfStateComponent.h:55
The overall structure of the DtStateData mechanism is: The DtStateData contains a list of double buff...
Definition: stateData.h:336
DtGlobalObjectDesignatorList myNetSubordinateEntities
Definition: simAggregateRemoteEntityNetInterface.h:114
Class Description: DtSimObjectNetInterface.
Definition: simObjectNetInterface.h:48
std::map< DtString, int > WaitingForSubordinateMap
Definition: simAggregateRemoteEntityNetInterface.h:121
DtVariableDatumRecord myPreviousSubordinateOrderRecord
Definition: simAggregateRemoteEntityNetInterface.h:117
DtGlobalObjectDesignatorList myNetSubordinateAggregates
Definition: simAggregateRemoteEntityNetInterface.h:115
DtExtAggregateStateRepository class extends the DtExtAggregateBaseStateRepository to be able to handl...
Definition: extAggregateStateRepository.h:26

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)