VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Classes | Public Member Functions | Protected Attributes
DtLink16Signal Class Reference

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. More...
 
 DtLink16Signal (const DtSignalInteraction *signal)
 Constructor that takes a signal interaction. More...
 
virtual ~DtLink16Signal ()
 Destructor. More...
 
virtual void printData () const
 Print the data contained by this PDU. More...
 
virtual void printDataToStream (std::ostream &stream) const
 Print the data to a stream. More...
 
virtual void encodeHeader (DtSignalInteraction *inter, int numJWords, const void *data, int sizeOfData)
 Encodes the Link 16 data contained in this class into the interaction passed in. More...
 
virtual void * decodeHeader (const DtSignalInteraction *inter)
 Decodes the interaction passed in, into this class. More...
 
virtual void setNpgNumber (DtU16 npg)
 Set/Get the NPG Number. More...
 
virtual DtU16 npgNumber () const
 Set/Get the NPG Number. More...
 
virtual void setNetNumber (DtU8 net)
 Set/Get the Net Number. More...
 
virtual DtU8 netNumber () const
 Set/Get the Net Number. More...
 
virtual void setTsecCvll (DtU8 val)
 Set/Get the TSEC CVLL. More...
 
virtual DtU8 tsecCvll () const
 Set/Get the TSEC CVLL. More...
 
virtual void setMsecCvll (DtU8 val)
 Set/Get the MSEC CVLL. More...
 
virtual DtU8 msecCvll () const
 Set/Get the MSEC CVLL. More...
 
virtual void setLink16MessageType (DtLink16MessageTypeEnum val)
 Set/Get the Message Type. More...
 
virtual DtLink16MessageTypeEnum link16MessageType () const
 Set/Get the Message Type. More...
 
virtual void setTimeIdSlotNumber (DtU32 val)
 Set/Get the Time Slot ID Slot Number. More...
 
virtual DtU32 timeIdSlotNumber () const
 Set/Get the Time Slot ID Slot Number. More...
 
virtual void setTimeIdEpochNumber (DtU8 val)
 Set/Get the Time Slot ID Epoch Number. More...
 
virtual DtU8 timeIdEpochNumber () const
 Set/Get the Time Slot ID Epoch Number. More...
 
virtual void setPerceivedTransmitTimeInteger (DtU32 val)
 Set/Get the perceived transmit time (integer portion). More...
 
virtual DtU32 perceivedTransmitTimeInteger () const
 Set/Get the perceived transmit time (integer portion). More...
 
virtual void setPerceivedTransmitTimeFraction (DtU32 val)
 Set/Get the perceived transmit time (fraction portion). More...
 
virtual DtU32 perceivedTransmitTimeFraction () const
 Set/Get the perceived transmit time (fraction portion). More...
 

Protected Attributes

DtU16 myNpgNumber
 
DtU8 myNetNumber
 
DtU8 myTsecCvll
 
DtU8 myMsecCvll
 
DtLink16MessageTypeEnum myMessagetype
 
DtU32 myTimeSlotId
 
DtU32 myTimeInteger
 
DtU32 myTimeFraction
 

Detailed Description

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.

Constructor & Destructor Documentation

DtLink16Signal::DtLink16Signal ( )

Default constructor.

DtLink16Signal::DtLink16Signal ( const DtSignalInteraction signal)

Constructor that takes a signal interaction.

Calls decode, passing in the signal.

virtual DtLink16Signal::~DtLink16Signal ( )
virtual

Destructor.

Member Function Documentation

virtual void* DtLink16Signal::decodeHeader ( 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::encodeHeader ( 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::printData ( ) const
virtual

Print the data contained by this PDU.

virtual void DtLink16Signal::printDataToStream ( std::ostream &  stream) const
virtual

Print the data to a stream.

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.

Member Data Documentation

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

The documentation for this class was generated from the following file:

Document ID: Generated on Tue Aug 10 00:12:31 EDT 2021 from SVN revision 232765
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)