ITS
LocationTableEntry Class Reference

#include <LocationTableEntry.h>

Collaboration diagram for LocationTableEntry:
[legend]

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
 

Detailed Description

Definition at line 14 of file LocationTableEntry.h.

Constructor & Destructor Documentation

◆ LocationTableEntry() [1/2]

LocationTableEntry::LocationTableEntry ( )

◆ LocationTableEntry() [2/2]

LocationTableEntry::LocationTableEntry ( LongPositionVector  lpv,
quint8  version,
quint8  stationType,
uchar *  llAddr,
bool *  isNeighbour,
bool  lsPending,
quint32  lastTimestamp,
quint16  sequenceNumber 
)

LocationTableEntry LocationTableEntry initialization constructor.

Parameters
lpvThe LPV.
versionThe version.
stationTypeThe station type.
llAddrThe LL address.
isNeighbourIs the ITS-S my neighbour?
lsPendingIs the entry LS pending?
lastTimestampThe last timestamp of the entry.
sequenceNumberThe 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().

Here is the call graph for this function:

◆ ~LocationTableEntry()

LocationTableEntry::~LocationTableEntry ( )

~LocationTableEntry LocationTableEntry destructor.

Definition at line 29 of file LocationTableEntry.cpp.

Member Function Documentation

◆ isNeighbour()

bool* LocationTableEntry::isNeighbour ( ) const
inline

isNeighbour Is the ITS-S my neighbour?

Returns
True if the ITS-S my neighbour.

Definition at line 44 of file LocationTableEntry.h.

References m_isNeighbour.

Referenced by LocationTableEntry(), and setIsNeighbour().

Here is the caller graph for this function:

◆ isPending()

bool LocationTableEntry::isPending ( ) const
inline

isPending Is the entry LS pending?

Returns
True if the entry LS pending.

Definition at line 80 of file LocationTableEntry.h.

References m_lsPending.

◆ lastTimestamp()

quint32 LocationTableEntry::lastTimestamp ( ) const
inline

lastTimestamp Last entry timestamp getter.

Returns
The last entry timestamp.

Definition at line 49 of file LocationTableEntry.h.

References m_lastTimestamp.

Referenced by LocationTableEntry().

Here is the caller graph for this function:

◆ llAddr() [1/2]

uchar* LocationTableEntry::llAddr ( )
inline

llAddr LL address getter.

Returns
The LL address.

Definition at line 64 of file LocationTableEntry.h.

References m_llAddr.

Referenced by LocationTableEntry(), and setLlAddr().

Here is the caller graph for this function:

◆ llAddr() [2/2]

uchar LocationTableEntry::llAddr ( int  i) const
inline

llAddr LL address specific byte getter.

Parameters
iThe specific byte.
Returns
The LL address specific byte.

Definition at line 70 of file LocationTableEntry.h.

References m_llAddr.

◆ longPositionVector()

LongPositionVector LocationTableEntry::longPositionVector ( ) const
inline

longPositionVector LPV getter.

Returns
The LPV.

Definition at line 75 of file LocationTableEntry.h.

References m_lpv.

Referenced by GeoNet::contentionBasedForwardingAlgorithm(), and GeoNet::simpleForwardingAlgorithm().

Here is the caller graph for this function:

◆ neverReceived()

bool LocationTableEntry::neverReceived ( ) const
inline

neverReceived Have I received the entry before?

Returns
False if I have received the entry before.

Definition at line 90 of file LocationTableEntry.h.

References m_neverReceived.

Referenced by setNeverReceived().

Here is the caller graph for this function:

◆ print()

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().

Here is the call graph for this function:

◆ sequenceNumber()

quint16 LocationTableEntry::sequenceNumber ( ) const
inline

sequenceNumber Entry sequence number getter.

Returns
The entry sequence number.

Definition at line 85 of file LocationTableEntry.h.

References m_sequenceNumber.

Referenced by LocationTableEntry(), and setSequenceNumber().

Here is the caller graph for this function:

◆ setIsNeighbour()

void LocationTableEntry::setIsNeighbour ( bool  isNeighbour)
inline

setIsNeighbour isNeighbour setter.

Parameters
isNeighbourThe new isNeighbour.

Definition at line 122 of file LocationTableEntry.h.

References isNeighbour(), and m_isNeighbour.

Here is the call graph for this function:

◆ setLastTimestamp()

void LocationTableEntry::setLastTimestamp ( quint32  lastReceivedTimestamp)
inline

setLastTimestamp Entry last timestamp setter.

Parameters
lastReceivedTimestampThe new entry last timestamp.

Definition at line 97 of file LocationTableEntry.h.

References m_lastTimestamp.

◆ setLlAddr()

void LocationTableEntry::setLlAddr ( uchar *  llAddr)
inline

