VR-Link API Documentation for HLA Evolved
Public Member Functions | Protected Member Functions | Protected Attributes
DtBaseExerciseConn Class Reference

DtBaseExerciseConn is an abstract base class. More...

+ Inheritance diagram for DtBaseExerciseConn:
+ Collaboration diagram for DtBaseExerciseConn:

List of all members.

Public Member Functions

virtual ~DtBaseExerciseConn ()
 destructor
virtual void send (const DtStateMsg &msg)=0
 Send a state message to the network.
virtual void send (const DtInteraction &msg)=0
 Send an interaction to the network.
virtual void sendStamped (const DtStateMsg &msg)=0
 Send a state message to the network which has been time stamped with the current time.
virtual void sendStamped (const DtInteraction &msg)=0
 Send an interaction to the network which has been time stamped with the current time.
virtual void addPostDrainCallback (DtPostDrainCb cb, void *usr)
 Add/remove callbacks to be executed from within drainInput right before it returns.
virtual void removePostDrainCallback (DtPostDrainCb cb, void *usr)
virtual void removeAllPostDrainCallbacks ()
virtual void setClock (DtClock *clock)
 This function allows one to set the exercise connection's clock -- overriding the default clock and setting the simulation time to zero.
virtual DtClockclock ()
 Get reference to exercise connection's clock.
virtual int lastDrainInputReceiveCount () const
virtual void incrementNumberOfMessagesProcessed ()
 Increments myNumberOfMessagesProcessed.
virtual void setApplicationId (int siteId, int applNum)
 ---------------------- ID MANAGEMENT ----------------------
virtual DtSimulationAddress applicationId ()
virtual const DtEntityIdentifiernextId ()
 Returns the next valid entity ID formed by calling makeEntityId with the current value of a entity number counter.
virtual DtEntityIdentifier makeEntityId (int entityNum)
 Returns an entity ID consisting of the DtExerciseConn's site and host numbers, and entityNum as the entity number.

Protected Member Functions

 DtBaseExerciseConn ()
 Constructors are protected since this is an abstract base class.
 DtBaseExerciseConn (const DtBaseExerciseConn &)
 copy constructor -- Not implemented
DtBaseExerciseConnoperator= (const DtBaseExerciseConn &)
 Assignment Operator -- Not Implemented.
virtual void executePostDrainCbs ()
 Should be called by derived class's drainInputs.

Protected Attributes

DtSimulationAddress myAppId
DtEntityIdentifier myCurrentId
DtList myPostDrainCbs
DtClockmyClock
int myNumberOfMessagesProcessed

Detailed Description

DtBaseExerciseConn is an abstract base class.

It provides an application's interface or connection to a network.


Constructor & Destructor Documentation

destructor

Constructors are protected since this is an abstract base class.

default constructor

copy constructor -- Not implemented


Member Function Documentation

virtual void DtBaseExerciseConn::addPostDrainCallback ( DtPostDrainCb  cb,
void *  usr 
) [virtual]

Add/remove callbacks to be executed from within drainInput right before it returns.

virtual DtClock* DtBaseExerciseConn::clock ( ) [virtual]

Get reference to exercise connection's clock.

virtual void DtBaseExerciseConn::executePostDrainCbs ( ) [protected, virtual]

Should be called by derived class's drainInputs.

Increments myNumberOfMessagesProcessed.

This is called by the federate ambassador each time it receives an object update.

virtual int DtBaseExerciseConn::lastDrainInputReceiveCount ( ) const [virtual]
virtual DtEntityIdentifier DtBaseExerciseConn::makeEntityId ( int  entityNum) [virtual]

Returns an entity ID consisting of the DtExerciseConn's site and host numbers, and entityNum as the entity number.

virtual const DtEntityIdentifier& DtBaseExerciseConn::nextId ( ) [virtual]

Returns the next valid entity ID formed by calling makeEntityId with the current value of a entity number counter.

DtBaseExerciseConn& DtBaseExerciseConn::operator= ( const DtBaseExerciseConn ) [protected]

Assignment Operator -- Not Implemented.

virtual void DtBaseExerciseConn::removePostDrainCallback ( DtPostDrainCb  cb,
void *  usr 
) [virtual]
virtual void DtBaseExerciseConn::send ( const DtStateMsg msg) [pure virtual]

Send a state message to the network.

Implemented in DtExerciseConn.

virtual void DtBaseExerciseConn::send ( const DtInteraction msg) [pure virtual]

Send an interaction to the network.

Implemented in DtExerciseConn.

virtual void DtBaseExerciseConn::sendStamped ( const DtStateMsg msg) [pure virtual]

Send a state message to the network which has been time stamped with the current time.

Implemented in DtExerciseConn.

virtual void DtBaseExerciseConn::sendStamped ( const DtInteraction msg) [pure virtual]

Send an interaction to the network which has been time stamped with the current time.

Implemented in DtExerciseConn.

virtual void DtBaseExerciseConn::setApplicationId ( int  siteId,
int  applNum 
) [virtual]

---------------------- ID MANAGEMENT ----------------------

Set/get the current application ID (DIS/RPR FOM site Id & host Id (application Id)).

virtual void DtBaseExerciseConn::setClock ( DtClock clock) [virtual]

This function allows one to set the exercise connection's clock -- overriding the default clock and setting the simulation time to zero.


Member Data Documentation


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

Document ID: Generated on Mon May 14 08:06:18 EDT 2012 from SVN revision 114750
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)