ITS
denMessageTableForwarding Class Reference

#include <denMessageTableForwarding.h>

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

Public Slots

void endOfT_F_Validity ()
 endOfT_F_Validity Slot used when T_F_Validity expires. More...
 
void endOfT_Forwarding ()
 endOfT_Forwarding Slot used when T_Forwarding expires. More...
 
void execute ()
 execute Execution of the timers. More...
 

Signals

void T_F_ValiditySignal (ActionID_t)
 T_F_ValiditySignal Signal when T_F_Validity expires. More...
 
void T_ForwardingSignal (ActionID_t)
 T_ForwardingSignal Signal when T_Forwarding expires. More...
 
void DENMForwarded ()
 DENMForwarded Signal used when a DENM is forwarded. More...
 

Public Member Functions

 denMessageTableForwarding (FakeGPSProvider *gps)
 denMessageTableForwarding denMessageTableForwarding constructor. More...
 
 denMessageTableForwarding (const denMessageTableForwarding &messageTable)
 denMessageTableForwarding denMessageTableForwarding copy constructor. More...
 
 ~denMessageTableForwarding ()
 ~denMessageTableForwarding denMessageTableForwarding destructor. More...
 
DENM_t denm () const
 denm DENM getter. More...
 
qint64 T_F_Validity () const
 T_F_Validity T_F_Validity getter. More...
 
qint32 T_Forwarding () const
 T_Forwarding T_Forwarding getter. More...
 
ActionID_t actionID () const
 actionID DENM's ActionID getter. More...
 
QByteArray encodedDENM () const
 encodedDENM Encoded DENM getter. More...
 
void setDENM (DENM_t d)
 setDENM Set DENM. More...
 
void setT_F_Validity (qint64 t)
 setT_F_Validity Set the T_F_Validity. More...
 
void setT_Forwarding (qint32 t)
 setT_Forwarding Set the T_Forwarding. More...
 
void setActionID (ActionID_t a)
 setActionID Set the DENM's ActionID. More...
 
void setEncodedDENM (QByteArray e)
 setEncodedDENM Set the encoded DENM. More...
 
denMessageTableForwardingoperator= (const denMessageTableForwarding &other)
 operator= Affectation operator. More...
 
bool inRelevanceArea (ReferencePosition_t destination, RelevanceDistance_t *relevanceDistance)
 inRelevanceArea Check if the ITS-S is in relevance area. More...
 

Public Attributes

denMessageTableForwardingThreadm_validity
 
denMessageTableForwardingThreadm_forwarding
 
QThread * m_thread
 

Private Attributes

DENM_t m_denm
 
qint64 m_T_F_Validity
 
qint32 m_T_Forwarding
 
ActionID_t m_actionID
 
QByteArray m_encodedDENM
 
FakeGPSProviderm_gps
 

Detailed Description

Definition at line 27 of file denMessageTableForwarding.h.

Constructor & Destructor Documentation

◆ denMessageTableForwarding() [1/2]

denMessageTableForwarding::denMessageTableForwarding ( FakeGPSProvider gps)

denMessageTableForwarding denMessageTableForwarding constructor.

Parameters
gpsGPS.

Definition at line 3 of file denMessageTableForwarding.cpp.

References execute(), m_denm, m_gps, m_T_F_Validity, m_T_Forwarding, and m_thread.

Here is the call graph for this function:

◆ denMessageTableForwarding() [2/2]

denMessageTableForwarding::denMessageTableForwarding ( const denMessageTableForwarding messageTable)
explicit

denMessageTableForwarding denMessageTableForwarding copy constructor.

Parameters
messageTabledenMessageTableForwarding to copy.

Definition at line 14 of file denMessageTableForwarding.cpp.

References actionID(), denm(), encodedDENM(), m_actionID, m_denm, m_encodedDENM, m_gps, m_T_F_Validity, m_T_Forwarding, and m_thread.

Here is the call graph for this function:

◆ ~denMessageTableForwarding()

denMessageTableForwarding::~denMessageTableForwarding ( )

~denMessageTableForwarding denMessageTableForwarding destructor.

Definition at line 60 of file denMessageTableForwarding.cpp.

References setT_F_Validity(), and setT_Forwarding().

Here is the call graph for this function:

Member Function Documentation

◆ actionID()

ActionID_t denMessageTableForwarding::actionID ( ) const
inline

actionID DENM's ActionID getter.

Returns
The DENM's ActionID.

Definition at line 74 of file denMessageTableForwarding.h.

References m_actionID.

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

Here is the caller graph for this function:

