ITS
denMessageTableSource Class Reference

#include <denMessageTableSource.h>

Inheritance diagram for denMessageTableSource:
[legend]
Collaboration diagram for denMessageTableSource:
[legend]

Public Types

enum  { state_NONE, state_ACTIVE, state_CANCELED, state_NEGATED }
 

Public Slots

void endOfT_O_Validity ()
 endOfT_O_Validity Slot used when T_O_Validity expires. More...
 
void endOfT_RepetitionDuration ()
 endOfT_RepetitionDuration Slot used when T_RepetitionDuration expires. More...
 
void endOfT_Repetition ()
 T_Repetition Slot used when T_Repetition expires. More...
 
void execute ()
 execute Execute the timers. More...
 

Signals

void T_O_ValiditySignal (ActionID_t)
 T_O_ValiditySignal Signal used when T_O_Validity expires. More...
 
void T_RepetitionSignal (ActionID_t)
 T_RepetitionSignal Signal used when T_Repetition expires. More...
 
void DENMrepeated ()
 DENMrepeated Signal used when a DENM is repeated. More...
 

Public Member Functions

 denMessageTableSource ()
 denMessageTableSource denMessageTableSource constructor. More...
 
 denMessageTableSource (const denMessageTableSource &messageTable)
 denMessageTableSource denMessageTableSource copy constructor. More...
 
 ~denMessageTableSource ()
 
DENM_t denm () const
 denm DENM getter. More...
 
int status () const
 status DENM's status getter. More...
 
TimestampIts_t timestamp () const
 timestamp DENM's timestamp getter. More...
 
qint64 T_O_Validity () const
 T_O_Validity T_O_Validity getter. More...
 
qint32 T_RepetitionDuration () const
 T_RepetitionDuration T_RepetitionDuration getter. More...
 
qint32 T_Repetition () const
 T_Repetition T_Repetition getter. More...
 
quint8 trafficClass () const
 trafficClass DENM's traffic class getter. More...
 
ActionID_t actionID () const
 actionID DENM's ActionID getter. More...
 
DestinationAreaData destinationArea () const
 destinationArea DENM's destination area getter. More...
 
void setStatus (int s)
 setStatus DENM's status setter. More...
 
void setTimestamp (TimestampIts_t t)
 setTimestamp DENM's timestamp setter. More...
 
void setDENM (DENM_t d)
 setDENM DENM setter. More...
 
void setT_O_Validity (qint64 t)
 setT_O_Validity T_O_Validity setter. More...
 
void setT_RepetitionDuration (qint32 t)
 setT_RepetitionDuration T_RepetitionDuration setter. More...
 
void setT_Repetition (qint32 t)
 setT_Repetition T_Repetition setter. More...
 
void setTrafficClass (quint8 t)
 setTrafficClass DENM's traffic class setter. More...
 
void setActionID (ActionID_t a)
 setActionID DENM's ActionID setter. More...
 
void setDestinationArea (DestinationAreaData d)
 setDestinationArea DENM's destination area setter. More...
 
denMessageTableSourceoperator= (const denMessageTableSource &other)
 operator= Affectation operator. More...
 

Public Attributes

denMessageTableSourceThreadm_validity
 
denMessageTableSourceThreadm_repetitionDuration
 
denMessageTableSourceThreadm_repetition
 
QThread * m_thread
 

Private Attributes

DestinationAreaData m_destination
 
DENM_t m_denm
 
int m_status
 
TimestampIts_t m_timestamp
 
qint64 m_T_O_Validity
 
qint32 m_T_RepetitionDuration
 
qint32 m_T_Repetition
 
quint8 m_trafficClass
 
ActionID_t m_actionID
 

Detailed Description

Definition at line 25 of file denMessageTableSource.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Enumeration used to know the status of the DENM.

Enumerator
state_NONE 

The DENM is not active.

state_ACTIVE 

The DENM is active.

state_CANCELED 

The DENM is canceled.

state_NEGATED 

The DENM is negated.

Definition at line 34 of file denMessageTableSource.h.

Constructor & Destructor Documentation

◆ denMessageTableSource() [1/2]

denMessageTableSource::denMessageTableSource ( )

denMessageTableSource denMessageTableSource constructor.

Definition at line 3 of file denMessageTableSource.cpp.

References asn_long2INTEGER(), execute(), m_denm, m_T_O_Validity, m_T_Repetition, m_T_RepetitionDuration, m_thread, and m_timestamp.

Here is the call graph for this function:

◆ denMessageTableSource() [2/2]

denMessageTableSource::denMessageTableSource ( const denMessageTableSource messageTable)
explicit

denMessageTableSource denMessageTableSource copy constructor.

Parameters
messageTableThe denMessageTableSource to copy.

Definition at line 15 of file denMessageTableSource.cpp.

References actionID(), denm(), m_thread, setActionID(), setDENM(), setStatus(), setT_O_Validity(), setT_Repetition(), setT_RepetitionDuration(), setTimestamp(), setTrafficClass(), status(), T_O_Validity(), T_Repetition(), T_RepetitionDuration(), timestamp(), and trafficClass().

Here is the call graph for this function:

◆ ~denMessageTableSource()

denMessageTableSource::~denMessageTableSource ( )

~denMessageTableSource denMessageTableSource destructor.

Definition at line 77 of file denMessageTableSource.cpp.

References m_repetition, m_repetitionDuration, m_validity, setT_O_Validity(), setT_Repetition(), setT_RepetitionDuration(), and denMessageTableSourceThread::stopTimer().

Here is the call graph for this function:

Member Function Documentation

◆ actionID()

ActionID_t denMessageTableSource::actionID ( ) const
inline

actionID DENM's ActionID getter.

Returns
The DENM's ActionID.

Definition at line 103 of file denMessageTableSource.h.

References m_actionID.

Referenced by denMessageTableSource(), and operator=().

Here is the caller graph for this function:

◆ denm()

DENM_t denMessageTableSource::denm ( ) const
inline

denm DENM getter.

Returns
The DENM.

Definition at line 68 of file denMessageTableSource.h.

References m_denm.

Referenced by denMessageTableSource(), and operator=().

Here is the caller graph for this function:

◆ DENMrepeated

void denMessageTableSource::DENMrepeated ( )
signal

DENMrepeated Signal used when a DENM is repeated.

◆ destinationArea()

DestinationAreaData denMessageTableSource::destinationArea ( ) const
inline

destinationArea DENM's destination area getter.

Returns
The DENM's destination area.

Definition at line 108 of file denMessageTableSource.h.

References m_destination.

Referenced by operator=().

Here is the caller graph for this function:

◆ endOfT_O_Validity

void denMessageTableSource::endOfT_O_Validity ( )
slot

endOfT_O_Validity Slot used when T_O_Validity expires.

Definition at line 87 of file denMessageTableSource.cpp.

References ManagementContainer::actionID, DENM::denm, m_denm, m_repetition, m_repetitionDuration, DecentralizedEnvironmentalNotificationMessage::management, denMessageTableSourceThread::setTimer(), denMessageTableSourceThread::stopTimer(), and T_O_ValiditySignal().

Referenced by execute().

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

◆ endOfT_Repetition

void denMessageTableSource::endOfT_Repetition ( )
slot

T_Repetition Slot used when T_Repetition expires.

Definition at line 112 of file denMessageTableSource.cpp.

References ManagementContainer::actionID, DENM::denm, m_denm, m_repetition, denMessageTableSourceThread::m_t, denMessageTableSourceThread::m_T_Repetition_timer, DecentralizedEnvironmentalNotificationMessage::management, T_RepetitionSignal(), and denMessageTableSourceThread::timer().

Referenced by execute().

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

◆ endOfT_RepetitionDuration

void denMessageTableSource::endOfT_RepetitionDuration ( )
slot

endOfT_RepetitionDuration Slot used when T_RepetitionDuration expires.

Definition at line 104 of file denMessageTableSource.cpp.

References m_repetition, denMessageTableSourceThread::setTimer(), and denMessageTableSourceThread::stopTimer().

Referenced by execute().

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

◆ execute

void denMessageTableSource::execute ( )
slot

execute Execute the timers.

Definition at line 28 of file denMessageTableSource.cpp.

References endOfT_O_Validity(), endOfT_Repetition(), endOfT_RepetitionDuration(), m_repetition, m_repetitionDuration, m_T_O_Validity, denMessageTableSourceThread::m_T_O_Validity_timer, m_T_Repetition, denMessageTableSourceThread::m_T_Repetition_timer, m_T_RepetitionDuration, denMessageTableSourceThread::m_T_RepetitionDuration_timer, m_validity, T_O_ValiditySignal(), T_RepetitionSignal(), and denMessageTableSourceThread::timer().

Referenced by denMessageTableSource().

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

◆ operator=()

denMessageTableSource & denMessageTableSource::operator= ( const denMessageTableSource other)

operator= Affectation operator.

Parameters
otherThe denMessageTableSource to affect.
Returns
The affected denMessageTableSource.

Definition at line 59 of file denMessageTableSource.cpp.

References actionID(), denm(), destinationArea(), m_destination, m_repetition, m_repetitionDuration, m_validity, setActionID(), setDENM(), setStatus(), setT_O_Validity(), setT_Repetition(), setT_RepetitionDuration(), setTimestamp(), setTrafficClass(), status(), T_O_Validity(), T_Repetition(), T_RepetitionDuration(), timestamp(), and trafficClass().

Here is the call graph for this function:

