ITS
TrafficClass Class Reference

#include <TrafficClass.h>

Public Types

enum  e_helper { helper_size = 1 }
 The e_helper enum is used to help to have sizes. More...
 
enum  e_trafficClassID {
  trafficClassID_HighPriorityDENM = 0, trafficClassID_DENM = 1, trafficClassID_CAM = 2, trafficClassID_MultihopDENM = 3,
  trafficClassID_otherDataTraffic = 3
}
 The e_trafficClassID enum defines the TC IDs. More...
 

Public Member Functions

 TrafficClass ()
 TrafficClass TrafficClass constructor. More...
 
 TrafficClass (quint8 SCF, quint8 channelOffload, quint8 TCID)
 TrafficClass TrafficClass initialization constructor. More...
 
 TrafficClass (quint8 SCF_ChannelOffload_TCID)
 TrafficClass TrafficClass initialization constructor. More...
 
 TrafficClass (const TrafficClass &other)
 TrafficClass TrafficClass copy constructor. More...
 
quint8 SCF () const
 SCF Store-carry-forward field getter. More...
 
quint8 channelOffload () const
 channelOffload Channel offload field getter. More...
 
quint8 TCID () const
 TCID Traffic class ID field getter. More...
 
quint8 SCF_ChannelOffload_TCID () const
 SCF_ChannelOffload_TCID SCF + Channel offload + TC ID fields getter. More...
 
QByteArray toHex ()
 toHex Encode the TrafficClass in binary. More...
 

Private Attributes

quint8 m_SCF_ChannelOffload_TCID
 

Detailed Description

Definition at line 28 of file TrafficClass.h.

Member Enumeration Documentation

◆ e_helper

The e_helper enum is used to help to have sizes.

Enumerator
helper_size 

Size of the TC.

Definition at line 34 of file TrafficClass.h.

◆ e_trafficClassID

The e_trafficClassID enum defines the TC IDs.

Enumerator
trafficClassID_HighPriorityDENM 

DENM with high priority.

trafficClassID_DENM 

Near DENM.

trafficClassID_CAM 

CAM.

trafficClassID_MultihopDENM 

Far away DENM.

trafficClassID_otherDataTraffic 

Other data traffic.

Definition at line 42 of file TrafficClass.h.

Constructor & Destructor Documentation

◆ TrafficClass() [1/4]

TrafficClass::TrafficClass ( )

TrafficClass TrafficClass constructor.

Definition at line 3 of file TrafficClass.cpp.

References itsGnDefaultTrafficClass, and m_SCF_ChannelOffload_TCID.

◆ TrafficClass() [2/4]

TrafficClass::TrafficClass ( quint8  SCF,
quint8  channelOffload,
quint8  TCID 
)

TrafficClass TrafficClass initialization constructor.

Parameters
SCFStore-carry-forward field.
channelOffloadChannel offload field.
TCIDTraffic class ID field.

Definition at line 13 of file TrafficClass.cpp.

References channelOffload(), m_SCF_ChannelOffload_TCID, SCF(), and TCID().

Here is the call graph for this function:

◆ TrafficClass() [3/4]

TrafficClass::TrafficClass ( quint8  SCF_ChannelOffload_TCID)

TrafficClass TrafficClass initialization constructor.

Parameters
SCF_ChannelOffload_TCIDSCF + Channel offload + TC ID fields.

Definition at line 8 of file TrafficClass.cpp.

References m_SCF_ChannelOffload_TCID, and SCF_ChannelOffload_TCID().

Here is the call graph for this function:

◆ TrafficClass() [4/4]

TrafficClass::TrafficClass ( const TrafficClass other)

TrafficClass TrafficClass copy constructor.

Parameters
otherThe TrafficClass to copy.

Definition at line 20 of file TrafficClass.cpp.

References m_SCF_ChannelOffload_TCID, and SCF_ChannelOffload_TCID().

Here is the call graph for this function:

Member Function Documentation

◆ channelOffload()

quint8 TrafficClass::channelOffload ( ) const
inline

channelOffload Channel offload field getter.

Returns
The channel offload field.

Definition at line 83 of file TrafficClass.h.

References m_SCF_ChannelOffload_TCID.

Referenced by ParameterConfiguration::readDebug(), and TrafficClass().

Here is the caller graph for this function:

◆ SCF()

quint8 TrafficClass::SCF ( ) const
inline

SCF Store-carry-forward field getter.

Returns
The store-carry-forward field.

Definition at line 78 of file TrafficClass.h.

References m_SCF_ChannelOffload_TCID.

Referenced by GeoNet::greedy(), ParameterConfiguration::readDebug(), GeoNet::sendSHB(), GeoNet::sendTSB(), TrafficClass(), and GeoNet::tsbPacketProcessing().

Here is the caller graph for this function:

◆ SCF_ChannelOffload_TCID()

quint8 TrafficClass::SCF_ChannelOffload_TCID ( ) const
inline

SCF_ChannelOffload_TCID SCF + Channel offload + TC ID fields getter.

Returns
The SCF + Channel offload + TC ID fields.

Definition at line 93 of file TrafficClass.h.

References m_SCF_ChannelOffload_TCID.

Referenced by TrafficClass().

Here is the caller graph for this function:

◆ TCID()

quint8 TrafficClass::TCID ( ) const
inline

TCID Traffic class ID field getter.

Returns
The traffic class ID.

Definition at line 88 of file TrafficClass.h.

References m_SCF_ChannelOffload_TCID.

Referenced by ParameterConfiguration::readDebug(), and TrafficClass().

Here is the caller graph for this function:

◆ toHex()

QByteArray TrafficClass::toHex ( )

toHex Encode the TrafficClass in binary.

Returns
The encoded TrafficClass.

Definition at line 25 of file TrafficClass.cpp.

References m_SCF_ChannelOffload_TCID.

Referenced by gnDataRequestToBin(), and CommonHeader::toHex().

Here is the caller graph for this function:

Member Data Documentation

◆ m_SCF_ChannelOffload_TCID

quint8 TrafficClass::m_SCF_ChannelOffload_TCID
private

SCF + Channel offload + TC ID fields.

Definition at line 103 of file TrafficClass.h.

Referenced by channelOffload(), SCF(), SCF_ChannelOffload_TCID(), TCID(), toHex(), and TrafficClass().


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