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 |
| | DtStateMsg () |
| | default constructor
|
| virtual | ~DtStateMsg () |
| | destructor
|
| | DtStateMsg (const DtStateMsg &orig) |
| | copy constructor
|
| DtStateMsg & | operator= (const DtStateMsg &orig) |
| | assignment operator
|
| virtual | ~DtPdu () |
| | Destructor.
|
| | DtPdu (const DtPdu &pdu, DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER) |
| | Copy constructor.
|
| DtPdu & | operator= (const DtPdu &pdu) |
| | Assignment operator.
|
| virtual void * | packet () const |
| | Older function that returns a pointer to the network representation.
|
| virtual int | status () const |
| | Get PDU status.
|
| virtual void | setVersion (int vers) |
| | Set/Get protocol version from PDU header.
|
| virtual int | protocolVersion () const |
| virtual void | setExerciseId (int id) |
| | Set/Get exerciseID in PDU header.
|
| virtual int | exerciseId () const |
| virtual DtPduKind | kind () const |
| | Returns PDU kind from PDU header.
|
| virtual DtProtocolFamily | protocolFamily () const |
| | Returns protocol family from PDU header.
|
| virtual void | setTimeStamp (DtTime time, DtTimeStampType type=DtTimeStampRelative) |
| | Set the PDU header's time stamp to reflect time and type.
|
| virtual DtTime | timeStamp () const |
| | Return the time (in seconds past an hour) encoded in the PDU header's time stamp.
|
| virtual DtTimeStampType | timeStampType () const |
| | Return the type of the time stamp, as indicated in PDU header.
|
| virtual DtTime | guessTimeValid (DtTime referenceTime) const |
| | Since timestamp only represents number of seconds past the hour, guessTimeValid chooses the hour that would make the timestamp closest to reference time, and returns a time that is timestamp seconds past that hour.
|
| virtual DtNetPduHeader * | netHeader () const |
| | Returns a pointer to the PDU's header.
|
| virtual void | print () const |
| | Print the contents of the PDU by calling printToStream(DtInfo).
|
| virtual void | printToStream (std::ostream &stream) const |
| | Print the contents of the PDU by calling printHeaderToStream and printDataToStream.
|
| virtual void | printHeader () const |
| | Print the PDU's header. This calls printHeaderToStream(DtInfo).
|
| virtual void | printHeaderToStream (std::ostream &stream) const |
| | Print the PDU's header to a stream.
|
| virtual void | printDataToString (DtString &str) const |
| virtual | ~DtBaseMsg () |
| | Destructor.
|
| | DtBaseMsg (const DtBaseMsg &msg, DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER) |
| | Copy constructor.
|
| DtBaseMsg & | operator= (const DtBaseMsg &msg) |
| | Assignment.
|
| virtual const char * | netRep () const |
| | Get network representation.
|
| virtual int | length () const |
| | Get size of message.
|
Protected Member Functions |
| DtUnderwaterAcousticPdu * | self () const |
| | Casts the 'this' pointer for changing elements in a const function.
|
| 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.
|
| 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.
|
| int | computeStatus () const |
Instances of DtUnderwaterAcousticPdu are used to send information about simulated underwater acoustic emissions.