ITS
denMessageTable.cpp
Go to the documentation of this file.
1 #include "denMessageTable.h"
2 
4 {
5  memset(&m_denm, 0, sizeof m_denm);
8  m_T_O_Validity = 0;
10  m_T_Repetition = 0;
11 }
12 
13 denMessageTable::denMessageTable(const denMessageTable &messageTable, QObject *parent) : QObject(parent)
14 {
15  setDENM(messageTable.denm());
16  setStatus(messageTable.status());
17  setTimestamp(messageTable.timestamp());
18  setT_O_Validity(messageTable.T_O_Validity());
20  setT_Repetition(messageTable.T_Repetition());
21  setTrafficClass(messageTable.trafficClass());
22  setActionID(messageTable.actionID());
23 }
24 
26 
28 {
29  /* 1) Stop timer T_Repetition if exists. */
30  /* 2) Stop timer T_RepetitionDuration if exists. */
31  /* 3) Discard the expired DENM entry from the originating ITS-S message table. */
32 }
33 
35 {
36  /* 1) Stop timer T_Repetition. */
37 }
38 
40 {
41  /* 1) Pass the DENM to ITS networking & transport layer. */
42  /* 2) Restart timer T_Repetition. */
43 }
44 
46 {
47  QList<QString> sep = s.split(';');
48  ActionID_t ret;
49 
50  ret.originatingStationID = sep[0].toInt();
51  ret.sequenceNumber = sep[1].toInt();
52 
53  return ret;
54 }
55 
57 {
58  this->setDENM(other.denm());
59  this->setStatus(other.status());
60  this->setTimestamp(other.timestamp());
61  this->setT_O_Validity(other.T_O_Validity());
63  this->setT_Repetition(other.T_Repetition());
64  this->setTrafficClass(other.trafficClass());
65  this->setActionID(other.actionID());
66 
67  return *this;
68 }
69 /*
70 void denMessageTable::stopTimers()
71 {
72  if(m_T_O_Validity_timer.isActive())
73  m_T_O_Validity_timer.stop();
74  if(m_T_RepetitionDuration_timer.isActive())
75  m_T_RepetitionDuration_timer.stop();
76  if(m_T_Repetition_timer.isActive())
77  m_T_Repetition_timer.stop();
78 }
79 */
void setStatus(int s)
StationID_t originatingStationID
Definition: ActionID.h:24
quint16 m_T_RepetitionDuration
void setTimestamp(TimestampIts_t t)
quint8 trafficClass() const
quint16 T_RepetitionDuration() const
quint16 m_T_Repetition
void endOfT_RepetitionDuration()
void setTrafficClass(quint8 t)
int status() const
SequenceNumber_t sequenceNumber
Definition: ActionID.h:25
void setT_RepetitionDuration(quint16 t)
denMessageTable & operator=(const denMessageTable &other)
int asn_long2INTEGER(INTEGER_t *i, long l)
Definition: INTEGER.c:882
quint32 m_T_O_Validity
TimestampIts_t m_timestamp
void setDENM(DENM_t d)
quint16 T_Repetition() const
ActionID_t actionIDString(QString s)
void setT_Repetition(quint16 t)
ActionID_t actionID() const
void setT_O_Validity(quint32 t)
TimestampIts_t timestamp() const
quint32 T_O_Validity() const
void setActionID(ActionID_t a)
DENM_t denm() const