◆ denm()

DENM_t denMessageTableForwarding::denm ( ) const
inline

denm DENM getter.

Returns
The DENM.

Definition at line 59 of file denMessageTableForwarding.h.

References m_denm.

Referenced by denMessageTableForwarding(), and denKAFManagement::kaf().

Here is the caller graph for this function:

◆ DENMForwarded

void denMessageTableForwarding::DENMForwarded ( )
signal

DENMForwarded Signal used when a DENM is forwarded.

Referenced by endOfT_Forwarding(), and execute().

Here is the caller graph for this function:

◆ encodedDENM()

QByteArray denMessageTableForwarding::encodedDENM ( ) const
inline

encodedDENM Encoded DENM getter.

Returns
The encoded DENM.

Definition at line 79 of file denMessageTableForwarding.h.

References m_encodedDENM.

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

Here is the caller graph for this function:

◆ endOfT_F_Validity

void denMessageTableForwarding::endOfT_F_Validity ( )
slot

endOfT_F_Validity Slot used when T_F_Validity expires.

Definition at line 66 of file denMessageTableForwarding.cpp.

References m_actionID, m_forwarding, denMessageTableForwardingThread::setTimer(), and T_F_ValiditySignal().

Referenced by execute().

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

◆ endOfT_Forwarding

void denMessageTableForwarding::endOfT_Forwarding ( )
slot

endOfT_Forwarding Slot used when T_Forwarding expires.

Definition at line 75 of file denMessageTableForwarding.cpp.

References DENM::denm, DENMForwarded(), ManagementContainer::eventPosition, inRelevanceArea(), m_actionID, m_denm, m_forwarding, m_T_Forwarding, denMessageTableForwardingThread::m_T_Forwarding_timer, DecentralizedEnvironmentalNotificationMessage::management, ManagementContainer::relevanceDistance, T_ForwardingSignal(), and denMessageTableForwardingThread::timer().

Referenced by execute().

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

◆ execute

void denMessageTableForwarding::execute ( )
slot

execute Execution of the timers.

Definition at line 38 of file denMessageTableForwarding.cpp.

References DENMForwarded(), endOfT_F_Validity(), endOfT_Forwarding(), m_forwarding, m_T_F_Validity, denMessageTableForwardingThread::m_T_F_Validity_timer, m_T_Forwarding, denMessageTableForwardingThread::m_T_Forwarding_timer, m_validity, T_F_ValiditySignal(), T_ForwardingSignal(), and denMessageTableForwardingThread::timer().

Referenced by denMessageTableForwarding().

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

◆ inRelevanceArea()

bool denMessageTableForwarding::inRelevanceArea ( ReferencePosition_t  destination,
RelevanceDistance_t relevanceDistance 
)

inRelevanceArea Check if the ITS-S is in relevance area.

Parameters
destinationThe relevance area.
relevanceDistanceThe relevance distance.
Returns
True if the ITS-S is in relevance area.

Definition at line 100 of file denMessageTableForwarding.cpp.

References circAtLat(), FakeGPSProvider::data(), diameter(), f(), LAT2METER, ReferencePosition::latitude, ReferencePosition::longitude, m_gps, ReferencePosition::positionConfidenceEllipse, ParameterGPS::referencePosition(), RelevanceDistance_lessThan1000m, RelevanceDistance_lessThan100m, RelevanceDistance_lessThan10km, RelevanceDistance_lessThan200m, RelevanceDistance_lessThan500m, RelevanceDistance_lessThan50m, RelevanceDistance_lessThan5km, RelevanceDistance_over10km, PosConfidenceEllipse::semiMajorConfidence, PosConfidenceEllipse::semiMajorOrientation, PosConfidenceEllipse::semiMinorConfidence, shape_circle, and shape_ellipse.

Referenced by endOfT_Forwarding().

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

◆ operator=()

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

operator= Affectation operator.

Parameters
otherThe DEN Message Table Forwarding to affect.
Returns
The affected DEN Message Table Forwarding.

Definition at line 25 of file denMessageTableForwarding.cpp.

References actionID(), encodedDENM(), m_actionID, m_denm, m_encodedDENM, m_gps, m_T_F_Validity, m_T_Forwarding, and m_thread.

Here is the call graph for this function:

◆ setActionID()

void denMessageTableForwarding::setActionID ( ActionID_t  a)
inline

setActionID Set the DENM's ActionID.

Parameters
aThe new DENM's ActionID.

Definition at line 105 of file denMessageTableForwarding.h.

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

Referenced by denKAFManagement::kaf().

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

