![]() |
VR-Link API Documentation for HLA 1.3
|
Instances of DtFederateStateRepsository are used to hold data from the RTI's Management Object Model Federate class. More...
Inheritance diagram for DtFederateStateRepository:
Collaboration diagram for DtFederateStateRepository:Public Types | |
| enum | DtFederateState { DtFedStateActiveFederate = 1, DtFedStateFederateSaveInProgress = 3, DtFedStateFederateRestoreInProgress = 5 } |
| The state of a federate. More... | |
| enum | DtTimeState { DtTimeStateTimeGranted = 0, DtTimeStateTimeAdvancing = 1 } |
| The time state of a federate. More... | |
Public Member Functions | |
| DtFederateStateRepository () | |
| Constructor. | |
| virtual | ~DtFederateStateRepository () |
| Destructor. | |
| DtFederateStateRepository (const DtFederateStateRepository &orig) | |
| Copy constructor. | |
| DtFederateStateRepository & | operator= (const DtFederateStateRepository &orig) |
| Assignment operator. | |
| virtual DtStateRepository * | clone (bool copy) const |
| Return a copy/empty object of the same type as this. | |
| virtual void | printData () const |
| Print data to the DtInfo stream. | |
| virtual void | printDataToStream (std::ostream &stream) const |
| Print data to the specified stream. | |
| DtExerciseConn * | exConn () const |
| Used for correct decoding of handles. | |
| void | setExConn (DtExerciseConn *val) |
| const RTI::FederateHandle & | federateHandle () const |
| Get/Set the Federate Handle. | |
| void | setFederateHandle (const RTI::FederateHandle &val) |
| Get/Set the Federate Handle. | |
| const DtString & | federateType () const |
| Get/Set the Federate Type. | |
| void | setFederateType (const DtString &val) |
| Get/Set the Federate Type. | |
| const DtString & | federateHost () const |
| Get/Set the Federate Host. | |
| void | setFederateHost (const DtString &val) |
| Get/Set the Federate Host. | |
| const DtString & | rtiVersion () const |
| Get/Set the RTI Version. | |
| void | setRtiVersion (const DtString &val) |
| Get/Set the RTI Version. | |
| const DtString & | fedId () const |
| Get/Set the FED ID. | |
| void | setFedId (const DtString &val) |
| Get/Set the FED ID. | |
| bool | timeConstrained () const |
| Get/Set the time constrained flag. | |
| void | setTimeConstrained (bool val) |
| Get/Set the time constrained flag. | |
| bool | timeRegulating () const |
| Get/Set the time regulating flag. | |
| void | setTimeRegulating (bool val) |
| Get/Set the time regulating flag. | |
| bool | asynchronousDelivery () const |
| Get/Set the asynchronous delivery flag. | |
| void | setAsynchronousDelivery (bool val) |
| Get/Set the asynchronous delivery flag. | |
| const DtString & | federateState () const |
| Get/Set the federate state. | |
| void | setFederateState (const DtString &val) |
| Get/Set the federate state. | |
| const DtString & | timeManagerState () const |
| Get/Set the time manager state. | |
| void | setTimeManagerState (const DtString &val) |
| Get/Set the time manager state. | |
| const DtString & | federateTime () const |
| Get/Set the federate time. | |
| void | setFederateTime (const DtString &val) |
| Get/Set the federate time. | |
| const DtString & | lookahead () const |
| Get/Set the lookahead. | |
| void | setLookahead (const DtString &val) |
| Get/Set the lookahead. | |
| const DtString & | lbts () const |
| Get/Set the LBTS (lower-bound timestamp). | |
| void | setLbts (const DtString &val) |
| Get/Set the LBTS (lower-bound timestamp). | |
| const DtString & | minNextEventTime () const |
| Get/Set the minimum next event time. | |
| void | setMinNextEventTime (const DtString &val) |
| Get/Set the minimum next event time. | |
| int | roLength () const |
| Get/Set the RO Length. | |
| void | setRoLength (int val) |
| Get/Set the RO Length. | |
| int | tsoLength () const |
| Get/Set the TSO Length. | |
| void | setTsoLength (int val) |
| Get/Set the TSO Length. | |
| int | reflectionsReceived () const |
| Get/Set the number of reflections received. | |
| void | setReflectionsReceived (int val) |
| Get/Set the number of reflections received. | |
| int | updatesSent () const |
| Get/Set the number of updates sent. | |
| void | setUpdatesSent (int val) |
| Get/Set the number of updates sent. | |
| int | interactionsReceived () const |
| Get/Set the number of interactions received. | |
| void | setInteractionsReceived (int val) |
| Get/Set the number of interactions received. | |
| int | interactionsSent () const |
| Get/Set the number of interactions sent. | |
| void | setInteractionsSent (int val) |
| Get/Set the number of interactions sent. | |
| int | objectsOwned () const |
| Get/Set the number of objects owned. | |
| void | setObjectsOwned (int val) |
| Get/Set the number of objects owned. | |
| int | objectsUpdated () const |
| Get/Set the number of objects updated. | |
| void | setObjectsUpdated (int val) |
| Get/Set the number of objects updated. | |
| int | objectsReflected () const |
| Get/Set the number of objects reflected. | |
| void | setObjectsReflected (int val) |
| Get/Set the number of objects reflected. | |
Public Member Functions inherited from DtStateRepository | |
| DtStateRepository () | |
| default constructor | |
| DtStateRepository (const DtStateRepository &orig) | |
| copy constructor | |
| virtual | ~DtStateRepository () |
| destructor | |
| DtStateRepository & | operator= (const DtStateRepository &orig) |
| assignment operator | |
| virtual void | setGlobalId (const DtString &id) |
| Get/Set global identifier, or name. | |
| virtual const DtString & | globalId () const |
| virtual void | setLocalId (const DtObjectId &id) |
| Get/Set local identifier, or handle. | |
| virtual const DtObjectId & | localId () const |
| virtual bool | publishesAttribute (const RTI::AttributeHandle &val) const |
| Returns true if the attribute is published. | |
| virtual void | setAttributeByHandle (const RTI::AttributeHandle &attrHdl, const char *attrValue, unsigned size) |
| Set the attribute with the given handle. | |
| virtual const char * | getAttributeByHandle (const RTI::AttributeHandle &attrHdl, unsigned &size) const |
| Get a pointer to attribute value for the attribute with the given handle. | |
| virtual void | setAttributeByName (const DtString &attrName, const char *attrValue, unsigned size, DtHlaObject *hlaObj) |
| Set the attribute with the given name. Note that in order to do this you must provide a DtHlaObject. | |
| virtual const char * | getAttributeByName (const DtString &attrName, unsigned &size, DtHlaObject *hlaObj) const |
| Get a pointer to attribute value for the attribute with the given name. | |
| virtual const char * | getAttributeByHandleIfUpdated (const RTI::AttributeHandle &attrHdl, unsigned &size) const |
| Get a pointer to attribute value for the attribute with the given handle, but only if it's been updated since the last time we read it. | |
Static Public Member Functions | |
| static DtFederateStateRepository * | create () |
| Create a DtFederateStateRepository. | |
Protected Attributes | |
| RTI::FederateHandle | myFederateHandle |
| DtString | myFederateType |
| DtString | myFederateHost |
| DtString | myRtiVersion |
| DtString | myFedId |
| bool | myTimeConstrained |
| bool | myTimeRegulating |
| bool | myAsynchronousDelivery |
| DtString | myFederateState |
| DtString | myTimeManagerState |
| DtString | myFederateTime |
| DtString | myLookahead |
| DtString | myLbts |
| DtString | myMinNextEventTime |
| int | myRoLength |
| int | myTsoLength |
| int | myReflectionsReceived |
| int | myUpdatesSent |
| int | myInteractionsReceived |
| int | myInteractionsSent |
| int | myObjectsOwned |
| int | myObjectsUpdated |
| int | myObjectsReflected |
| DtExerciseConn * | myExConn |
Additional Inherited Members | |
Public Attributes inherited from DtStateRepository | |
| DtString | myGlobalId |
| DtObjectId | myLocalId |
| std::map< RTI::AttributeHandle, DtGenericAttributeInfo * > | myAttributesByHandle |
| Attributes by handle. | |
Instances of DtFederateStateRepsository are used to hold data from the RTI's Management Object Model Federate class.
It represents a federate in the federation execution. This is used with the DtReflectedFederateList, and needs the MOM capability of the RTI enabled.
| DtFederateStateRepository::DtFederateStateRepository | ( | ) |
Constructor.
|
virtual |
Destructor.
| DtFederateStateRepository::DtFederateStateRepository | ( | const DtFederateStateRepository & | orig | ) |
Copy constructor.
| bool DtFederateStateRepository::asynchronousDelivery | ( | ) | const |
Get/Set the asynchronous delivery flag.
|
virtual |
Return a copy/empty object of the same type as this.
Reimplemented from DtStateRepository.
|
static |
Create a DtFederateStateRepository.
|
inline |
Used for correct decoding of handles.
This is set in the reflected constructor and should not be modified unless you know what you are doing.
| const RTI::FederateHandle& DtFederateStateRepository::federateHandle | ( | ) | const |
Get/Set the Federate Handle.
| const DtString& DtFederateStateRepository::federateHost | ( | ) | const |
Get/Set the Federate Host.
| const DtString& DtFederateStateRepository::federateState | ( | ) | const |
Get/Set the federate state.
| const DtString& DtFederateStateRepository::federateTime | ( | ) | const |
Get/Set the federate time.
| const DtString& DtFederateStateRepository::federateType | ( | ) | const |
Get/Set the Federate Type.
| const DtString& DtFederateStateRepository::fedId | ( | ) | const |
Get/Set the FED ID.
In HLA 1516, this attribute is referred to as the FDD ID.
| int DtFederateStateRepository::interactionsReceived | ( | ) | const |
Get/Set the number of interactions received.
| int DtFederateStateRepository::interactionsSent | ( | ) | const |
Get/Set the number of interactions sent.
| const DtString& DtFederateStateRepository::lbts | ( | ) | const |
Get/Set the LBTS (lower-bound timestamp).
In HLA 1516, this synonymous with the GALT (greatest allowed logical time).
| const DtString& DtFederateStateRepository::lookahead | ( | ) | const |
Get/Set the lookahead.
| const DtString& DtFederateStateRepository::minNextEventTime | ( | ) | const |
Get/Set the minimum next event time.
In HLA 1516, this synonymous with the LITS (least incoming timestamp).
| int DtFederateStateRepository::objectsOwned | ( | ) | const |
Get/Set the number of objects owned.
| int DtFederateStateRepository::objectsReflected | ( | ) | const |
Get/Set the number of objects reflected.
| int DtFederateStateRepository::objectsUpdated | ( | ) | const |
Get/Set the number of objects updated.
| DtFederateStateRepository& DtFederateStateRepository::operator= | ( | const DtFederateStateRepository & | orig | ) |
Assignment operator.
|
virtual |
Print data to the DtInfo stream.
Reimplemented from DtStateRepository.
|
virtual |
Print data to the specified stream.
Reimplemented from DtStateRepository.
| int DtFederateStateRepository::reflectionsReceived | ( | ) | const |
Get/Set the number of reflections received.
| int DtFederateStateRepository::roLength | ( | ) | const |
Get/Set the RO Length.
This is the number of events currently queued for receive-ordered delivery.
| const DtString& DtFederateStateRepository::rtiVersion | ( | ) | const |
Get/Set the RTI Version.
| void DtFederateStateRepository::setAsynchronousDelivery | ( | bool | val | ) |
Get/Set the asynchronous delivery flag.
|
inline |
| void DtFederateStateRepository::setFederateHandle | ( | const RTI::FederateHandle & | val | ) |
Get/Set the Federate Handle.
| void DtFederateStateRepository::setFederateHost | ( | const DtString & | val | ) |
Get/Set the Federate Host.
| void DtFederateStateRepository::setFederateState | ( | const DtString & | val | ) |
Get/Set the federate state.
| void DtFederateStateRepository::setFederateTime | ( | const DtString & | val | ) |
Get/Set the federate time.
| void DtFederateStateRepository::setFederateType | ( | const DtString & | val | ) |
Get/Set the Federate Type.
| void DtFederateStateRepository::setFedId | ( | const DtString & | val | ) |
Get/Set the FED ID.
In HLA 1516, this attribute is referred to as the FDD ID.
| void DtFederateStateRepository::setInteractionsReceived | ( | int | val | ) |
Get/Set the number of interactions received.
| void DtFederateStateRepository::setInteractionsSent | ( | int | val | ) |
Get/Set the number of interactions sent.
| void DtFederateStateRepository::setLbts | ( | const DtString & | val | ) |
Get/Set the LBTS (lower-bound timestamp).
In HLA 1516, this synonymous with the GALT (greatest allowed logical time).
| void DtFederateStateRepository::setLookahead | ( | const DtString & | val | ) |
Get/Set the lookahead.
| void DtFederateStateRepository::setMinNextEventTime | ( | const DtString & | val | ) |
Get/Set the minimum next event time.
In HLA 1516, this synonymous with the LITS (least incoming timestamp).
| void DtFederateStateRepository::setObjectsOwned | ( | int | val | ) |
Get/Set the number of objects owned.
| void DtFederateStateRepository::setObjectsReflected | ( | int | val | ) |
Get/Set the number of objects reflected.
| void DtFederateStateRepository::setObjectsUpdated | ( | int | val | ) |
Get/Set the number of objects updated.
| void DtFederateStateRepository::setReflectionsReceived | ( | int | val | ) |
Get/Set the number of reflections received.
| void DtFederateStateRepository::setRoLength | ( | int | val | ) |
Get/Set the RO Length.
This is the number of events currently queued for receive-ordered delivery.
| void DtFederateStateRepository::setRtiVersion | ( | const DtString & | val | ) |
Get/Set the RTI Version.
| void DtFederateStateRepository::setTimeConstrained | ( | bool | val | ) |
Get/Set the time constrained flag.
| void DtFederateStateRepository::setTimeManagerState | ( | const DtString & | val | ) |
Get/Set the time manager state.
| void DtFederateStateRepository::setTimeRegulating | ( | bool | val | ) |
Get/Set the time regulating flag.
| void DtFederateStateRepository::setTsoLength | ( | int | val | ) |
Get/Set the TSO Length.
This is the number of events currently queued for time-stamp-ordered delivery.
| void DtFederateStateRepository::setUpdatesSent | ( | int | val | ) |
Get/Set the number of updates sent.
| bool DtFederateStateRepository::timeConstrained | ( | ) | const |
Get/Set the time constrained flag.
| const DtString& DtFederateStateRepository::timeManagerState | ( | ) | const |
Get/Set the time manager state.
| bool DtFederateStateRepository::timeRegulating | ( | ) | const |
Get/Set the time regulating flag.
| int DtFederateStateRepository::tsoLength | ( | ) | const |
Get/Set the TSO Length.
This is the number of events currently queued for time-stamp-ordered delivery.
| int DtFederateStateRepository::updatesSent | ( | ) | const |
Get/Set the number of updates sent.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |