VR-Link API Documentation for HLA 1.3
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | Private Member Functions
DtEmitterSystemPublisher Class Reference

Instances of DtEmitterSystemPublisher are used for local or source simulations of emitter systems, (i.e. More...

+ Inheritance diagram for DtEmitterSystemPublisher:
+ Collaboration diagram for DtEmitterSystemPublisher:

List of all members.

Public Types

typedef
DtEmitterSystemRepository *(* 
DtStateRepCreator )()
 Function prototype for functions that create DtEmitterSystemRepositories.

Public Member Functions

 DtEmitterSystemPublisher (DtEmitterSystemRepository *stateRepToUse, DtExerciseConn *conn, const char *name=0, const DtDDMRegionSet *regionSetToUse=0)
 Constructor.
 DtEmitterSystemPublisher (RTI::ObjectClassHandle h, DtExerciseConn *conn, const char *name=0, const DtDDMRegionSet *regionSetToUse=0)
 Constructor.
 DtEmitterSystemPublisher (DtExerciseConn *conn, const char *name=0, const DtDDMRegionSet *regionSetToUse=0)
 Constructor.
 DtEmitterSystemPublisher (DtHlaObjectWithStateRep *obj, DtExerciseConn *conn)
 Constructor that creates a publisher for an existing DtHlaObject.
virtual ~DtEmitterSystemPublisher ()
 destructor
virtual DtEmitterSystemRepositoryemitterSystemRep ()
 Returns a pointer to the DtEmitterSystemRepository - through which you can set or inspect current state information.
virtual DtEmitterSystemRepositoryesr ()
 Synonym for emitterSystemRep().
virtual const char * classToUse () const
 Returns the name of the FOM object class to use.
virtual void tick ()
 syncBeamList and update beam objects as well as main system object.
virtual void forceUpdate ()
 if called, at the next tick all attributes will be sent to the RTI This call differs from the base callback by also including a force update of all beam children.
virtual void forceUpdate (const RTI::AttributeHandleSet &set)
 If the attribute set is specified, forceUpdate will call through to DtObjectPublisher::forceUpdate and the beams children will not be updated.

Static Public Member Functions

static DtStateRepCreator setStateRepCreator (DtStateRepCreator creator)
 Give us a function to be used for creating SRs.

Protected Member Functions

virtual void syncBeamList ()
 Update myBeamPubs so that it has a publisher for all beamSRs in my systemSR, but no others.
virtual DtEmitterBeamPublisherpublisherForBsr (DtEmitterBeamRepository *bsr)
 Returns the publisher responsible for publishing the indicated BSR, NULL if there is none.
virtual int numBeams () const
 Return number of beam publishers.

Protected Attributes

DtList myBeamPubs
 List of DtEmitterBeamPubs.
bool myTickedFirstTime

Static Protected Attributes

static DtStateRepCreator theStateRepCreator

Private Member Functions

 DtEmitterSystemPublisher (const DtEmitterSystemPublisher &orig)
 copy constructor -- not implemented
DtEmitterSystemPublisheroperator= (const DtEmitterSystemPublisher &orig)
 assignment operator -- not implemented

Detailed Description

Instances of DtEmitterSystemPublisher are used for local or source simulations of emitter systems, (i.e.

these entities are not dependent on data being produced elsewhere on the network for their existence). These emitter systems send data to the network.


Member Typedef Documentation

Function prototype for functions that create DtEmitterSystemRepositories.


Constructor & Destructor Documentation

DtEmitterSystemPublisher::DtEmitterSystemPublisher ( DtEmitterSystemRepository stateRepToUse,
DtExerciseConn conn,
const char *  name = 0,
const DtDDMRegionSet regionSetToUse = 0 
)

Constructor.

DtEmitterSystemPublisher::DtEmitterSystemPublisher ( RTI::ObjectClassHandle  h,
DtExerciseConn conn,
const char *  name = 0,
const DtDDMRegionSet regionSetToUse = 0 
)

Constructor.

DtEmitterSystemPublisher::DtEmitterSystemPublisher ( DtExerciseConn conn,
const char *  name = 0,
const DtDDMRegionSet regionSetToUse = 0 
)

Constructor.

Constructor that creates a publisher for an existing DtHlaObject.

(DtHlaObjectWithStateRep is derived from DtHlaObject.) Typically used in conjunction with ownership management, when you want to take ownership and begin updating some attributes of an object that you have already discovered.

destructor

copy constructor -- not implemented


Member Function Documentation

virtual const char* DtEmitterSystemPublisher::classToUse ( ) const [virtual]

Returns the name of the FOM object class to use.

Default implementation is to ask the FOM Mapper.

Returns a pointer to the DtEmitterSystemRepository - through which you can set or inspect current state information.

References DtObjectPublisher::myStateRep.

virtual void DtEmitterSystemPublisher::forceUpdate ( ) [virtual]

if called, at the next tick all attributes will be sent to the RTI This call differs from the base callback by also including a force update of all beam children.

Reimplemented from DtObjectPublisher.

virtual void DtEmitterSystemPublisher::forceUpdate ( const RTI::AttributeHandleSet &  set) [virtual]

If the attribute set is specified, forceUpdate will call through to DtObjectPublisher::forceUpdate and the beams children will not be updated.

This function is added to prevent it from being hidden

Reimplemented from DtObjectPublisher.

virtual int DtEmitterSystemPublisher::numBeams ( ) const [protected, virtual]

Return number of beam publishers.

DtEmitterSystemPublisher& DtEmitterSystemPublisher::operator= ( const DtEmitterSystemPublisher orig) [private]

assignment operator -- not implemented

Returns the publisher responsible for publishing the indicated BSR, NULL if there is none.

Give us a function to be used for creating SRs.

virtual void DtEmitterSystemPublisher::syncBeamList ( ) [protected, virtual]

Update myBeamPubs so that it has a publisher for all beamSRs in my systemSR, but no others.

Called by tick() so that all beamPubs can be ticked after systemSR has been updated.

virtual void DtEmitterSystemPublisher::tick ( ) [virtual]

syncBeamList and update beam objects as well as main system object.

Reimplemented from DtObjectPublisher.


Member Data Documentation

List of DtEmitterBeamPubs.


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)