ITS
AppDenmIndication Class Reference

#include <AppDenmIndication.h>

Collaboration diagram for AppDenmIndication:
[legend]

Public Types

enum  AppDenmIndication_enum { AppDenmIndication_relevanceDistance, AppDenmIndication_relevanceTrafficDirection, AppDenmIndication_situationContainer }
 The e_AppDenmIndication enum defines the bit position of the options. More...
 
typedef enum AppDenmIndication::AppDenmIndication_enum e_AppDenmIndication
 The e_AppDenmIndication enum defines the bit position of the options. More...
 

Public Member Functions

 AppDenmIndication (DENM_t denm, quint32 validityDuration)
 AppDenmIndication AppDenmIndication constructor. More...
 
ActionIDData actionID () const
 actionID ActionID getter. More...
 
ReferencePositionData eventPosition () const
 eventPosition Event position getter. More...
 
quint32 validityDuration () const
 validityDuration Validity duration getter. More...
 
quint8 * relevanceDistance () const
 relevanceDistance Relevance distance getter. More...
 
quint8 * relevanceTrafficDirection () const
 relevanceTrafficDirection Relevance traffic direction getter. More...
 
quint8 * causeCode () const
 causeCode Cause code getter. More...
 
quint8 * subCauseCode () const
 subCauseCode Sub cause code getter. More...
 
quint64 detectionTime () const
 detectionTime Detection time getter. More...
 
void setActionID (ActionIDData a)
 setActionID ActionID setter. More...
 
void setEventPosition (ReferencePositionData r)
 setEventPosition Event position setter. More...
 
void setValidityDuration (quint32 v)
 setValidityDuration Validity duration setter. More...
 
void setRelevanceDistance (quint8 r)
 setRelevanceDistance Relevance distance setter. More...
 
void setRelevanceTrafficDirection (quint8 r)
 setRelevanceTrafficDirection Relevance traffic direction setter. More...
 
void setCauseCode (quint8 c)
 setCauseCode Cause code setter. More...
 
void setSubCauseCode (quint8 s)
 setSubCauseCode Sub cause code setter. More...
 
void setDetectionTime (quint64 d)
 setDetectionTime Detection time setter. More...
 
QByteArray toBin ()
 toBin Encode the AppDenmIndication into a byte array. More...
 
quint8 getOptions ()
 getOptions Generate the option byte. More...
 
void toString ()
 toString Print a human readable version of the AppDenmIndication. More...
 

Static Public Member Functions

static QByteArray toBluetooth (DENM_t denm, quint32 validityDuration)
 toBluetooth Encode an AppDenmIndication understable by the HMI. More...
 

Private Attributes

ActionIDData m_actionID
 
ReferencePositionData m_eventPosition
 
quint32 m_validityDuration
 
quint8 * m_relevanceDistance
 
quint8 * m_relevanceTrafficDirection
 
quint8 * m_causeCode
 
quint8 * m_subCauseCode
 
quint64 m_detectionTime
 

Detailed Description

Definition at line 17 of file AppDenmIndication.h.

Member Typedef Documentation

◆ e_AppDenmIndication

The e_AppDenmIndication enum defines the bit position of the options.

Member Enumeration Documentation

◆ AppDenmIndication_enum

The e_AppDenmIndication enum defines the bit position of the options.

Enumerator
AppDenmIndication_relevanceDistance 

Is the relevance distance present?

AppDenmIndication_relevanceTrafficDirection 

Is the relevance traffic direction present?

AppDenmIndication_situationContainer 

Is the situation container present?

Definition at line 30 of file AppDenmIndication.h.

Constructor & Destructor Documentation

◆ AppDenmIndication()

Member Function Documentation

◆ actionID()

ActionIDData AppDenmIndication::actionID ( ) const
inline

actionID ActionID getter.

Returns
The ActionID.

Definition at line 42 of file AppDenmIndication.h.

References m_actionID.

◆ causeCode()

quint8* AppDenmIndication::causeCode ( ) const
inline

causeCode Cause code getter.

Returns
The cause code.

