VR-Link API Documentation for HLA 1516
List of all members | Public Types | Public Member Functions | Static Public Member Functions | Protected Attributes
DtFederateStateRepository Class Reference

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.
DtFederateStateRepositoryoperator= (const DtFederateStateRepository &orig)
 Assignment operator.
virtual DtStateRepositoryclone (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.
const RTI::FederateHandle & federateHandle () const
 Get/Set the Federate Handle.
void setFederateHandle (const RTI::FederateHandle &val)
 Get/Set the Federate Handle.
const DtStringfederateType () const
 Get/Set the Federate Type.
void setFederateType (const DtString &val)
 Get/Set the Federate Type.
bool conveyRegionDesignatorSets () const
 Get/Set whether conveyRegionDesignatorSets is enabled.
void setConveyRegionDesignatorSets (bool val)
 Get/Set whether conveyRegionDesignatorSets is enabled.
const DtStringfederateHost () const
 Get/Set the Federate Host.
void setFederateHost (const DtString &val)
 Get/Set the Federate Host.
const DtStringrtiVersion () const
 Get/Set the RTI Version.
void setRtiVersion (const DtString &val)
 Get/Set the RTI Version.
const DtStringfedId () 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.
DtFederateState federateState () const
 Get/Set the federate state.
void setFederateState (DtFederateState val)
 Get/Set the federate state.
DtTimeState timeManagerState () const
 Get/Set the time manager state.
void setTimeManagerState (DtTimeState val)
 Get/Set the time manager state.
const DtStringfederateTime () const
 Get/Set the federate time.
void setFederateTime (const DtString &val)
 Get/Set the federate time.
const DtStringlookahead () const
 Get/Set the lookahead.
void setLookahead (const DtString &val)
 Get/Set the lookahead.
const DtStringlbts () const
 Get/Set the LBTS (lower-bound timestamp).
void setLbts (const DtString &val)
 Get/Set the LBTS (lower-bound timestamp).
const DtStringminNextEventTime () 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.
int objectsDeleted () const
 Get/Set the number of objects deleted (1516 only).
void setObjectsDeleted (int val)
 Get/Set the number of objects deleted (1516 only).
int objectsRemoved () const
 Get/Set the number of objects removed (1516 only).
void setObjectsRemoved (int val)
 Get/Set the number of objects removed (1516 only).
int objectsRegistered () const
 Get/Set the number of objects registered (1516 only).
void setObjectsRegistered (int val)
 Get/Set the number of objects registered (1516 only).
int objectsDiscovered () const
 Get/Set the number of objects discovered (1516 only).
void setObjectsDiscovered (int val)
 Get/Set the number of objects discovered (1516 only).
int timeGrantedTime () const
 Get/Set the Time Granted time (1516 only).
void setTimeGrantedTime (int val)
 Get/Set the Time Granted time (1516 only).
int timeAdvancingTime () const
 Get/Set the Time Advancing time (1516 only).
void setTimeAdvancingTime (int val)
 Get/Set the Time Advancing time (1516 only).
- Public Member Functions inherited from DtStateRepository
virtual ~DtStateRepository ()
 destructor
DtStateRepositoryoperator= (const DtStateRepository &orig)
 assignment operator
virtual void setGlobalId (const DtGlobalObjectDesignator &id)
 Get/Set global identifier, or name.
virtual const
DtGlobalObjectDesignator
globalId () const
virtual void setLocalId (const DtObjectId &id)
 Get/Set local identifier, or handle.
virtual const DtObjectIdlocalId () const

Static Public Member Functions

static DtFederateStateRepositorycreate ()
 Create a DtFederateStateRepository.

Protected Attributes

RTI::FederateHandle myFederateHandle
DtString myFederateType
DtString myFederateHost
bool myConveyRegionDesignatorSets
DtString myRtiVersion
DtString myFedId
bool myTimeConstrained
bool myTimeRegulating
bool myAsynchronousDelivery
DtFederateState myFederateState
DtTimeState 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
int myObjectsDeleted
int myObjectsRemoved
int myObjectsRegistered
int myObjectsDiscovered
int myTimeGrantedTime
int myTimeAdvancingTime
- Protected Attributes inherited from DtStateRepository
DtGlobalObjectDesignator myGlobalId
DtObjectId myLocalId

Additional Inherited Members

- Protected Member Functions inherited from DtStateRepository
 DtStateRepository ()
 Constructors are protected since this is an abstract base class.
 DtStateRepository (const DtStateRepository &orig)
 copy constructor

Detailed Description

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.

Member Enumeration Documentation

The state of a federate.

This enumeration is only applicable to HLA 1516, as the state is sent as a string in HLA 1.3.

Enumerator:
DtFedStateActiveFederate 
DtFedStateFederateSaveInProgress 
DtFedStateFederateRestoreInProgress 

The time state of a federate.

This enumeration is only applicable to HLA 1516, as the state is sent as a string in HLA 1.3.

Enumerator:
DtTimeStateTimeGranted 
DtTimeStateTimeAdvancing 

Constructor & Destructor Documentation

DtFederateStateRepository::DtFederateStateRepository ( )

Constructor.

virtual DtFederateStateRepository::~DtFederateStateRepository ( )
virtual

Destructor.

DtFederateStateRepository::DtFederateStateRepository ( const DtFederateStateRepository orig)

Copy constructor.

Member Function Documentation

bool DtFederateStateRepository::asynchronousDelivery ( ) const

Get/Set the asynchronous delivery flag.

virtual DtStateRepository* DtFederateStateRepository::clone ( bool  copy) const
virtual

Return a copy/empty object of the same type as this.

Implements DtStateRepository.

bool DtFederateStateRepository::conveyRegionDesignatorSets ( ) const

Get/Set whether conveyRegionDesignatorSets is enabled.

static DtFederateStateRepository* DtFederateStateRepository::create ( )
static
const RTI::FederateHandle& DtFederateStateRepository::federateHandle ( ) const

Get/Set the Federate Handle.

const DtString& DtFederateStateRepository::federateHost ( ) const

Get/Set the Federate Host.

DtFederateState 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::objectsDeleted ( ) const

Get/Set the number of objects deleted (1516 only).

int DtFederateStateRepository::objectsDiscovered ( ) const

Get/Set the number of objects discovered (1516 only).

int DtFederateStateRepository::objectsOwned ( ) const

Get/Set the number of objects owned.

int DtFederateStateRepository::objectsReflected ( ) const

Get/Set the number of objects reflected.

int DtFederateStateRepository::objectsRegistered ( ) const

Get/Set the number of objects registered (1516 only).

int DtFederateStateRepository::objectsRemoved ( ) const

Get/Set the number of objects removed (1516 only).

int DtFederateStateRepository::objectsUpdated ( ) const

Get/Set the number of objects updated.

DtFederateStateRepository& DtFederateStateRepository::operator= ( const DtFederateStateRepository orig)

Assignment operator.

virtual void DtFederateStateRepository::printData ( ) const
virtual

Print data to the DtInfo stream.

Implements DtStateRepository.

virtual void DtFederateStateRepository::printDataToStream ( std::ostream &  stream) const
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.

void DtFederateStateRepository::setConveyRegionDesignatorSets ( bool  val)

Get/Set whether conveyRegionDesignatorSets is enabled.

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 ( DtFederateState  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::setObjectsDeleted ( int  val)

Get/Set the number of objects deleted (1516 only).

void DtFederateStateRepository::setObjectsDiscovered ( int  val)

Get/Set the number of objects discovered (1516 only).

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::setObjectsRegistered ( int  val)

Get/Set the number of objects registered (1516 only).

void DtFederateStateRepository::setObjectsRemoved ( int  val)

Get/Set the number of objects removed (1516 only).

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::setTimeAdvancingTime ( int  val)

Get/Set the Time Advancing time (1516 only).

This is the wall clock time duration that the federate has spent in the Time Advancing state since the last update of this attribute.

void DtFederateStateRepository::setTimeConstrained ( bool  val)

Get/Set the time constrained flag.

void DtFederateStateRepository::setTimeGrantedTime ( int  val)

Get/Set the Time Granted time (1516 only).

This is the wall clock time duration that the federate has spent in the Time Granted state since the last update of this attribute.

void DtFederateStateRepository::setTimeManagerState ( DtTimeState  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.

int DtFederateStateRepository::timeAdvancingTime ( ) const

Get/Set the Time Advancing time (1516 only).

This is the wall clock time duration that the federate has spent in the Time Advancing state since the last update of this attribute.

bool DtFederateStateRepository::timeConstrained ( ) const

Get/Set the time constrained flag.

int DtFederateStateRepository::timeGrantedTime ( ) const

Get/Set the Time Granted time (1516 only).

This is the wall clock time duration that the federate has spent in the Time Granted state since the last update of this attribute.

DtTimeState 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.

Member Data Documentation

bool DtFederateStateRepository::myAsynchronousDelivery
protected
bool DtFederateStateRepository::myConveyRegionDesignatorSets
protected
RTI::FederateHandle DtFederateStateRepository::myFederateHandle
protected
DtString DtFederateStateRepository::myFederateHost
protected
DtFederateState DtFederateStateRepository::myFederateState
protected
DtString DtFederateStateRepository::myFederateTime
protected
DtString DtFederateStateRepository::myFederateType
protected
DtString DtFederateStateRepository::myFedId
protected
int DtFederateStateRepository::myInteractionsReceived
protected
int DtFederateStateRepository::myInteractionsSent
protected
DtString DtFederateStateRepository::myLbts
protected
DtString DtFederateStateRepository::myLookahead
protected
DtString DtFederateStateRepository::myMinNextEventTime
protected
int DtFederateStateRepository::myObjectsDeleted
protected
int DtFederateStateRepository::myObjectsDiscovered
protected
int DtFederateStateRepository::myObjectsOwned
protected
int DtFederateStateRepository::myObjectsReflected
protected
int DtFederateStateRepository::myObjectsRegistered
protected
int DtFederateStateRepository::myObjectsRemoved
protected
int DtFederateStateRepository::myObjectsUpdated
protected
int DtFederateStateRepository::myReflectionsReceived
protected
int DtFederateStateRepository::myRoLength
protected
DtString DtFederateStateRepository::myRtiVersion
protected
int DtFederateStateRepository::myTimeAdvancingTime
protected
bool DtFederateStateRepository::myTimeConstrained
protected
int DtFederateStateRepository::myTimeGrantedTime
protected
DtTimeState DtFederateStateRepository::myTimeManagerState
protected
bool DtFederateStateRepository::myTimeRegulating
protected
int DtFederateStateRepository::myTsoLength
protected
int DtFederateStateRepository::myUpdatesSent
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Wed Aug 14 15:35:11 EDT 2013 from SVN revision 130445
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)