VR-Link API Documentation for DIS
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes
DtUnderwaterAcousticPdu Class Reference

Instances of DtUnderwaterAcousticPdu are used to send information about simulated underwater acoustic emissions. More...

+ Inheritance diagram for DtUnderwaterAcousticPdu:
+ Collaboration diagram for DtUnderwaterAcousticPdu:

List of all members.

Public Member Functions

 DtUnderwaterAcousticPdu (DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER)
 Constructors.
 DtUnderwaterAcousticPdu (const DtNetUnderwaterAcousticPdu *initial, DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER)
 DtUnderwaterAcousticPdu (const DtUnderwaterAcousticPdu &orig)
virtual ~DtUnderwaterAcousticPdu ()
 destructor
DtUnderwaterAcousticPduoperator= (const DtUnderwaterAcousticPdu &orig)
 Assignment operator.
virtual void setEmittingEntityID (const DtEntityIdentifier &entity)
 Set/Get emitting entity identifier.
virtual const DtEntityIdentifieremittingEntityID () const
virtual void setEventID (const DtEventID &event)
 Set/Get event identifier.
virtual const DtEventIDeventID () const
virtual void setStateChangeUpdate (DtUnderwaterAcousticUpdate upd)
 Set/Get state/change update indicator.
virtual DtUnderwaterAcousticUpdate stateChangeUpdate () const
virtual void setPassiveParameterIndex (DtUnderwaterAcousticPassiveParmIndex ind)
 Set/Get passive parameter index.
virtual
DtUnderwaterAcousticPassiveParmIndex 
passiveParameterIndex () const
virtual void setPropulsionPlantConfig (DtUnderwaterAcousticPropulsionPlantConfig config)
 Set/Get propulsion plant configuration.
virtual
DtUnderwaterAcousticPropulsionPlantConfig 
propulsionPlantConfig () const
virtual bool setNumShafts (DtU8 num)
 Set/Get number of shafts.
virtual DtU8 numShafts () const
virtual bool setNumAdditionalPassiveAct (DtU8 num)
 Set/Get number of additional passive activities.
virtual DtU8 numAdditionalPassiveAct () const
virtual bool setNumEmitterSystems (DtU8 num)
 Set/Get number of emitter systems.
virtual DtU8 numEmitterSystems () const
virtual bool setNumBeams (int emitterSystemIndex, DtU8 num)
 Set/Get number of beam data records for a particular emitter system.
virtual DtU8 numBeams (int emitterSystemIndex) const
virtual bool setShaftSpeed (int index, const DtUnderwaterAcousticShaftSpeed &record)
 Set/Get a shaft speed data record.
virtual bool getShaftSpeed (int index, DtUnderwaterAcousticShaftSpeed &record) const
virtual bool setAddtnlPassiveAct (int index, const DtUnderwaterAcousticAddtnlPassiveAct &record)
 Set/Get an additional passive activity data record.
virtual bool getAddtnlPassiveAct (int index, DtUnderwaterAcousticAddtnlPassiveAct &record) const
virtual bool setEmitterSystem (int index, const DtUnderwaterAcousticEmitterSystem &record)
 Set/Get an underwater acoustic emitter system.
virtual bool getEmitterSystem (int index, DtUnderwaterAcousticEmitterSystem &record) const
virtual bool setBeam (int emitterSystemIndex, int beamIndex, const DtUnderwaterAcousticBeam &record)
 Set/Get beam fundamental data parameters for a beam.
virtual bool getBeam (int emitterSystemIndex, int beamIndex, DtUnderwaterAcousticBeam &record) const
virtual void printData () const
 Print the data contained by this PDU.
virtual void printDataToStream (std::ostream &stream) const

Static Public Member Functions

static DtPducreate (const DtNetPacket *initial, DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER)
 Create a DtUnderwaterAcousticPdu.
static void addCallback (DtExerciseConn *conn, DtUnderwaterAcousticPduCb cb, void *usr)
 Add (register)/Remove (deregister) function to be called when pdu is received.
static void removeCallback (DtExerciseConn *conn, DtUnderwaterAcousticPduCb cb, void *usr)

Protected Member Functions

virtual DtPduKind internalGetPduKind () const
 Returns the internal PDU kind.
virtual
DtNetUnderwaterAcousticPdu
netPduStruct () const
 Casts the netPdu element to our network struct.
virtual char * var () const
 Returns a pointer to the first byte of variable length data.
DtUnderwaterAcousticPduself () const
 Casts the 'this' pointer for changing elements in a const function.
virtual int shaftSpeedRecordOffset (int recordIndex) const
 Returns a buffer offset to the given shaft speed record.
virtual int passiveActRecordOffset (int recordIndex) const
 Returns a buffer offset to the given additional passive activity record.
virtual int emitterSystemRecordOffset (int recordIndex) const
 Returns a buffer offset to the given acoustic emitter system.
virtual int beamDataRecordOffset (int emitterSystemIndex, int beamIndex) const
 Returns a buffer offset to the given beam fundamental data parameter of a particular emitter system.

Protected Attributes

DtEntityIdentifier myEntityID
 Temporary objects for reference returns.
DtEventID myEventID

Static Protected Attributes

static const int theStaticSize
 Size of PDU with zero parameter records.

Detailed Description

Instances of DtUnderwaterAcousticPdu are used to send information about simulated underwater acoustic emissions.


Constructor & Destructor Documentation

Constructors.

destructor


Member Function Documentation

static void DtUnderwaterAcousticPdu::addCallback ( DtExerciseConn conn,
DtUnderwaterAcousticPduCb  cb,
void *  usr 
) [static]

Add (register)/Remove (deregister) function to be called when pdu is received.

virtual int DtUnderwaterAcousticPdu::beamDataRecordOffset ( int  emitterSystemIndex,
int  beamIndex 
) const [protected, virtual]

