![]() |
VR-Link API Documentation for DIS
|
Instances of DtUnderwaterAcousticPdu are used to send information about simulated underwater acoustic emissions. More...
Inheritance diagram for DtUnderwaterAcousticPdu:
Collaboration diagram for DtUnderwaterAcousticPdu: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 | |
| DtUnderwaterAcousticPdu & | operator= (const DtUnderwaterAcousticPdu &orig) |
| Assignment operator. | |
| virtual void | setEmittingEntityID (const DtEntityIdentifier &entity) |
| Set/Get emitting entity identifier. | |
| virtual const DtEntityIdentifier & | emittingEntityID () const |
| virtual void | setEventID (const DtEventID &event) |
| Set/Get event identifier. | |
| virtual const DtEventID & | eventID () 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 DtPdu * | create (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. | |
| DtUnderwaterAcousticPdu * | self () 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. | |
Instances of DtUnderwaterAcousticPdu are used to send information about simulated underwater acoustic emissions.
Constructors.
| DtUnderwaterAcousticPdu::DtUnderwaterAcousticPdu | ( | const DtNetUnderwaterAcousticPdu * | initial, |
| DtBufferPtr | buffer = DtUSE_INTERNAL_BUFFER |
||
| ) |
| virtual DtUnderwaterAcousticPdu::~DtUnderwaterAcousticPdu | ( | ) | [virtual] |
destructor
| 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 DtEntityIdentifier& DtUnderwaterAcousticPdu::emittingEntityID | ( | ) | const [virtual] |
| 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::numAdditionalPassiveAct | ( | ) | const [virtual] |
| 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 DtUnderwaterAcousticPassiveParmIndex DtUnderwaterAcousticPdu::passiveParameterIndex | ( | ) | const [virtual] |
| 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.
| virtual DtUnderwaterAcousticPropulsionPlantConfig DtUnderwaterAcousticPdu::propulsionPlantConfig | ( | ) | const [virtual] |
| static void DtUnderwaterAcousticPdu::removeCallback | ( | DtExerciseConn * | conn, |
| DtUnderwaterAcousticPduCb | cb, | ||
| void * | usr | ||
| ) | [static] |
| DtUnderwaterAcousticPdu* DtUnderwaterAcousticPdu::self | ( | ) | const [protected] |
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.
| virtual bool DtUnderwaterAcousticPdu::setNumAdditionalPassiveAct | ( | DtU8 | num | ) | [virtual] |
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.
| virtual void DtUnderwaterAcousticPdu::setPassiveParameterIndex | ( | DtUnderwaterAcousticPassiveParmIndex | ind | ) | [virtual] |
Set/Get passive parameter index.
| virtual void DtUnderwaterAcousticPdu::setPropulsionPlantConfig | ( | DtUnderwaterAcousticPropulsionPlantConfig | config | ) | [virtual] |
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.
| virtual void DtUnderwaterAcousticPdu::setStateChangeUpdate | ( | DtUnderwaterAcousticUpdate | upd | ) | [virtual] |
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 DtUnderwaterAcousticUpdate DtUnderwaterAcousticPdu::stateChangeUpdate | ( | ) | const [virtual] |
| virtual char* DtUnderwaterAcousticPdu::var | ( | ) | const [protected, virtual] |
Returns a pointer to the first byte of variable length data.
Temporary objects for reference returns.
DtEventID DtUnderwaterAcousticPdu::myEventID [protected] |
const int DtUnderwaterAcousticPdu::theStaticSize [static, protected] |
Size of PDU with zero parameter records.