MAK RTIspy API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
federateSR.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2001 MAK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: federateSR.h,v $ $Revision: 1.15 $ $State: Exp $
7 *********************************************************************/
8 #ifdef DtMOM
9 
12 #ifndef DtMomFederateSR_H_
13 #define DtMomFederateSR_H_
14 
15 #include "momInspector.h"
16 #include "momSR.h"
17 
18 class DT_DLL_LRC DtMomFederateSR: public DtMomSR
19 {
20 public:
21 
23  DtMomFederateSR(DtFomClassMgr* fomPtr, DtMomInspector* servicePtr,
24  DtRtiObject* objPtr);
25 
27  virtual ~DtMomFederateSR();
28 
31  void populate();
32 
34  virtual void encodeAttribute(DtAhvps* vp, DtAttributeHandle attribute);
35 
39 
40  virtual DtFederateHandle getFederateHandle();
41  virtual MAKRti::DtString const & getFederateName();
42  virtual MAKRti::DtString const & getFederateType();
43  virtual MAKRti::DtString const & getFederateHost();
44  virtual MAKRti::DtString const & getRTIversion();
45  virtual MAKRti::DtString const & getFEDid();
46 #ifdef DtIFSPEC1516E
47  virtual std::vector<std::wstring> const & getFOMmoduleDesignatorList();
48 #endif
49  virtual bool getTimeConstrained();
50  virtual bool getTimeRegulating();
51  virtual bool getAsynchronousDelivery();
52  virtual DtMomFederateStates getFederateState();
53  virtual DtMomTimeManagerStates getTimeManagerState();
54 #ifdef DtIFSPEC1516
55  virtual bool getFederateTime(rti1516::LogicalTime & time);
56  virtual bool getLookahead(rti1516::LogicalTimeInterval & interval);
57  virtual bool getGALT(rti1516::LogicalTime & time);
58  virtual bool getLITS(rti1516::LogicalTime & time);
59 #elif defined(DtIFSPEC1516E)
60  virtual bool getFederateTime(rti1516e::LogicalTime & time);
61  virtual bool getLookahead(rti1516e::LogicalTimeInterval & interval);
62  virtual bool getGALT(rti1516e::LogicalTime & time);
63  virtual bool getLITS(rti1516e::LogicalTime & time);
64 #else
65  virtual bool getFederateTime(RTI::FedTime & time);
66  virtual bool getLookahead(RTI::FedTime & interval);
67  virtual bool getGALT(RTI::FedTime & time);
68  virtual bool getLITS(RTI::FedTime & time);
69 #endif
70  virtual bool getConveyRegions();
71  virtual bool getConveyProducingFederate();
72  virtual unsigned long getROlength();
73  virtual unsigned long getTSOlength();
74  virtual unsigned long getReflectionsReceived();
75  virtual unsigned long getUpdatesSent();
76  virtual unsigned long getInteractionsReceived();
77  virtual unsigned long getInteractionsSent();
78  virtual unsigned long getObjectsOwned();
79  virtual unsigned long getObjectsUpdated();
80  virtual unsigned long getObjectsReflected();
81  virtual unsigned long getObjectsDeleted();
82  virtual unsigned long getObjectsRemoved();
83  virtual unsigned long getObjectsRegistered();
84  virtual unsigned long getObjectsDiscovered();
85  virtual unsigned long getGrantedTime();
86  virtual unsigned long getAdvancingTime();
88 
89 protected:
90 
93 
94  virtual void encodeFederateHandle(DtAhvps* vp, DtAttributeHandle handle);
95  virtual void encodeFederateName(DtAhvps* vp, DtAttributeHandle handle);
96  virtual void encodeFederateType(DtAhvps* vp, DtAttributeHandle handle);
97  virtual void encodeFederateHost(DtAhvps* vp, DtAttributeHandle handle);
98  virtual void encodeRTIversion(DtAhvps* vp, DtAttributeHandle handle);
99  virtual void encodeFEDid(DtAhvps* vp, DtAttributeHandle handle);
100 #ifdef DtIFSPEC1516E
101  virtual void encodeFOMmoduleDesignatorList(DtAhvps* vp, DtAttributeHandle handle);
102 #endif
103  virtual void encodeTimeConstrained(DtAhvps* vp, DtAttributeHandle handle);
104  virtual void encodeTimeRegulating(DtAhvps* vp, DtAttributeHandle handle);
105  virtual void encodeAsynchronousDelivery(DtAhvps* vp, DtAttributeHandle handle);
106  virtual void encodeFederateState(DtAhvps* vp, DtAttributeHandle handle);
107  virtual void encodeTimeManagerState(DtAhvps* vp, DtAttributeHandle handle);
108  virtual void encodeFederateTime(DtAhvps* vp, DtAttributeHandle handle);
109  virtual void encodeLookahead(DtAhvps* vp, DtAttributeHandle handle);
110  virtual void encodeGALT(DtAhvps* vp, DtAttributeHandle handle);
111  virtual void encodeLITS(DtAhvps* vp, DtAttributeHandle handle);
112  virtual void encodeROlength(DtAhvps* vp, DtAttributeHandle handle);
113  virtual void encodeTSOlength(DtAhvps* vp, DtAttributeHandle handle);
114  virtual void encodeGrantedTime(DtAhvps* vp, DtAttributeHandle handle);
115  virtual void encodeAdvancingTime(DtAhvps* vp, DtAttributeHandle handle);
116  virtual void encodeConveyRegions(DtAhvps* vp, DtAttributeHandle attribute);
117  virtual void encodeConveyProducingFederate(DtAhvps* vp, DtAttributeHandle attribute);
118  virtual void encodeReflectionsReceived(DtAhvps* vp, DtAttributeHandle handle);
119  virtual void encodeUpdatesSent(DtAhvps* vp, DtAttributeHandle handle);
120  virtual void encodeInteractionsReceived(DtAhvps* vp, DtAttributeHandle handle);
121  virtual void encodeInteractionsSent(DtAhvps* vp, DtAttributeHandle handle);
122  virtual void encodeObjectsOwned(DtAhvps* vp, DtAttributeHandle handle);
123  virtual void encodeObjectsUpdated(DtAhvps* vp, DtAttributeHandle handle);
124  virtual void encodeObjectsReflected(DtAhvps* vp, DtAttributeHandle handle);
125  virtual void encodeObjectsDeleted(DtAhvps* vp, DtAttributeHandle handle);
126  virtual void encodeObjectsRemoved(DtAhvps* vp, DtAttributeHandle handle);
127  virtual void encodeObjectsRegistered(DtAhvps* vp, DtAttributeHandle handle);
128  virtual void encodeObjectsDiscovered(DtAhvps* vp, DtAttributeHandle handle);
130 
132  DtMomFederateSR(const DtMomFederateSR& orig);
133 
134 };
135 #endif
136 #endif
DtHandle DtFederateHandle
Definition: internalTypes.h:29
The RTI object maintains the internal RTI object state.
Definition: rtiObject.h:116
Definition: fomMgr.h:53
DtHandle DtAttributeHandle
Definition: internalTypes.h:37
#define DT_DLL_LRC
Definition: rtiMsConfig.h:126

Document ID: Generated on Mon Sep 7 15:40:32 EDT 2020 from SVN revision 217499
Copyright © 2005-2020 MAK Technologies Inc. All Rights Reserved (www.mak.com)