setLlAddr LL address setter.

Parameters
llAddrThe new LL address.

Definition at line 112 of file LocationTableEntry.h.

References llAddr(), and m_llAddr.

Here is the call graph for this function:

◆ setLongPositionVector()

void LocationTableEntry::setLongPositionVector ( LongPositionVector  lpv)
inline

setLongPositionVector LPV setter.

Parameters
lpvThe new LPV.

Definition at line 117 of file LocationTableEntry.h.

References m_lpv.

◆ setLsPending()

void LocationTableEntry::setLsPending ( bool  lsPending)
inline

setLsPending lsPending setter.

Parameters
lsPendingThe new lsPending.

Definition at line 127 of file LocationTableEntry.h.

References m_lsPending.

◆ setNeverReceived()

void LocationTableEntry::setNeverReceived ( bool  neverReceived)
inline

setNeverReceived neverReceived setter.

Parameters
neverReceivedThe new neverReceived.

Definition at line 137 of file LocationTableEntry.h.

References m_neverReceived, and neverReceived().

Here is the call graph for this function:

◆ setSequenceNumber()

void LocationTableEntry::setSequenceNumber ( quint16  sequenceNumber)
inline

setSequenceNumber Entry sequence number setter.

Parameters
sequenceNumberThe new entry sequence number.

Definition at line 132 of file LocationTableEntry.h.

References m_sequenceNumber, and sequenceNumber().

Here is the call graph for this function:

◆ setStationType()

void LocationTableEntry::setStationType ( quint8  stationType)
inline

setStationType Station type setter.

Parameters
stationTypeThe new station type.

Definition at line 107 of file LocationTableEntry.h.

References m_stationType, and stationType().

Here is the call graph for this function:

◆ setVersion()

void LocationTableEntry::setVersion ( quint8  version)
inline

setVersion Version setter.

Parameters
versionThe new version.

Definition at line 102 of file LocationTableEntry.h.

References m_version, and version().

Here is the call graph for this function:

◆ stationType()

quint8 LocationTableEntry::stationType ( ) const
inline

stationType Station type getter.

Returns
The station type.

Definition at line 59 of file LocationTableEntry.h.

References m_stationType.

Referenced by LocationTableEntry(), and setStationType().

Here is the caller graph for this function:

◆ version()

quint8 LocationTableEntry::version ( ) const
inline

version Version getter.

Returns
The version.

Definition at line 54 of file LocationTableEntry.h.

References m_version.

Referenced by LocationTableEntry(), and setVersion().

Here is the caller graph for this function:

Member Data Documentation

◆ m_isNeighbour

bool* LocationTableEntry::m_isNeighbour
private

Is the ITS-S my neighbour?

Definition at line 145 of file LocationTableEntry.h.

Referenced by isNeighbour(), LocationTableEntry(), and setIsNeighbour().

◆ m_lastTimestamp

quint32 LocationTableEntry::m_lastTimestamp
private

The entry last timestamp.

Definition at line 148 of file LocationTableEntry.h.

Referenced by lastTimestamp(), LocationTableEntry(), print(), and setLastTimestamp().

◆ m_llAddr

uchar LocationTableEntry::m_llAddr[6]
private

The entry LL address.

Definition at line 149 of file LocationTableEntry.h.

Referenced by llAddr(), LocationTableEntry(), print(), and setLlAddr().

◆ m_lpv

LongPositionVector LocationTableEntry::m_lpv
private

The entry LPV.

Definition at line 150 of file LocationTableEntry.h.

Referenced by LocationTableEntry(), longPositionVector(), print(), and setLongPositionVector().

◆ m_lsPending

bool LocationTableEntry::m_lsPending
private

Is the entry LS pending?

Definition at line 151 of file LocationTableEntry.h.

Referenced by isPending(), LocationTableEntry(), print(), and setLsPending().

◆ m_neverReceived

bool LocationTableEntry::m_neverReceived
private

Have I received the entry before?

Definition at line 153 of file LocationTableEntry.h.

Referenced by neverReceived(), and setNeverReceived().

◆ m_sequenceNumber

quint16 LocationTableEntry::m_sequenceNumber
private

The entry sequence number.

Definition at line 152 of file LocationTableEntry.h.

Referenced by LocationTableEntry(), print(), sequenceNumber(), and setSequenceNumber().

◆ m_stationType

quint8 LocationTableEntry::m_stationType
private

The entry station type.

Definition at line 147 of file LocationTableEntry.h.

Referenced by LocationTableEntry(), print(), setStationType(), and stationType().

◆ m_version

quint8 LocationTableEntry::m_version
private

The entry version.

Definition at line 146 of file LocationTableEntry.h.

Referenced by LocationTableEntry(), print(), setVersion(), and version().


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