Definition at line 67 of file AppDenmIndication.h.

References m_causeCode.

◆ detectionTime()

quint64 AppDenmIndication::detectionTime ( ) const
inline

detectionTime Detection time getter.

Returns
The detection time.

Definition at line 77 of file AppDenmIndication.h.

References m_detectionTime.

◆ eventPosition()

ReferencePositionData AppDenmIndication::eventPosition ( ) const
inline

eventPosition Event position getter.

Returns
The event position.

Definition at line 47 of file AppDenmIndication.h.

References m_eventPosition.

◆ getOptions()

quint8 AppDenmIndication::getOptions ( )

getOptions Generate the option byte.

Returns
The option byte.

Definition at line 36 of file AppDenmIndication.cpp.

References AppDenmIndication_relevanceDistance, AppDenmIndication_relevanceTrafficDirection, AppDenmIndication_situationContainer, m_causeCode, m_relevanceDistance, m_relevanceTrafficDirection, and m_subCauseCode.

Referenced by toBin().

Here is the caller graph for this function:

◆ relevanceDistance()

quint8* AppDenmIndication::relevanceDistance ( ) const
inline

relevanceDistance Relevance distance getter.

Returns
The relevance distance.

Definition at line 57 of file AppDenmIndication.h.

References m_relevanceDistance.

◆ relevanceTrafficDirection()

quint8* AppDenmIndication::relevanceTrafficDirection ( ) const
inline

relevanceTrafficDirection Relevance traffic direction getter.

Returns
The relevance traffic direction.

Definition at line 62 of file AppDenmIndication.h.

References m_relevanceTrafficDirection.

◆ setActionID()

void AppDenmIndication::setActionID ( ActionIDData  a)
inline

setActionID ActionID setter.

Parameters
aThe new ActionID.

Definition at line 84 of file AppDenmIndication.h.

References m_actionID.

◆ setCauseCode()

void AppDenmIndication::setCauseCode ( quint8  c)
inline

setCauseCode Cause code setter.

Parameters
cThe new cause code.

Definition at line 109 of file AppDenmIndication.h.

References m_causeCode.

◆ setDetectionTime()

void AppDenmIndication::setDetectionTime ( quint64  d)
inline

setDetectionTime Detection time setter.

Parameters
dThe new detection time.

Definition at line 119 of file AppDenmIndication.h.

References m_detectionTime.

◆ setEventPosition()

void AppDenmIndication::setEventPosition ( ReferencePositionData  r)
inline

setEventPosition Event position setter.

Parameters
rThe event position.

Definition at line 89 of file AppDenmIndication.h.

References m_eventPosition.

◆ setRelevanceDistance()

void AppDenmIndication::setRelevanceDistance ( quint8  r)
inline

setRelevanceDistance Relevance distance setter.

Parameters
rThe new relevance distance.

Definition at line 99 of file AppDenmIndication.h.

References m_relevanceDistance.

◆ setRelevanceTrafficDirection()

void AppDenmIndication::setRelevanceTrafficDirection ( quint8  r)
inline

setRelevanceTrafficDirection Relevance traffic direction setter.

Parameters
rThe new relevance traffic direction.

Definition at line 104 of file AppDenmIndication.h.

References m_relevanceTrafficDirection.

◆ setSubCauseCode()

void AppDenmIndication::setSubCauseCode ( quint8  s)
inline

setSubCauseCode Sub cause code setter.

Parameters
sThe new sub cause code.

Definition at line 114 of file AppDenmIndication.h.

References m_subCauseCode.

◆ setValidityDuration()

void AppDenmIndication::setValidityDuration ( quint32  v)
inline

setValidityDuration Validity duration setter.

Parameters
vThe new validity duration.

Definition at line 94 of file AppDenmIndication.h.

References m_validityDuration.

◆ subCauseCode()

quint8* AppDenmIndication::subCauseCode ( ) const
inline

subCauseCode Sub cause code getter.

Returns
The sub cause code.

Definition at line 72 of file AppDenmIndication.h.

References m_subCauseCode.