◆ setActionID()

void denMessageTableSource::setActionID ( ActionID_t  a)
inline

setActionID DENM's ActionID setter.

Parameters
aThe new DENM's ActionID.

Definition at line 160 of file denMessageTableSource.h.

References m_actionID, ActionID::originatingStationID, ActionID::sequenceNumber, setSequenceNumber(), and setStationID().

Referenced by denTriggeringManagement::AppDENM_trigger(), denMessageTableSource(), operator=(), and denReceptionManagement::sendRequestResponseIndication_Response().

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

◆ setDENM()

void denMessageTableSource::setDENM ( DENM_t  d)
inline

setDENM DENM setter.

Parameters
dThe new DENM.

Definition at line 131 of file denMessageTableSource.h.

References DENM::denm, DENM::header, m_denm, setDecentralizedEnvironmentalNotificationMessage(), and setItsPduHeader().

Referenced by denTriggeringManagement::AppDENM_trigger(), denMessageTableSource(), operator=(), and denReceptionManagement::sendRequestResponseIndication_Response().

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

◆ setDestinationArea()

void denMessageTableSource::setDestinationArea ( DestinationAreaData  d)
inline

setDestinationArea DENM's destination area setter.

Parameters
dThe new DENM's destination area.

Definition at line 169 of file denMessageTableSource.h.

References m_destination.

Referenced by denTriggeringManagement::AppDENM_trigger().

Here is the caller graph for this function:

◆ setStatus()

void denMessageTableSource::setStatus ( int  s)
inline

setStatus DENM's status setter.

Parameters
sThe new DENM's status.

Definition at line 115 of file denMessageTableSource.h.

References m_status.

Referenced by denTriggeringManagement::AppDENM_trigger(), denMessageTableSource(), and operator=().

Here is the caller graph for this function:

◆ setT_O_Validity()

void denMessageTableSource::setT_O_Validity ( qint64  t)
inline

setT_O_Validity T_O_Validity setter.

Parameters
tThe new T_O_Validity.

Definition at line 140 of file denMessageTableSource.h.

References m_T_O_Validity.

Referenced by denTriggeringManagement::AppDENM_trigger(), denMessageTableSource(), operator=(), denReceptionManagement::sendRequestResponseIndication_Response(), and ~denMessageTableSource().

Here is the caller graph for this function:

◆ setT_Repetition()

void denMessageTableSource::setT_Repetition ( qint32  t)
inline

setT_Repetition T_Repetition setter.

Parameters
tThe new T_Repetition.

Definition at line 150 of file denMessageTableSource.h.

References m_T_Repetition.

Referenced by denTriggeringManagement::AppDENM_trigger(), denMessageTableSource(), operator=(), and ~denMessageTableSource().

Here is the caller graph for this function:

◆ setT_RepetitionDuration()

void denMessageTableSource::setT_RepetitionDuration ( qint32  t)
inline

setT_RepetitionDuration T_RepetitionDuration setter.

Parameters
tThe new T_RepetitionDuration.

Definition at line 145 of file denMessageTableSource.h.

References m_T_RepetitionDuration.

Referenced by denTriggeringManagement::AppDENM_trigger(), denMessageTableSource(), operator=(), and ~denMessageTableSource().

Here is the caller graph for this function:

◆ setTimestamp()

void denMessageTableSource::setTimestamp ( TimestampIts_t  t)
inline

setTimestamp DENM's timestamp setter.

Parameters
tThe new DENM's timestamp.

Definition at line 120 of file denMessageTableSource.h.

References asn_INTEGER2ulong(), asn_ulong2INTEGER(), and m_timestamp.

Referenced by denMessageTableSource(), and operator=().

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

◆ setTrafficClass()

void denMessageTableSource::setTrafficClass ( quint8  t)
inline

setTrafficClass DENM's traffic class setter.

Parameters
tThe new DENM's traffic class.

Definition at line 155 of file denMessageTableSource.h.

References m_trafficClass.

Referenced by denTriggeringManagement::AppDENM_trigger(), denMessageTableSource(), operator=(), and denReceptionManagement::sendRequestResponseIndication_Response().

Here is the caller graph for this function:

◆ status()

int denMessageTableSource::status ( ) const
inline

status DENM's status getter.

Returns
The DENM's status.

Definition at line 73 of file denMessageTableSource.h.

References m_status.

Referenced by denMessageTableSource(), and operator=().

Here is the caller graph for this function:

◆ T_O_Validity()

qint64 denMessageTableSource::T_O_Validity ( ) const
inline

T_O_Validity T_O_Validity getter.

Returns
The T_O_Validity.

Definition at line 83 of file denMessageTableSource.h.

References m_T_O_Validity.

Referenced by denMessageTableSource(), and operator=().

Here is the caller graph for this function:

