VR-Forces 4.8 Class Documentation
 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 
21 
28 {
29 protected:
30 
33 
34 public:
35 
38  DtVrfObject * simObject,
39  DtReaderWriterRegistry * parentRegistry = 0,
40  bool publishObject = true);
41 
45  DtReaderWriterRegistry * parentRegistry = 0);
46 
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  virtual bool netSubordinateEntitiesChanged() const;
80  virtual void updateSubordinateEntitiesFromNet();
81  virtual bool netSubordinateAggregatesChanged() const;
82  virtual void updateSubordinateAggregatesFromNet();
83 
85  virtual void updateUUIDIfNeeded();
86 
87  virtual const DtGlobalObjectDesignatorList& netSubordinateEntities() const;
88  virtual const DtGlobalObjectDesignatorList& netSubordinateAggregates() const;
89 
95  virtual bool isANetSubordinate(const DtGlobalObjectDesignator& globalId);
96 
97  virtual bool isAggregate() const { return true; }
98 
101  virtual DtString type() const;
102 
103  virtual DtVrfAggregateStateRepository* aggregateLocalState() const;
104 
109  isAggregateRemoteEntityNetInterface(const DtSimObjectNetInterface* objNetInterface);
110 
112  isAggregateRemoteEntityNetInterface(DtSimObjectNetInterface* objNetInterface);
113 
114 
115  static DtSimObjectNetInterface * creator(const DtString & name,
116  DtVrfObject * simObject,
117  DtReaderWriterRegistry * parentRegistry,
118  bool publishObject);
119 
120 protected:
121 
122  DtGlobalObjectDesignatorList myPreviousSubEntityList;
123  DtGlobalObjectDesignatorList myPreviousSubAggregateList;
124  DtGlobalObjectDesignatorList myNetSubordinateEntities;
125  DtGlobalObjectDesignatorList myNetSubordinateAggregates;
126  DtVariableDatumRecord myPreviousSubordinateOrderRecord;
127 
129 };
DtVrfObject is used to represent any type of simulated object (entities, aggregate, control objects) in a VR-Forces application.
Definition: vrfObject.h:215
Definition: reflectedExtAggregate.h:35
virtual void updateFromReflectedObject()=0
this will copy from whatever type of reflected object and associated network state repository the der...
virtual bool isValidReflectedObject(DtReflectedObject *) const
This method will return false if the reflected object type is not of DtReflectedEntity.
DtGlobalObjectDesignatorList myNetSubordinateAggregates
Definition: simAggregateRemoteEntityNetInterface.h:125
Definition: readerWriterRegistry.h:39
virtual DtString type() const =0
Returns the type of net interface object.
const DtSimRemoteEntityNetInterface & operator=(const DtSimRemoteEntityNetInterface &orig)
assignment operator; see note on copy constructor above
DtGlobalObjectDesignatorList myPreviousSubEntityList
Definition: simAggregateRemoteEntityNetInterface.h:122
DtGlobalObjectDesignatorList myNetSubordinateEntities
Definition: simAggregateRemoteEntityNetInterface.h:124
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
Class Description: DtSimObjectNetInterface.
Definition: simObjectNetInterface.h:37
bool myWarnOnSubordinateOrderDecodingError
Definition: simAggregateRemoteEntityNetInterface.h:128
virtual void updateUUIDIfNeeded()
Upon setting of reflected object see if UUID needs to be updated.
Derived from DtSimEntityNetInterface, DtSimAggregateRemoteEntityNetInterface provides an interface be...
Definition: simAggregateRemoteEntityNetInterface.h:26
Derived from DtSimEntityNetInterface, DtSimRemoteEntityNetInterface provides an interface between the...
Definition: simRemoteEntityNetInterface.h:30
DtVariableDatumRecord myPreviousSubordinateOrderRecord
Definition: simAggregateRemoteEntityNetInterface.h:126
Definition: vrfAggregateStateRepository.h:22
virtual bool isAggregate() const
Definition: simAggregateRemoteEntityNetInterface.h:97
DtGlobalObjectDesignatorList myPreviousSubAggregateList
Definition: simAggregateRemoteEntityNetInterface.h:123
DtExtAggregateStateRepository class extends the DtExtAggregateBaseStateRepository to be able to handl...
Definition: extAggregateStateRepository.h:26

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)