ITS
|
#include <LocationTableEntry.h>
Public Member Functions | |
LocationTableEntry () | |
LocationTableEntry LocationTableEntry constructor. More... | |
LocationTableEntry (LongPositionVector lpv, quint8 version, quint8 stationType, uchar *llAddr, bool *isNeighbour, bool lsPending, quint32 lastTimestamp, quint16 sequenceNumber) | |
LocationTableEntry LocationTableEntry initialization constructor. More... | |
~LocationTableEntry () | |
~LocationTableEntry LocationTableEntry destructor. More... | |
bool * | isNeighbour () const |
isNeighbour Is the ITS-S my neighbour? More... | |
quint32 | lastTimestamp () const |
lastTimestamp Last entry timestamp getter. More... | |
quint8 | version () const |
version Version getter. More... | |
quint8 | stationType () const |
stationType Station type getter. More... | |
uchar * | llAddr () |
llAddr LL address getter. More... | |
uchar | llAddr (int i) const |
llAddr LL address specific byte getter. More... | |
LongPositionVector | longPositionVector () const |
longPositionVector LPV getter. More... | |
bool | isPending () const |
isPending Is the entry LS pending? More... | |
quint16 | sequenceNumber () const |
sequenceNumber Entry sequence number getter. More... | |
bool | neverReceived () const |
neverReceived Have I received the entry before? More... | |
void | setLastTimestamp (quint32 lastReceivedTimestamp) |
setLastTimestamp Entry last timestamp setter. More... | |
void | setVersion (quint8 version) |
setVersion Version setter. More... | |
void | setStationType (quint8 stationType) |
setStationType Station type setter. More... | |
void | setLlAddr (uchar *llAddr) |
setLlAddr LL address setter. More... | |
void | setLongPositionVector (LongPositionVector lpv) |
setLongPositionVector LPV setter. More... | |
void | setIsNeighbour (bool isNeighbour) |
setIsNeighbour isNeighbour setter. More... | |
void | setLsPending (bool lsPending) |
setLsPending lsPending setter. More... | |
void | setSequenceNumber (quint16 sequenceNumber) |
setSequenceNumber Entry sequence number setter. More... | |
void | setNeverReceived (bool neverReceived) |
setNeverReceived neverReceived setter. More... | |
void | print () |
print Prints the entry informations. More... | |
Private Attributes | |
bool * | m_isNeighbour |
quint8 | m_version |
quint8 | m_stationType |
quint32 | m_lastTimestamp |
uchar | m_llAddr [6] |
LongPositionVector | m_lpv |
bool | m_lsPending |
quint16 | m_sequenceNumber |
bool | m_neverReceived |
Definition at line 14 of file LocationTableEntry.h.
LocationTableEntry::LocationTableEntry | ( | ) |
LocationTableEntry LocationTableEntry constructor.
Definition at line 3 of file LocationTableEntry.cpp.
References m_isNeighbour, m_lastTimestamp, m_llAddr, m_lpv, m_lsPending, m_sequenceNumber, m_stationType, and m_version.
LocationTableEntry::LocationTableEntry | ( | LongPositionVector | lpv, |
quint8 | version, | ||
quint8 | stationType, | ||
uchar * | llAddr, | ||
bool * | isNeighbour, | ||
bool | lsPending, | ||
quint32 | lastTimestamp, | ||
quint16 | sequenceNumber | ||
) |
LocationTableEntry LocationTableEntry initialization constructor.
lpv | The LPV. |
version | The version. |
stationType | The station type. |
llAddr | The LL address. |
isNeighbour | Is the ITS-S my neighbour? |
lsPending | Is the entry LS pending? |
lastTimestamp | The last timestamp of the entry. |
sequenceNumber | The entry sequence number. |
Definition at line 16 of file LocationTableEntry.cpp.
References isNeighbour(), lastTimestamp(), llAddr(), m_isNeighbour, m_lastTimestamp, m_llAddr, m_lpv, m_lsPending, m_sequenceNumber, m_stationType, m_version, sequenceNumber(), stationType(), and version().
LocationTableEntry::~LocationTableEntry | ( | ) |
~LocationTableEntry LocationTableEntry destructor.
Definition at line 29 of file LocationTableEntry.cpp.
|
inline |
isNeighbour Is the ITS-S my neighbour?
Definition at line 44 of file LocationTableEntry.h.
References m_isNeighbour.
Referenced by LocationTableEntry(), and setIsNeighbour().
|
inline |
isPending Is the entry LS pending?
Definition at line 80 of file LocationTableEntry.h.
References m_lsPending.
|
inline |
lastTimestamp Last entry timestamp getter.
Definition at line 49 of file LocationTableEntry.h.
References m_lastTimestamp.
Referenced by LocationTableEntry().
|
inline |
llAddr LL address getter.
Definition at line 64 of file LocationTableEntry.h.
References m_llAddr.
Referenced by LocationTableEntry(), and setLlAddr().
|
inline |
llAddr LL address specific byte getter.
i | The specific byte. |
Definition at line 70 of file LocationTableEntry.h.
References m_llAddr.
|
inline |
longPositionVector LPV getter.
Definition at line 75 of file LocationTableEntry.h.
References m_lpv.
Referenced by GeoNet::contentionBasedForwardingAlgorithm(), and GeoNet::simpleForwardingAlgorithm().
|
inline |
neverReceived Have I received the entry before?
Definition at line 90 of file LocationTableEntry.h.
References m_neverReceived.
Referenced by setNeverReceived().
void LocationTableEntry::print | ( | ) |
print Prints the entry informations.
Definition at line 33 of file LocationTableEntry.cpp.
References LongPositionVector::gnAddr(), LongPositionVector::heading(), LongPositionVector::latitude(), LongPositionVector::longitude(), m_lastTimestamp, m_llAddr, m_lpv, m_lsPending, m_sequenceNumber, m_stationType, m_version, GnAddr::mid(), GnAddr::MStationTypeCountryCode(), LongPositionVector::pai_Speed(), and LongPositionVector::timestamp().
|
inline |
sequenceNumber Entry sequence number getter.
Definition at line 85 of file LocationTableEntry.h.
References m_sequenceNumber.
Referenced by LocationTableEntry(), and setSequenceNumber().
|
inline |
setIsNeighbour isNeighbour setter.
isNeighbour | The new isNeighbour. |
Definition at line 122 of file LocationTableEntry.h.
References isNeighbour(), and m_isNeighbour.
|
inline |
setLastTimestamp Entry last timestamp setter.
lastReceivedTimestamp | The new entry last timestamp. |
Definition at line 97 of file LocationTableEntry.h.
References m_lastTimestamp.
|
inline |
setLlAddr LL address setter.
llAddr | The new LL address. |
Definition at line 112 of file LocationTableEntry.h.
References llAddr(), and m_llAddr.
|
inline |
setLongPositionVector LPV setter.
lpv | The new LPV. |
Definition at line 117 of file LocationTableEntry.h.
References m_lpv.
|
inline |
setLsPending lsPending setter.
lsPending | The new lsPending. |
Definition at line 127 of file LocationTableEntry.h.
References m_lsPending.
|
inline |
setNeverReceived neverReceived setter.
neverReceived | The new neverReceived. |
Definition at line 137 of file LocationTableEntry.h.
References m_neverReceived, and neverReceived().
|
inline |
setSequenceNumber Entry sequence number setter.
sequenceNumber | The new entry sequence number. |
Definition at line 132 of file LocationTableEntry.h.
References m_sequenceNumber, and sequenceNumber().
|
inline |
setStationType Station type setter.
stationType | The new station type. |
Definition at line 107 of file LocationTableEntry.h.
References m_stationType, and stationType().
|
inline |
setVersion Version setter.
version | The new version. |
Definition at line 102 of file LocationTableEntry.h.
References m_version, and version().
|
inline |
stationType Station type getter.
Definition at line 59 of file LocationTableEntry.h.
References m_stationType.
Referenced by LocationTableEntry(), and setStationType().
|
inline |
version Version getter.
Definition at line 54 of file LocationTableEntry.h.
References m_version.
Referenced by LocationTableEntry(), and setVersion().
|
private |
Is the ITS-S my neighbour?
Definition at line 145 of file LocationTableEntry.h.
Referenced by isNeighbour(), LocationTableEntry(), and setIsNeighbour().
|
private |
The entry last timestamp.
Definition at line 148 of file LocationTableEntry.h.
Referenced by lastTimestamp(), LocationTableEntry(), print(), and setLastTimestamp().
|
private |
The entry LL address.
Definition at line 149 of file LocationTableEntry.h.
Referenced by llAddr(), LocationTableEntry(), print(), and setLlAddr().
|
private |
The entry LPV.
Definition at line 150 of file LocationTableEntry.h.
Referenced by LocationTableEntry(), longPositionVector(), print(), and setLongPositionVector().
|
private |
Is the entry LS pending?
Definition at line 151 of file LocationTableEntry.h.
Referenced by isPending(), LocationTableEntry(), print(), and setLsPending().
|
private |
Have I received the entry before?
Definition at line 153 of file LocationTableEntry.h.
Referenced by neverReceived(), and setNeverReceived().
|
private |
The entry sequence number.
Definition at line 152 of file LocationTableEntry.h.
Referenced by LocationTableEntry(), print(), sequenceNumber(), and setSequenceNumber().
|
private |
The entry station type.
Definition at line 147 of file LocationTableEntry.h.
Referenced by LocationTableEntry(), print(), setStationType(), and stationType().
|
private |
The entry version.
Definition at line 146 of file LocationTableEntry.h.
Referenced by LocationTableEntry(), print(), setVersion(), and version().