![]() |
VR-Link API Documentation for HLA 1.3
|
Instances of DtSignalInteraction are used to represent RadioSignal RPR FOM Interactions. More...
Inheritance diagram for DtSignalInteraction:
Collaboration diagram for DtSignalInteraction:Public Member Functions | |
| DtSignalInteraction () | |
| Default constructor. | |
| virtual | ~DtSignalInteraction () |
| Destructor. | |
| DtSignalInteraction (const DtSignalInteraction &orig) | |
| Copy constructor. | |
| DtSignalInteraction & | operator= (const DtSignalInteraction &orig) |
| Assignment operator. | |
| virtual void | printData () const |
| Print the interaction's data. | |
| virtual void | printDataToStream (std::ostream &stream) const |
| Print the interaction's data to a stream. | |
| virtual void | setNumSamples (DtU32 count) |
| Set/Get sample count. | |
| virtual DtU32 | numSamples () const |
| virtual void | setTdlType (DtTacticalDataLinkType link) |
| Set/Get tactical data link. | |
| virtual DtTacticalDataLinkType | tdlType () const |
| virtual unsigned long | streamTag (DtLongWordPortion upperLower=DtLowerWord) const |
| Get either the upper or lower word of the 64 bit StreamTag. | |
| virtual const char * | name () const |
| Name of the interaction. (Not necessarily the ClassName from the FOM.) | |
| virtual void | setRadioId (const DtGlobalObjectDesignator &id) |
| Set/Get Host radio id. | |
| virtual const DtGlobalObjectDesignator & | radioId () const |
| Set/Get Host radio id. | |
| virtual void | setSampleRate (DtU32 rate) |
| Set/Get sample rate. | |
| virtual DtU32 | sampleRate () const |
| Set/Get sample rate. | |
| virtual void | setNumDataBytes (DtU16 len) |
| Set/Get signal data length in bytes. | |
| virtual DtU16 | numDataBytes () const |
| Set/Get signal data length in bytes. | |
| virtual void | setNumDataBits (DtU16 len) |
| Set/Get signal data length in bits. | |
| virtual DtU16 | numDataBits () const |
| Set/Get signal data length in bits. | |
| virtual void | setData (const void *data, int numBytes) |
| Set/Get signal data. | |
| virtual const void * | data () const |
| Set/Get signal data. | |
| virtual DtU8 | dataByte (int byteNum) const |
| Set/Get the byteNum'th data byte. | |
| virtual void | setDataByte (int byteNum, DtU8 data) |
| Set/Get the byteNum'th data byte. | |
| virtual void | setEncodingType (DtEncodingType encoding) |
| Set/Get encoding type. | |
| virtual DtEncodingType | encodingType () const |
| Set/Get encoding type. | |
| virtual DtEncodingClass | encodingClass () const |
| Set/Get encoding class. | |
| virtual void | setEncodingClass (DtEncodingClass encodingClass) |
| Set/Get encoding class. | |
| virtual void | setTdlMessageCount (DtU16 count) |
| Set/Get TDL message count. | |
| virtual DtU16 | tdlMessageCount () const |
| Set/Get TDL message count. | |
| virtual void | setProtocolId (DtUserProtocol id) |
| Set/Get user protocol id. | |
| virtual DtUserProtocol | protocolId () const |
| Set/Get user protocol id. | |
| virtual void | setDatabaseIndex (DtU32 index) |
| Set/Get database index. | |
| virtual DtU32 | databaseIndex () const |
| Set/Get database index. | |
| virtual void | setDuration (DtU32 duration) |
| Set/Get duration. | |
| virtual DtU32 | duration () const |
| Set/Get duration. | |
| virtual void | setStartOffset (DtU32 offset) |
| Set/Get start offset. | |
| virtual DtU32 | startOffset () const |
| Set/Get start offset. | |
| virtual void | setStreamTag (unsigned long upper, unsigned long lower) |
| Set the Stream Tag, either as upper and lower word, or as full 64 bit integer. | |
| virtual void | setStreamTag (unsigned long st) |
| Set the Stream Tag, either as upper and lower word, or as full 64 bit integer. | |
Public Member Functions inherited from DtInteractionWithEncDec | |
| DtInteractionWithEncDec () | |
| default constructor | |
| virtual | ~DtInteractionWithEncDec () |
| destructor | |
| DtInteractionWithEncDec (const DtInteractionWithEncDec &orig) | |
| copy constructor | |
| DtInteractionWithEncDec & | operator= (const DtInteractionWithEncDec &orig) |
| assignment operator | |
| virtual void | setExConn (DtExerciseConn *exConn, DtInterClassDesc *classDesc=NULL) |
| Sets the interaction's ExerciseConn and class descriptor. | |
| virtual const RTI::ParameterHandleValuePairSet & | phvps () const |
| Get the parameter handle value pair set for the interaction. | |
| virtual void | setFromPhvps (const RTI::ParameterHandleValuePairSet &pvList) |
| Set contents from a parameter handle value pair set. | |
| virtual void | useThese (DtInteractionEncoder *enc, DtInteractionDecoder *dec, DtInteractionRep *data) |
| Specify an encoder, decoder, and interaction data repository to use in encoding and decoding. | |
| virtual DtInteractionEncoder * | encoder () const |
| Return the encoder we are using. | |
| virtual DtInteractionDecoder * | decoder () const |
| Return the decoder we are using. | |
Public Member Functions inherited from DtInteraction | |
| DtInteraction () | |
| default constructor | |
| virtual | ~DtInteraction () |
| destructor | |
| DtInteraction (const DtInteraction &orig) | |
| copy constructor | |
| DtInteraction & | operator= (const DtInteraction &orig) |
| assignment operator | |
| virtual RTI::InteractionClassHandle | interactionClassHandle () const |
| Get the interaction class handle. Returns 0 if no classDesc. | |
| virtual char * | interactionClassName () const |
| Get the interaction class name. Returns NULL if no classDesc. | |
| virtual int | numParameters () const |
| Get the number of parameters. Returns 0 if no classDesc. | |
| virtual bool | neededByFederation () const |
| Returns true if the interaction class is needed by the federation false otherwise. | |
| virtual void | print () const |
| Print the interaction's host rep data, including header. | |
| virtual void | printToStream (std::ostream &stream) const |
| Print the interaction to a stream. | |
| virtual void | printHeader () const |
| Print the header info. | |
| virtual void | printHeaderToStream (std::ostream &stream) const |
| Print the header info to a stream. | |
| virtual void | printDataToString (DtString &buff) const |
| Print the interaction's data to the string provided. | |
| virtual void | printParams (bool withHex) const |
| Print the header followed by the interaction's parameters. | |
| virtual void | printParamsToStream (std::ostream &stream, bool withHex) const |
| Print the header followed by the interaction's parameters to a stream. | |
| virtual DtExerciseConn * | exerciseConn () const |
| Get the current exercise connection. | |
| virtual DtInterClassDesc * | classDesc () const |
| Get the current class descriptor we're using for this interaction. | |
| virtual bool | customTagSet () const |
| Get whether a custom tag has been set on the interaction or not. | |
| virtual void | setCustomTag (const DtString &a_tag) |
| Set the user-defined tag. | |
| virtual void | setTag (const DtString &tag) |
| Set the user-defined tag. | |
| virtual const DtString & | tag () const |
| Get the user-defined tag. | |
| virtual const RTI::Region * | conveyedRegion () const |
| Get & Set the conveyed region of the reflected state message. | |
| virtual void | setConveyedRegion (const RTI::Region *region) |
| virtual void | setTimeStamp (DtTime time, DtTimeStampType type=DtTimeStampRelative) |
| Set the time of validity of the message, and whether this represents relative or absolute time. | |
| virtual DtTime | timeStamp () const |
| Return the time of validity of the message (in seconds past an hour) as set by setTimeStamp. | |
| virtual DtTimeStampType | timeStampType () const |
| Return the type of the time stamp. | |
| 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 void | setFedTime (const RTI::FedTime &ft) |
| This is used for TSO interactions. | |
| virtual const RTI::FedTime * | fedTime () const |
| When the interaction is received, if the federate sending the interaction had TSO set then the fedTime will be set. | |
| virtual void | setEventRetractionHandle (const RTI::EventRetractionHandle &handle) |
| Get/Set the EventRetractionHandle. | |
| virtual RTI::EventRetractionHandle | eventRetractionHandle () const |
| Get the event retraction handle. For more info see setEventRetractionHandle. | |
Static Public Member Functions | |
| static DtInteraction * | create () |
| Create a DtSignalInteraction. | |
| static void | addCallback (DtExerciseConn *conn, DtSignalInteractionCb cb, void *usr, DtDDMRegionSP region=DtDDMRegionSP()) |
| Add (register)/Remove (deregister) function to be called when interaction occurs. | |
| static void | removeCallback (DtExerciseConn *conn, DtSignalInteractionCb cb, void *usr, DtDDMRegionSP region=DtDDMRegionSP()) |
Protected Attributes | |
| DtGlobalObjectDesignator | myHostRadioId |
| DtU16 | mySignalDataLength |
| DtU8 * | mySignalData |
| bits | |
| DtTacticalDataLinkType | myTacticalDataLink |
| DtU16 | myTDLMessageCount |
| DtUserProtocol | myUserProtocolId |
| DtU32 | myDatabaseIndex |
| DtU32 | myDuration |
| DtU32 | myStartOffset |
| DtEncodingType | myEncodingType |
| DtEncodingClass | myEncodingClass |
| DtU32 | mySampleRate |
| DtU32 | mySampleCount |
| DtU32 | myStreamTagHi |
| Stream tag unsigned long long. | |
| DtU32 | myStreamTagLo |
Protected Attributes inherited from DtInteractionWithEncDec | |
| DtInteractionDecoder * | myDecoder |
| DtInteractionEncoder * | myEncoder |
| DtInteractionRep * | myData |
Protected Attributes inherited from DtInteraction | |
| DtInterClassDesc * | myClassDesc |
| DtExerciseConn * | myExConn |
| DtTime | myTime |
| DtTimeStampType | myTimeType |
| DtString | myTag |
| RTI::ParameterHandleValuePairSet * | myPvList |
| int | myPvListMaxSize |
| RTI::FedTime * | myFedTime |
| RTI::EventRetractionHandle | myRetractionHandle |
| const RTI::Region * | myConveyedRegion |
| bool | myCustomTagSet |
Additional Inherited Members | |
Protected Member Functions inherited from DtInteractionWithEncDec | |
| virtual DtInteractionDecoder * | createDecoder (DtExerciseConn *exConn) const |
| Called by decoderToUse to obtain a new'ed decoder. | |
| virtual DtInteractionEncoder * | createEncoder (DtExerciseConn *exConn) const |
| Called by encoderToUse to obtain a new'ed encoder. | |
| virtual DtInteractionDecoder * | decoderToUse (DtExerciseConn *exConn) const |
| Returns a decoder to use for decoding the interaction. | |
| virtual DtInteractionEncoder * | encoderToUse (DtExerciseConn *exConn) const |
| Returns an encoder to use for encoding the interaction. | |
Static Protected Attributes inherited from DtInteraction | |
| static bool | theTagIsAsciiTime |
Instances of DtSignalInteraction are used to represent RadioSignal RPR FOM Interactions.
The particular type of Signal interaction that is sent (Application Specific, Database Index, Encoded Audio, or Raw Binary) is determined by the encoding class.
| DtSignalInteraction::DtSignalInteraction | ( | ) |
Default constructor.
|
virtual |
Destructor.
| DtSignalInteraction::DtSignalInteraction | ( | const DtSignalInteraction & | orig | ) |
Copy constructor.
|
static |
Add (register)/Remove (deregister) function to be called when interaction occurs.
|
static |
Create a DtSignalInteraction.
Caller is responsible for deletion.
Reimplemented in DtJtidsLetRadioSignalInteraction, DtJtidsMessageRadioSignalInteraction, DtJtidsVoiceCvsdRadioSignalInteraction, DtJtidsVoiceLpc10RadioSignalInteraction, DtJtidsVoiceLpc12RadioSignalInteraction, DtL16RadioSignalInteraction, DtRttReplyRadioSignalInteraction, DtVmfRadioSignalInteraction, and DtRttabRadioSignalInteraction.
|
virtual |
Set/Get signal data.
|
virtual |
Set/Get database index.
This is only applicable to Database Index radio signals. In DIS, this value is packed into data bytes 0-3 of the signal data. These methods are not protocol-independent: they only exist in HLA, as this is set in the data portion of a DIS radio signal PDU.
|
virtual |
Set/Get the byteNum'th data byte.
|
virtual |
Set/Get duration.
This is only applicable to Database Index radio signals. In DIS, this value is packed into data bytes 8-11 of the signal data. These methods are not protocol-independent: they only exist in HLA, as this is set in the data portion of a DIS radio signal PDU.
|
virtual |
Set/Get encoding class.
This determines the particular type of RPR FOM radio signal sent, if using the default RPR FOM Mapper.
|
virtual |
Set/Get encoding type.
|
virtual |
Name of the interaction. (Not necessarily the ClassName from the FOM.)
Implements DtInteraction.
Reimplemented in DtJtidsLetRadioSignalInteraction, DtJtidsMessageRadioSignalInteraction, DtJtidsVoiceCvsdRadioSignalInteraction, DtJtidsVoiceLpc10RadioSignalInteraction, DtJtidsVoiceLpc12RadioSignalInteraction, DtL16RadioSignalInteraction, DtRttReplyRadioSignalInteraction, DtVmfRadioSignalInteraction, and DtRttabRadioSignalInteraction.
|
virtual |
Set/Get signal data length in bits.
|
virtual |
Set/Get signal data length in bytes.
|
virtual |
| DtSignalInteraction& DtSignalInteraction::operator= | ( | const DtSignalInteraction & | orig | ) |
Assignment operator.
|
virtual |
Print the interaction's data.
Reimplemented from DtInteraction.
|
virtual |
Print the interaction's data to a stream.
Reimplemented from DtInteraction.
Reimplemented in DtJtidsLetRadioSignalInteraction, DtJtidsMessageRadioSignalInteraction, DtJtidsVoiceCvsdRadioSignalInteraction, DtJtidsVoiceLpc10RadioSignalInteraction, DtJtidsVoiceLpc12RadioSignalInteraction, DtL16RadioSignalInteraction, DtRttReplyRadioSignalInteraction, DtVmfRadioSignalInteraction, and DtRttabRadioSignalInteraction.
|
virtual |
Set/Get user protocol id.
This is only applicable to Application Specific radio signals. In DIS, this value is contained in the first 32 bits of the signal data. These methods are not protocol-independent: they only exist in HLA, as this is set in the data portion of a DIS radio signal PDU.
|
virtual |
Set/Get Host radio id.
It should be noted that this is not protocol independent. In DIS, the radio a signal is associated with is determined through the entity ID and radio ID (which is an integer in DIS), as opposed to a string in HLA.
|
static |
|
virtual |
Set/Get sample rate.
|
virtual |
Set/Get signal data.
|
virtual |
Set/Get database index.
This is only applicable to Database Index radio signals. In DIS, this value is packed into data bytes 0-3 of the signal data. These methods are not protocol-independent: they only exist in HLA, as this is set in the data portion of a DIS radio signal PDU.
|
virtual |
Set/Get the byteNum'th data byte.
|
virtual |
Set/Get duration.
This is only applicable to Database Index radio signals. In DIS, this value is packed into data bytes 8-11 of the signal data. These methods are not protocol-independent: they only exist in HLA, as this is set in the data portion of a DIS radio signal PDU.
|
virtual |
Set/Get encoding class.
This determines the particular type of RPR FOM radio signal sent, if using the default RPR FOM Mapper.
|
virtual |
Set/Get encoding type.
|
virtual |
Set/Get signal data length in bits.
|
virtual |
Set/Get signal data length in bytes.
|
virtual |
Set/Get sample count.
|
virtual |
Set/Get user protocol id.
This is only applicable to Application Specific radio signals. In DIS, this value is contained in the first 32 bits of the signal data. These methods are not protocol-independent: they only exist in HLA, as this is set in the data portion of a DIS radio signal PDU.
|
virtual |
Set/Get Host radio id.
It should be noted that this is not protocol independent. In DIS, the radio a signal is associated with is determined through the entity ID and radio ID (which is an integer in DIS), as opposed to a string in HLA.
|
virtual |
Set/Get sample rate.
|
virtual |
Set/Get start offset.
This is only applicable to Database Index radio signals. In DIS, this value is packed into data bytes 4-7 of the signal data. These methods are not protocol-independent: they only exist in HLA, as this is set in the data portion of a DIS radio signal PDU.
|
virtual |
Set the Stream Tag, either as upper and lower word, or as full 64 bit integer.
This is used in the RPR 2 draft 17 encoding of the AudioData attribute of EncodedAudio radio signals.
|
virtual |
Set the Stream Tag, either as upper and lower word, or as full 64 bit integer.
This is used in the RPR 2 draft 17 encoding of the AudioData attribute of EncodedAudio radio signals.
|
virtual |
Set/Get TDL message count.
This is applicable to DatabaseIndex radio signals in HLA, and is contained in the Encoding Type of DIS radio signals.
|
virtual |
Set/Get tactical data link.
|
virtual |
Set/Get start offset.
This is only applicable to Database Index radio signals. In DIS, this value is packed into data bytes 4-7 of the signal data. These methods are not protocol-independent: they only exist in HLA, as this is set in the data portion of a DIS radio signal PDU.
|
virtual |
Get either the upper or lower word of the 64 bit StreamTag.
This is used in the RPR 2 draft 17 encoding of the AudioData attribute of EncodedAudio radio signals.
|
virtual |
Set/Get TDL message count.
This is applicable to DatabaseIndex radio signals in HLA, and is contained in the Encoding Type of DIS radio signals.
|
virtual |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
bits
|
protected |
|
protected |
|
protected |
Stream tag unsigned long long.
|
protected |
|
protected |
|
protected |
|
protected |