VR-Forces 4.2 Class Documentation
aggLclNetIf.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2000 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: aggLclNetIf.h,v $ $Revision: 1.27 $ $State: Exp $
7 *******************************************************************************/
8 
11 
13 
14 #ifndef DtSimAggregateLocalEntityNetInterface_H_
15 #define DtSimAggregateLocalEntityNetInterface_H_
16 
18 #include "vrfobjcore/lclEntNetIf.h"
19 #include "vrfobjcore/vrfObjSR.h"
20 #include <vl/varDatumRec.h>
21 
22 class DtVrfAggregatePublisher;
23 class DtExtAggregateStateRepository;
25 
29 {
30 protected:
31 
34 
35 public:
36 
39  DtVrfObject* vrfObject,
40  DtReaderWriterRegistry* parentRegistry = 0,
41  bool publishObject = true);
42 
46  DtReaderWriterRegistry * parentRegistry = 0);
47 
51 
54 
56  bool init();
57 
59  virtual void updateNet();
60 
66  virtual void tick();
67 
70  virtual void setMinTickPeriod(double minTickPeriod);
71 
73  virtual double minTickPeriod() const;
74 
76  virtual void setMinTickPeriodVariance(double minTickPeriodVariance);
77 
79  virtual double minTickPeriodVariance() const;
80 
84  virtual void setNextTickTime(double nextTickTime);
85 
87  virtual double nextTickTime() const;
88 
94  virtual void updatePublisher();
95 
97  virtual bool createPublisher();
98 
100  virtual void destroyPublisher();
101 
111  virtual bool setAggregatePublisher(DtVrfAggregatePublisher * publisher);
112 
116  virtual void setupNetworkRepository();
117 
120  virtual DtVrfAggregatePublisher * aggregatePublisher() const;
121 
124  virtual DtExtAggregateStateRepository * aggregateNetworkState() const;
125 
126  virtual DtVrfAggregateStateRepository * aggregateLocalState() const;
127 
131  virtual bool setUserVariableDatum( int userRecordNumber,
132  const DtVariableDatumRecord& record);
133 
135  virtual bool getUserVariableDatum( int userRecordNumber,
136  DtVariableDatumRecord& rec);
137 
140  virtual bool encodeVariableDatum();
141 
147  virtual bool isANetSubordinate(const DtGlobalObjectDesignator&
148  globalId);
149 
152  virtual bool isPseudoAggregate() const { return false; }
153 
154  virtual bool isAggregate() const { return true; }
155 
158  virtual DtString type() const;
159 
163  virtual void setForceUpdate(bool flag);
164 
169  isAggregateLocalEntityNetInterface(const DtSimObjectNetInterface *
170  objNetInterface);
171 
172  static DtSimObjectNetInterface * creator(const DtString & name,
173  DtVrfObject* vrfObject,
174  DtReaderWriterRegistry* parentRegistry,
175  bool publishObject);
176 
177 protected:
179  virtual bool updateVrfDataAsSeenByRemote();
180 
181 protected:
182 
183  DtVrfAggregatePublisher* myAggregatePublisher;
184 
188 
191 };
192 
193 #endif

Document ID: Generated on Sun Nov 24 19:49:21 EST 2013 from SVN revision 133924
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)