◆ toBin()

QByteArray AppDenmIndication::toBin ( )

toBin Encode the AppDenmIndication into a byte array.

Returns
The encoded AppDenmIndication.

Definition at line 50 of file AppDenmIndication.cpp.

References getOptions(), m_actionID, m_causeCode, m_detectionTime, m_eventPosition, m_relevanceDistance, m_relevanceTrafficDirection, m_subCauseCode, m_validityDuration, ActionIDData::toBin(), and ReferencePositionData::toBin().

Referenced by toBluetooth().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ toBluetooth()

QByteArray AppDenmIndication::toBluetooth ( DENM_t  denm,
quint32  validityDuration 
)
static

toBluetooth Encode an AppDenmIndication understable by the HMI.

Parameters
denmThe DENM.
validityDurationThe validity duration.
Returns
The encoded AppDenmIndication.

Definition at line 113 of file AppDenmIndication.cpp.

References toBin(), toString(), and validityDuration().

Referenced by ApplicationManagement::transformMessageToBT().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ toString()

void AppDenmIndication::toString ( )

toString Print a human readable version of the AppDenmIndication.

Definition at line 79 of file AppDenmIndication.cpp.

References m_actionID, m_causeCode, m_detectionTime, m_eventPosition, m_relevanceDistance, m_relevanceTrafficDirection, m_subCauseCode, m_validityDuration, ActionIDData::toString(), and ReferencePositionData::toString().

Referenced by toBluetooth().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ validityDuration()

quint32 AppDenmIndication::validityDuration ( ) const
inline

validityDuration Validity duration getter.

Returns
The validity duration.

Definition at line 52 of file AppDenmIndication.h.

References m_validityDuration.

Referenced by AppDenmIndication(), and toBluetooth().

Here is the caller graph for this function:

Member Data Documentation

◆ m_actionID

ActionIDData AppDenmIndication::m_actionID
private

DENM ActionID.

Definition at line 145 of file AppDenmIndication.h.

Referenced by actionID(), AppDenmIndication(), setActionID(), toBin(), and toString().

◆ m_causeCode

quint8* AppDenmIndication::m_causeCode
private

The cause code.

Definition at line 150 of file AppDenmIndication.h.

Referenced by AppDenmIndication(), causeCode(), getOptions(), setCauseCode(), toBin(), and toString().

◆ m_detectionTime

quint64 AppDenmIndication::m_detectionTime
private

The detection time.

Definition at line 152 of file AppDenmIndication.h.

Referenced by AppDenmIndication(), detectionTime(), setDetectionTime(), toBin(), and toString().

◆ m_eventPosition

ReferencePositionData AppDenmIndication::m_eventPosition
private

The event position.

Definition at line 146 of file AppDenmIndication.h.

Referenced by AppDenmIndication(), eventPosition(), setEventPosition(), toBin(), and toString().

◆ m_relevanceDistance

quint8* AppDenmIndication::m_relevanceDistance
private

The relevance distance.

Definition at line 148 of file AppDenmIndication.h.

Referenced by AppDenmIndication(), getOptions(), relevanceDistance(), setRelevanceDistance(), toBin(), and toString().

◆ m_relevanceTrafficDirection

quint8* AppDenmIndication::m_relevanceTrafficDirection
private

The relevance traffic direction.

Definition at line 149 of file AppDenmIndication.h.

Referenced by AppDenmIndication(), getOptions(), relevanceTrafficDirection(), setRelevanceTrafficDirection(), toBin(), and toString().

◆ m_subCauseCode

quint8* AppDenmIndication::m_subCauseCode
private

The sub cause code.

Definition at line 151 of file AppDenmIndication.h.

Referenced by AppDenmIndication(), getOptions(), setSubCauseCode(), subCauseCode(), toBin(), and toString().

◆ m_validityDuration

quint32 AppDenmIndication::m_validityDuration
private

The validity duration.

Definition at line 147 of file AppDenmIndication.h.

Referenced by AppDenmIndication(), setValidityDuration(), toBin(), toString(), and validityDuration().


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