◆ T_O_ValiditySignal

void denMessageTableSource::T_O_ValiditySignal ( ActionID_t  )
signal

T_O_ValiditySignal Signal used when T_O_Validity expires.

Referenced by endOfT_O_Validity(), and execute().

Here is the caller graph for this function:

◆ T_Repetition()

qint32 denMessageTableSource::T_Repetition ( ) const
inline

T_Repetition T_Repetition getter.

Returns
The T_Repetition.

Definition at line 93 of file denMessageTableSource.h.

References m_T_Repetition.

Referenced by denMessageTableSource(), and operator=().

Here is the caller graph for this function:

◆ T_RepetitionDuration()

qint32 denMessageTableSource::T_RepetitionDuration ( ) const
inline

T_RepetitionDuration T_RepetitionDuration getter.

Returns
The T_RepetitionDuration.

Definition at line 88 of file denMessageTableSource.h.

References m_T_RepetitionDuration.

Referenced by denMessageTableSource(), and operator=().

Here is the caller graph for this function:

◆ T_RepetitionSignal

void denMessageTableSource::T_RepetitionSignal ( ActionID_t  )
signal

T_RepetitionSignal Signal used when T_Repetition expires.

Referenced by endOfT_Repetition(), and execute().

Here is the caller graph for this function:

◆ timestamp()

TimestampIts_t denMessageTableSource::timestamp ( ) const
inline

timestamp DENM's timestamp getter.

Returns
The DENM's timestamp.

Definition at line 78 of file denMessageTableSource.h.

References m_timestamp.

Referenced by denMessageTableSource(), and operator=().

Here is the caller graph for this function:

◆ trafficClass()

quint8 denMessageTableSource::trafficClass ( ) const
inline

trafficClass DENM's traffic class getter.

Returns
The DENM's traffic class.

Definition at line 98 of file denMessageTableSource.h.

References m_trafficClass.

Referenced by denMessageTableSource(), and operator=().

Here is the caller graph for this function:

Member Data Documentation

◆ m_actionID

ActionID_t denMessageTableSource::m_actionID
private

DENM's ActionID.

Definition at line 202 of file denMessageTableSource.h.

Referenced by actionID(), and setActionID().

◆ m_denm

DENM_t denMessageTableSource::m_denm
private

◆ m_destination

DestinationAreaData denMessageTableSource::m_destination
private

DENM's destination area.

Definition at line 194 of file denMessageTableSource.h.

Referenced by destinationArea(), operator=(), and setDestinationArea().

◆ m_repetition

denMessageTableSourceThread* denMessageTableSource::m_repetition

◆ m_repetitionDuration

denMessageTableSourceThread* denMessageTableSource::m_repetitionDuration

RepetitionDuration thread.

Definition at line 44 of file denMessageTableSource.h.

Referenced by endOfT_O_Validity(), execute(), operator=(), and ~denMessageTableSource().

◆ m_status

int denMessageTableSource::m_status
private

DENM's status.

Definition at line 196 of file denMessageTableSource.h.

Referenced by setStatus(), and status().

◆ m_T_O_Validity

qint64 denMessageTableSource::m_T_O_Validity
private

T_O_Validity.

Definition at line 198 of file denMessageTableSource.h.

Referenced by denMessageTableSource(), execute(), setT_O_Validity(), and T_O_Validity().

◆ m_T_Repetition

qint32 denMessageTableSource::m_T_Repetition
private

T_Repetition.

Definition at line 200 of file denMessageTableSource.h.

Referenced by denMessageTableSource(), execute(), setT_Repetition(), and T_Repetition().

◆ m_T_RepetitionDuration

qint32 denMessageTableSource::m_T_RepetitionDuration
private

T_RepetitionDuration.

Definition at line 199 of file denMessageTableSource.h.

Referenced by denMessageTableSource(), execute(), setT_RepetitionDuration(), and T_RepetitionDuration().

◆ m_thread

QThread* denMessageTableSource::m_thread

Global thread.

Definition at line 46 of file denMessageTableSource.h.

Referenced by denTriggeringManagement::AppDENM_trigger(), and denMessageTableSource().

◆ m_timestamp

TimestampIts_t denMessageTableSource::m_timestamp
private

DENM's timestamp.

Definition at line 197 of file denMessageTableSource.h.

Referenced by denMessageTableSource(), setTimestamp(), and timestamp().

◆ m_trafficClass

quint8 denMessageTableSource::m_trafficClass
private

DENM's traffic class.

Definition at line 201 of file denMessageTableSource.h.

Referenced by setTrafficClass(), and trafficClass().

◆ m_validity

denMessageTableSourceThread* denMessageTableSource::m_validity

Validity thread.

Definition at line 43 of file denMessageTableSource.h.

Referenced by execute(), operator=(), and ~denMessageTableSource().


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