ITS
|
#include <AppDenmIndication.h>
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 |
Definition at line 17 of file AppDenmIndication.h.
The e_AppDenmIndication enum defines the bit position of the options.
The e_AppDenmIndication enum defines the bit position of the options.
Definition at line 30 of file AppDenmIndication.h.
AppDenmIndication::AppDenmIndication | ( | DENM_t | denm, |
quint32 | validityDuration | ||
) |
AppDenmIndication AppDenmIndication constructor.
Definition at line 5 of file AppDenmIndication.cpp.
References ManagementContainer::actionID, asn_INTEGER2ulong(), CauseCode::causeCode, DENM::denm, ManagementContainer::detectionTime, ManagementContainer::eventPosition, SituationContainer::eventType, m_actionID, m_causeCode, m_detectionTime, m_eventPosition, m_relevanceDistance, m_relevanceTrafficDirection, m_subCauseCode, m_validityDuration, DecentralizedEnvironmentalNotificationMessage::management, ManagementContainer::relevanceDistance, ManagementContainer::relevanceTrafficDirection, DecentralizedEnvironmentalNotificationMessage::situation, CauseCode::subCauseCode, and validityDuration().
|
inline |
actionID ActionID getter.
Definition at line 42 of file AppDenmIndication.h.
References m_actionID.
|
inline |
causeCode Cause code getter.
Definition at line 67 of file AppDenmIndication.h.
References m_causeCode.
|
inline |
detectionTime Detection time getter.
Definition at line 77 of file AppDenmIndication.h.
References m_detectionTime.
|
inline |
eventPosition Event position getter.
Definition at line 47 of file AppDenmIndication.h.
References m_eventPosition.
quint8 AppDenmIndication::getOptions | ( | ) |
getOptions Generate 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().
|
inline |
relevanceDistance Relevance distance getter.
Definition at line 57 of file AppDenmIndication.h.
References m_relevanceDistance.
|
inline |
relevanceTrafficDirection Relevance traffic direction getter.
Definition at line 62 of file AppDenmIndication.h.
References m_relevanceTrafficDirection.
|
inline |
setActionID ActionID setter.
a | The new ActionID. |
Definition at line 84 of file AppDenmIndication.h.
References m_actionID.
|
inline |
setCauseCode Cause code setter.
c | The new cause code. |
Definition at line 109 of file AppDenmIndication.h.
References m_causeCode.
|
inline |
setDetectionTime Detection time setter.
d | The new detection time. |
Definition at line 119 of file AppDenmIndication.h.
References m_detectionTime.
|
inline |
setEventPosition Event position setter.
r | The event position. |
Definition at line 89 of file AppDenmIndication.h.
References m_eventPosition.
|
inline |
setRelevanceDistance Relevance distance setter.
r | The new relevance distance. |
Definition at line 99 of file AppDenmIndication.h.
References m_relevanceDistance.
|
inline |
setRelevanceTrafficDirection Relevance traffic direction setter.
r | The new relevance traffic direction. |
Definition at line 104 of file AppDenmIndication.h.
References m_relevanceTrafficDirection.
|
inline |
setSubCauseCode Sub cause code setter.
s | The new sub cause code. |
Definition at line 114 of file AppDenmIndication.h.
References m_subCauseCode.
|
inline |
setValidityDuration Validity duration setter.
v | The new validity duration. |
Definition at line 94 of file AppDenmIndication.h.
References m_validityDuration.
|
inline |
subCauseCode Sub cause code getter.
Definition at line 72 of file AppDenmIndication.h.
References m_subCauseCode.
QByteArray AppDenmIndication::toBin | ( | ) |
toBin Encode the AppDenmIndication into a byte array.
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().
|
static |
toBluetooth Encode an AppDenmIndication understable by the HMI.
denm | The DENM. |
validityDuration | The validity duration. |
Definition at line 113 of file AppDenmIndication.cpp.
References toBin(), toString(), and validityDuration().
Referenced by ApplicationManagement::transformMessageToBT().
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().
|
inline |
validityDuration Validity duration getter.
Definition at line 52 of file AppDenmIndication.h.
References m_validityDuration.
Referenced by AppDenmIndication(), and toBluetooth().
|
private |
Definition at line 145 of file AppDenmIndication.h.
Referenced by actionID(), AppDenmIndication(), setActionID(), toBin(), and toString().
|
private |
The cause code.
Definition at line 150 of file AppDenmIndication.h.
Referenced by AppDenmIndication(), causeCode(), getOptions(), setCauseCode(), toBin(), and toString().
|
private |
The detection time.
Definition at line 152 of file AppDenmIndication.h.
Referenced by AppDenmIndication(), detectionTime(), setDetectionTime(), toBin(), and toString().
|
private |
The event position.
Definition at line 146 of file AppDenmIndication.h.
Referenced by AppDenmIndication(), eventPosition(), setEventPosition(), toBin(), and toString().
|
private |
The relevance distance.
Definition at line 148 of file AppDenmIndication.h.
Referenced by AppDenmIndication(), getOptions(), relevanceDistance(), setRelevanceDistance(), toBin(), and toString().
|
private |
The relevance traffic direction.
Definition at line 149 of file AppDenmIndication.h.
Referenced by AppDenmIndication(), getOptions(), relevanceTrafficDirection(), setRelevanceTrafficDirection(), toBin(), and toString().
|
private |
The sub cause code.
Definition at line 151 of file AppDenmIndication.h.
Referenced by AppDenmIndication(), getOptions(), setSubCauseCode(), subCauseCode(), toBin(), and toString().
|
private |
The validity duration.
Definition at line 147 of file AppDenmIndication.h.
Referenced by AppDenmIndication(), setValidityDuration(), toBin(), toString(), and validityDuration().