Returns a buffer offset to the given beam fundamental data parameter of a particular emitter system.

static DtPdu* DtUnderwaterAcousticPdu::create ( const DtNetPacket initial,
DtBufferPtr  buffer = DtUSE_INTERNAL_BUFFER 
) [static]

Create a DtUnderwaterAcousticPdu.

Caller is responsible for deletion.

virtual int DtUnderwaterAcousticPdu::emitterSystemRecordOffset ( int  recordIndex) const [protected, virtual]

Returns a buffer offset to the given acoustic emitter system.

virtual const DtEventID& DtUnderwaterAcousticPdu::eventID ( ) const [virtual]
virtual bool DtUnderwaterAcousticPdu::getAddtnlPassiveAct ( int  index,
DtUnderwaterAcousticAddtnlPassiveAct record 
) const [virtual]
virtual bool DtUnderwaterAcousticPdu::getBeam ( int  emitterSystemIndex,
int  beamIndex,
DtUnderwaterAcousticBeam record 
) const [virtual]
virtual bool DtUnderwaterAcousticPdu::getEmitterSystem ( int  index,
DtUnderwaterAcousticEmitterSystem record 
) const [virtual]
virtual bool DtUnderwaterAcousticPdu::getShaftSpeed ( int  index,
DtUnderwaterAcousticShaftSpeed record 
) const [virtual]
virtual DtPduKind DtUnderwaterAcousticPdu::internalGetPduKind ( ) const [protected, virtual]

Returns the internal PDU kind.

Implements DtPdu.

virtual DtNetUnderwaterAcousticPdu* DtUnderwaterAcousticPdu::netPduStruct ( ) const [protected, virtual]

Casts the netPdu element to our network struct.

virtual DtU8 DtUnderwaterAcousticPdu::numBeams ( int  emitterSystemIndex) const [virtual]
virtual DtU8 DtUnderwaterAcousticPdu::numEmitterSystems ( ) const [virtual]
virtual DtU8 DtUnderwaterAcousticPdu::numShafts ( ) const [virtual]
DtUnderwaterAcousticPdu& DtUnderwaterAcousticPdu::operator= ( const DtUnderwaterAcousticPdu orig)

Assignment operator.

virtual int DtUnderwaterAcousticPdu::passiveActRecordOffset ( int  recordIndex) const [protected, virtual]

Returns a buffer offset to the given additional passive activity record.

virtual void DtUnderwaterAcousticPdu::printData ( ) const [virtual]

Print the data contained by this PDU.

Reimplemented from DtPdu.

virtual void DtUnderwaterAcousticPdu::printDataToStream ( std::ostream &  stream) const [virtual]

Reimplemented from DtPdu.

static void DtUnderwaterAcousticPdu::removeCallback ( DtExerciseConn conn,
DtUnderwaterAcousticPduCb  cb,
void *  usr 
) [static]

Casts the 'this' pointer for changing elements in a const function.

Non-virtual, since you can't override based on return type.

virtual bool DtUnderwaterAcousticPdu::setAddtnlPassiveAct ( int  index,
const DtUnderwaterAcousticAddtnlPassiveAct record 
) [virtual]

Set/Get an additional passive activity data record.

Returns false if the record does not exist.

virtual bool DtUnderwaterAcousticPdu::setBeam ( int  emitterSystemIndex,
int  beamIndex,
const DtUnderwaterAcousticBeam record 
) [virtual]

Set/Get beam fundamental data parameters for a beam.

Returns false if the record does not exist. Data length field is automatically set by the PDU class.

virtual bool DtUnderwaterAcousticPdu::setEmitterSystem ( int  index,
const DtUnderwaterAcousticEmitterSystem record 
) [virtual]

Set/Get an underwater acoustic emitter system.

Returns false if the record does not exist. Data length field is automatically set by the PDU class.

virtual void DtUnderwaterAcousticPdu::setEmittingEntityID ( const DtEntityIdentifier entity) [virtual]

Set/Get emitting entity identifier.

virtual void DtUnderwaterAcousticPdu::setEventID ( const DtEventID event) [virtual]

Set/Get event identifier.

Set/Get number of additional passive activities.

May return false if PDU size would exceed the maximum PDU size.

virtual bool DtUnderwaterAcousticPdu::setNumBeams ( int  emitterSystemIndex,
DtU8  num 
) [virtual]

Set/Get number of beam data records for a particular emitter system.

May return false if PDU size would exceed the maximum PDU size or if the emitter system number is invalid.

virtual bool DtUnderwaterAcousticPdu::setNumEmitterSystems ( DtU8  num) [virtual]

Set/Get number of emitter systems.

May return false if PDU size would exceed the maximum PDU size.

virtual bool DtUnderwaterAcousticPdu::setNumShafts ( DtU8  num) [virtual]

Set/Get number of shafts.

May return false if PDU size would exceed the maximum PDU size.

Set/Get passive parameter index.

Set/Get propulsion plant configuration.

virtual bool DtUnderwaterAcousticPdu::setShaftSpeed ( int  index,
const DtUnderwaterAcousticShaftSpeed record 
) [virtual]

Set/Get a shaft speed data record.

Returns false if the record does not exist.

Set/Get state/change update indicator.

virtual int DtUnderwaterAcousticPdu::shaftSpeedRecordOffset ( int  recordIndex) const [protected, virtual]

Returns a buffer offset to the given shaft speed record.

virtual char* DtUnderwaterAcousticPdu::var ( ) const [protected, virtual]

Returns a pointer to the first byte of variable length data.


Member Data Documentation

Temporary objects for reference returns.

const int DtUnderwaterAcousticPdu::theStaticSize [static, protected]

Size of PDU with zero parameter records.


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)