◆ setDENM()

void denMessageTableForwarding::setDENM ( DENM_t  d)
inline

setDENM Set DENM.

Parameters
dThe DENM to sent.

Definition at line 86 of file denMessageTableForwarding.h.

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

Referenced by denKAFManagement::kaf().

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

◆ setEncodedDENM()

void denMessageTableForwarding::setEncodedDENM ( QByteArray  e)
inline

setEncodedDENM Set the encoded DENM.

Parameters
eThe encoded DENM.

Definition at line 114 of file denMessageTableForwarding.h.

References m_encodedDENM.

◆ setT_F_Validity()

void denMessageTableForwarding::setT_F_Validity ( qint64  t)
inline

setT_F_Validity Set the T_F_Validity.

Parameters
tThe new T_F_Validity.

Definition at line 95 of file denMessageTableForwarding.h.

References m_T_F_Validity.

Referenced by ~denMessageTableForwarding().

Here is the caller graph for this function:

◆ setT_Forwarding()

void denMessageTableForwarding::setT_Forwarding ( qint32  t)
inline

setT_Forwarding Set the T_Forwarding.

Parameters
tThe new T_Forwarding.

Definition at line 100 of file denMessageTableForwarding.h.

References m_T_Forwarding.

Referenced by ~denMessageTableForwarding().

Here is the caller graph for this function:

◆ T_F_Validity()

qint64 denMessageTableForwarding::T_F_Validity ( ) const
inline

T_F_Validity T_F_Validity getter.

Returns
T_F_Validity.

Definition at line 64 of file denMessageTableForwarding.h.

References m_T_F_Validity.

◆ T_F_ValiditySignal

void denMessageTableForwarding::T_F_ValiditySignal ( ActionID_t  )
signal

T_F_ValiditySignal Signal when T_F_Validity expires.

Referenced by endOfT_F_Validity(), and execute().

Here is the caller graph for this function:

◆ T_Forwarding()

qint32 denMessageTableForwarding::T_Forwarding ( ) const
inline

T_Forwarding T_Forwarding getter.

Returns
T_Forwarding.

Definition at line 69 of file denMessageTableForwarding.h.

References m_T_Forwarding.

◆ T_ForwardingSignal

void denMessageTableForwarding::T_ForwardingSignal ( ActionID_t  )
signal

T_ForwardingSignal Signal when T_Forwarding expires.

Referenced by endOfT_Forwarding(), and execute().

Here is the caller graph for this function:

Member Data Documentation

◆ m_actionID

ActionID_t denMessageTableForwarding::m_actionID
private

◆ m_denm

DENM_t denMessageTableForwarding::m_denm
private

The DENM of the table message forwarding.

Definition at line 148 of file denMessageTableForwarding.h.

Referenced by denm(), denMessageTableForwarding(), endOfT_Forwarding(), operator=(), and setDENM().

◆ m_encodedDENM

QByteArray denMessageTableForwarding::m_encodedDENM
private

DENM encoding.

Definition at line 152 of file denMessageTableForwarding.h.

Referenced by denMessageTableForwarding(), encodedDENM(), operator=(), and setEncodedDENM().

◆ m_forwarding

denMessageTableForwardingThread* denMessageTableForwarding::m_forwarding

Forwarding thread.

Definition at line 35 of file denMessageTableForwarding.h.

Referenced by endOfT_F_Validity(), endOfT_Forwarding(), execute(), and denKAFManagement::kaf().

◆ m_gps

FakeGPSProvider* denMessageTableForwarding::m_gps
private

GPS.

Definition at line 153 of file denMessageTableForwarding.h.

Referenced by denMessageTableForwarding(), inRelevanceArea(), and operator=().

◆ m_T_F_Validity

qint64 denMessageTableForwarding::m_T_F_Validity
private

T_F_Validity.

Definition at line 149 of file denMessageTableForwarding.h.

Referenced by denMessageTableForwarding(), execute(), operator=(), setT_F_Validity(), and T_F_Validity().

◆ m_T_Forwarding

qint32 denMessageTableForwarding::m_T_Forwarding
private

◆ m_thread

QThread* denMessageTableForwarding::m_thread

Table thread.

Definition at line 36 of file denMessageTableForwarding.h.

Referenced by denMessageTableForwarding(), denKAFManagement::kaf(), and operator=().

◆ m_validity

denMessageTableForwardingThread* denMessageTableForwarding::m_validity

Validity thread.

Definition at line 34 of file denMessageTableForwarding.h.

Referenced by execute().


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