![]() |
VR-Link API Documentation for DIS
|
The DtLink16Signal class is a helper class that is used to assist the user in setting Link16 data as defined by the SISO-STD-002-2006 document. More...
Collaboration diagram for DtLink16Signal:Classes | |
| struct | DtNetLink16SignalFields |
| This is the net structure that's used to encode the Link16 fields in the data section of the signal PDU/interaction. More... | |
Public Member Functions | |
| DtLink16Signal () | |
| Default constructor. | |
| DtLink16Signal (const DtSignalInteraction *signal) | |
| Constructor that takes a signal interaction. | |
| virtual | ~DtLink16Signal () |
| Destructor. | |
| virtual void | encode (DtSignalInteraction *inter, int numJWords, const void *data, int sizeOfData) |
| Encodes the Link 16 data contained in this class into the interaction passed in. | |
| virtual void * | decode (const DtSignalInteraction *inter) |
| Decodes the interaction passed in, into this class. | |
| virtual void | setNpgNumber (DtU16 npg) |
| Set/Get the NPG Number. | |
| virtual DtU16 | npgNumber () const |
| Set/Get the NPG Number. | |
| virtual void | setNetNumber (DtU8 net) |
| Set/Get the Net Number. | |
| virtual DtU8 | netNumber () const |
| Set/Get the Net Number. | |
| virtual void | setTsecCvll (DtU8 val) |
| Set/Get the TSEC CVLL. | |
| virtual DtU8 | tsecCvll () const |
| Set/Get the TSEC CVLL. | |
| virtual void | setMsecCvll (DtU8 val) |
| Set/Get the MSEC CVLL. | |
| virtual DtU8 | msecCvll () const |
| Set/Get the MSEC CVLL. | |
| virtual void | setLink16MessageType (DtLink16MessageTypeEnum val) |
| Set/Get the Message Type. | |
| virtual DtLink16MessageTypeEnum | link16MessageType () const |
| Set/Get the Message Type. | |
| virtual void | setTimeIdSlotNumber (DtU32 val) |
| Set/Get the Time Slot ID Slot Number. | |
| virtual DtU32 | timeIdSlotNumber () const |
| Set/Get the Time Slot ID Slot Number. | |
| virtual void | setTimeIdEpochNumber (DtU8 val) |
| Set/Get the Time Slot ID Epoch Number. | |
| virtual DtU8 | timeIdEpochNumber () const |
| Set/Get the Time Slot ID Epoch Number. | |
| virtual void | setPerceivedTransmitTimeInteger (DtU32 val) |
| Set/Get the perceived transmit time (integer portion). | |
| virtual DtU32 | perceivedTransmitTimeInteger () const |
| Set/Get the perceived transmit time (integer portion). | |
| virtual void | setPerceivedTransmitTimeFraction (DtU32 val) |
| Set/Get the perceived transmit time (fraction portion). | |
| virtual DtU32 | perceivedTransmitTimeFraction () const |
| Set/Get the perceived transmit time (fraction portion). | |
Protected Attributes | |
| DtU16 | myNpgNumber |
| DtU8 | myNetNumber |
| DtU8 | myTsecCvll |
| DtU8 | myMsecCvll |
| DtLink16MessageTypeEnum | myMessagetype |
| DtU32 | myTimeSlotId |
| DtU32 | myTimeInteger |
| DtU32 | myTimeFraction |
The DtLink16Signal class is a helper class that is used to assist the user in setting Link16 data as defined by the SISO-STD-002-2006 document.
The user is responsible for setting the data for the actual Link16 message, and passes the message data into the encode method, which will place it after the Link 16 fields in the data section of the interaction/PDU.
Default constructor.
| DtLink16Signal::DtLink16Signal | ( | const DtSignalInteraction * | signal | ) |
Constructor that takes a signal interaction.
Calls decode, passing in the signal.
| virtual DtLink16Signal::~DtLink16Signal | ( | ) | [virtual] |
Destructor.
| virtual void* DtLink16Signal::decode | ( | const DtSignalInteraction * | inter | ) | [virtual] |
Decodes the interaction passed in, into this class.
Returns the data section of the interaction, after the Link-16 fields. The size of this data can be determined by the DtSignalInteraction's numDataBytes() method minus 20 (the size of the Link 16 data).
| virtual void DtLink16Signal::encode | ( | DtSignalInteraction * | inter, |
| int | numJWords, | ||
| const void * | data, | ||
| int | sizeOfData | ||
| ) | [virtual] |
Encodes the Link 16 data contained in this class into the interaction passed in.
The number of J-Words needs to be specified, along with the data (Link-16 message), and the size of that data, in bytes.
| virtual DtLink16MessageTypeEnum DtLink16Signal::link16MessageType | ( | ) | const [virtual] |
Set/Get the Message Type.
In HLA, this is used to determine what type of Link 16 Signal interaction is sent.
| virtual DtU8 DtLink16Signal::msecCvll | ( | ) | const [virtual] |
Set/Get the MSEC CVLL.
| virtual DtU8 DtLink16Signal::netNumber | ( | ) | const [virtual] |
Set/Get the Net Number.
| virtual DtU16 DtLink16Signal::npgNumber | ( | ) | const [virtual] |
Set/Get the NPG Number.
| virtual DtU32 DtLink16Signal::perceivedTransmitTimeFraction | ( | ) | const [virtual] |
Set/Get the perceived transmit time (fraction portion).
| virtual DtU32 DtLink16Signal::perceivedTransmitTimeInteger | ( | ) | const [virtual] |
Set/Get the perceived transmit time (integer portion).
| virtual void DtLink16Signal::setLink16MessageType | ( | DtLink16MessageTypeEnum | val | ) | [virtual] |
Set/Get the Message Type.
In HLA, this is used to determine what type of Link 16 Signal interaction is sent.
| virtual void DtLink16Signal::setMsecCvll | ( | DtU8 | val | ) | [virtual] |
Set/Get the MSEC CVLL.
| virtual void DtLink16Signal::setNetNumber | ( | DtU8 | net | ) | [virtual] |
Set/Get the Net Number.
| virtual void DtLink16Signal::setNpgNumber | ( | DtU16 | npg | ) | [virtual] |
Set/Get the NPG Number.
| virtual void DtLink16Signal::setPerceivedTransmitTimeFraction | ( | DtU32 | val | ) | [virtual] |
Set/Get the perceived transmit time (fraction portion).
| virtual void DtLink16Signal::setPerceivedTransmitTimeInteger | ( | DtU32 | val | ) | [virtual] |
Set/Get the perceived transmit time (integer portion).
| virtual void DtLink16Signal::setTimeIdEpochNumber | ( | DtU8 | val | ) | [virtual] |
Set/Get the Time Slot ID Epoch Number.
| virtual void DtLink16Signal::setTimeIdSlotNumber | ( | DtU32 | val | ) | [virtual] |
Set/Get the Time Slot ID Slot Number.
| virtual void DtLink16Signal::setTsecCvll | ( | DtU8 | val | ) | [virtual] |
Set/Get the TSEC CVLL.
| virtual DtU8 DtLink16Signal::timeIdEpochNumber | ( | ) | const [virtual] |
Set/Get the Time Slot ID Epoch Number.
| virtual DtU32 DtLink16Signal::timeIdSlotNumber | ( | ) | const [virtual] |
Set/Get the Time Slot ID Slot Number.
| virtual DtU8 DtLink16Signal::tsecCvll | ( | ) | const [virtual] |
Set/Get the TSEC CVLL.
DtLink16MessageTypeEnum DtLink16Signal::myMessagetype [protected] |
DtU8 DtLink16Signal::myMsecCvll [protected] |
DtU8 DtLink16Signal::myNetNumber [protected] |
DtU16 DtLink16Signal::myNpgNumber [protected] |
DtU32 DtLink16Signal::myTimeFraction [protected] |
DtU32 DtLink16Signal::myTimeInteger [protected] |
DtU32 DtLink16Signal::myTimeSlotId [protected] |
DtU8 DtLink16Signal::myTsecCvll [protected] |