ITS
|
#include <HistoryPacketBuffer.h>
Public Member Functions | |
HistoryPacketBuffer (GnAddr *gnAddr) | |
HistoryPacketBuffer Default constructor. More... | |
HistoryPacketBuffer (const HistoryPacketBuffer &other) | |
HistoryPacketBuffer Copy constructor. More... | |
void | addPacket (BeaconPacket packet) |
addPacket Add packet to the buffer. More... | |
void | addPacket (LSRequestPacket packet) |
addPacket Add packet to the buffer. More... | |
void | addPacket (LSReplyPacket packet) |
addPacket Add packet to the buffer. More... | |
void | addPacket (GACPacket packet) |
addPacket Add packet to the buffer. More... | |
void | addPacket (GBCPacket packet) |
addPacket Add packet to the buffer. More... | |
void | addPacket (GUCPacket packet) |
addPacket Add packet to the buffer. More... | |
void | addPacket (SHBPacket packet) |
addPacket Add packet to the buffer. More... | |
void | addPacket (TSBPacket packet) |
addPacket Add packet to the buffer. More... | |
bool | isDuplicateTimestamp (BeaconPacket packet) |
isDuplicateTimestamp Check is the packet is duplicate. More... | |
bool | isDuplicateTimestamp (LSRequestPacket packet) |
isDuplicateTimestamp Check is the packet is duplicate. More... | |
bool | isDuplicateTimestamp (LSReplyPacket packet) |
isDuplicateTimestamp Check is the packet is duplicate. More... | |
bool | isDuplicateTimestamp (GACPacket packet) |
isDuplicateTimestamp Check is the packet is duplicate. More... | |
bool | isDuplicateTimestamp (GBCPacket packet) |
isDuplicateTimestamp Check is the packet is duplicate. More... | |
bool | isDuplicateTimestamp (GUCPacket packet) |
isDuplicateTimestamp Check is the packet is duplicate. More... | |
bool | isDuplicateTimestamp (SHBPacket packet) |
isDuplicateTimestamp Check is the packet is duplicate. More... | |
bool | isDuplicateTimestamp (TSBPacket packet) |
isDuplicateTimestamp Check is the packet is duplicate. More... | |
void | checkTimeout () |
checkTimeout Check for time out of entries. More... | |
void | clear () |
clear Clear the buffer. More... | |
Private Attributes | |
GnAddr * | m_gnAddr |
quint32 | m_historyPacketBuffer [NB_PACKET_TYPE] |
quint16 | m_historyPacketBufferSN [NB_PACKET_TYPE-2] |
Definition at line 25 of file HistoryPacketBuffer.h.
HistoryPacketBuffer::HistoryPacketBuffer | ( | GnAddr * | gnAddr | ) |
HistoryPacketBuffer Default constructor.
Definition at line 3 of file HistoryPacketBuffer.cpp.
References m_gnAddr.
HistoryPacketBuffer::HistoryPacketBuffer | ( | const HistoryPacketBuffer & | other | ) |
HistoryPacketBuffer Copy constructor.
other | The HistoryPacketBuffer to copy. |
Definition at line 8 of file HistoryPacketBuffer.cpp.
References m_historyPacketBuffer, m_historyPacketBufferSN, and NB_PACKET_TYPE.
void HistoryPacketBuffer::addPacket | ( | BeaconPacket | packet | ) |
addPacket Add packet to the buffer.
packet | The packet to add (Beacon case). |
Definition at line 76 of file HistoryPacketBuffer.cpp.
References BEACON, LongPositionVector::gnAddr(), m_gnAddr, m_historyPacketBuffer, BeaconPacket::soPv(), and LongPositionVector::timestamp().
Referenced by GeoNet::sendBeacon(), GeoNet::sendGAC(), GeoNet::sendGBC(), GeoNet::sendGUC(), GeoNet::sendLsRequest(), CBFPacketEntry::sendPacket(), GeoNet::sendSHB(), and GeoNet::sendTSB().
void HistoryPacketBuffer::addPacket | ( | LSRequestPacket | packet | ) |
addPacket Add packet to the buffer.
packet | The packet to add (LSRequest case). |
Definition at line 16 of file HistoryPacketBuffer.cpp.
References LongPositionVector::gnAddr(), LSREQUEST, m_gnAddr, m_historyPacketBuffer, m_historyPacketBufferSN, TSBPacket::sequenceNumber(), TSBPacket::soPv(), and LongPositionVector::timestamp().
void HistoryPacketBuffer::addPacket | ( | LSReplyPacket | packet | ) |
addPacket Add packet to the buffer.
packet | The packet to add (LSReply case). |
Definition at line 25 of file HistoryPacketBuffer.cpp.
References LongPositionVector::gnAddr(), LSREPLY, m_gnAddr, m_historyPacketBuffer, m_historyPacketBufferSN, GUCPacket::sequenceNumber(), GUCPacket::soPv(), and LongPositionVector::timestamp().
void HistoryPacketBuffer::addPacket | ( | GACPacket | packet | ) |
addPacket Add packet to the buffer.
packet | The packet to add (GAC case). |
Definition at line 34 of file HistoryPacketBuffer.cpp.
References GAC, LongPositionVector::gnAddr(), m_gnAddr, m_historyPacketBuffer, m_historyPacketBufferSN, GBCPacket::sequenceNumber(), GBCPacket::soPv(), and LongPositionVector::timestamp().
void HistoryPacketBuffer::addPacket | ( | GBCPacket | packet | ) |
addPacket Add packet to the buffer.
packet | The packet to add (GBC case). |
Definition at line 43 of file HistoryPacketBuffer.cpp.
References GBC, LongPositionVector::gnAddr(), m_gnAddr, m_historyPacketBuffer, m_historyPacketBufferSN, GBCPacket::sequenceNumber(), GBCPacket::soPv(), and LongPositionVector::timestamp().
void HistoryPacketBuffer::addPacket | ( | GUCPacket | packet | ) |
addPacket Add packet to the buffer.
packet | The packet to add (GUC case). |
Definition at line 52 of file HistoryPacketBuffer.cpp.
References LongPositionVector::gnAddr(), GUC, m_gnAddr, m_historyPacketBuffer, m_historyPacketBufferSN, GUCPacket::sequenceNumber(), GUCPacket::soPv(), and LongPositionVector::timestamp().
void HistoryPacketBuffer::addPacket | ( | SHBPacket | packet | ) |
addPacket Add packet to the buffer.
packet | The packet to add (SHB case). |
Definition at line 70 of file HistoryPacketBuffer.cpp.
References LongPositionVector::gnAddr(), m_gnAddr, m_historyPacketBuffer, SHB, SHBPacket::soPv(), and LongPositionVector::timestamp().
void HistoryPacketBuffer::addPacket | ( | TSBPacket | packet | ) |
addPacket Add packet to the buffer.
packet | The packet to add (TSB case). |
Definition at line 61 of file HistoryPacketBuffer.cpp.
References LongPositionVector::gnAddr(), m_gnAddr, m_historyPacketBuffer, m_historyPacketBufferSN, TSBPacket::sequenceNumber(), TSBPacket::soPv(), LongPositionVector::timestamp(), and TSB.
void HistoryPacketBuffer::checkTimeout | ( | ) |
checkTimeout Check for time out of entries.
void HistoryPacketBuffer::clear | ( | ) |
clear Clear the buffer.
Definition at line 146 of file HistoryPacketBuffer.cpp.
References m_historyPacketBuffer, m_historyPacketBufferSN, and NB_PACKET_TYPE.
Referenced by GeoNet::utInitialize().
bool HistoryPacketBuffer::isDuplicateTimestamp | ( | BeaconPacket | packet | ) |
isDuplicateTimestamp Check is the packet is duplicate.
packet | The packet (Beacon case). |
Definition at line 138 of file HistoryPacketBuffer.cpp.
References BEACON, LongPositionVector::gnAddr(), isDuplicatePacketDetectionTimestamp(), m_gnAddr, m_historyPacketBuffer, BeaconPacket::soPv(), and LongPositionVector::timestamp().
Referenced by GeoNet::beaconPacketProcessing(), GeoNet::gacPacketProcessing(), GeoNet::gbcPacketProcessing(), GeoNet::gucPacketProcessing(), GeoNet::LSReplyPacketProcessing(), GeoNet::LSRequestPacketProcessing(), GeoNet::shbPacketProcessing(), and GeoNet::tsbPacketProcessing().
bool HistoryPacketBuffer::isDuplicateTimestamp | ( | LSRequestPacket | packet | ) |
isDuplicateTimestamp Check is the packet is duplicate.
packet | The packet (LSRequest case). |
Definition at line 82 of file HistoryPacketBuffer.cpp.
References LongPositionVector::gnAddr(), isDuplicatePacketDetectionTimestampSN(), LSREQUEST, m_gnAddr, m_historyPacketBuffer, m_historyPacketBufferSN, TSBPacket::sequenceNumber(), TSBPacket::soPv(), and LongPositionVector::timestamp().
bool HistoryPacketBuffer::isDuplicateTimestamp | ( | LSReplyPacket | packet | ) |
isDuplicateTimestamp Check is the packet is duplicate.
packet | The packet (LSReply case). |
Definition at line 90 of file HistoryPacketBuffer.cpp.
References LongPositionVector::gnAddr(), isDuplicatePacketDetectionTimestampSN(), LSREPLY, m_gnAddr, m_historyPacketBuffer, m_historyPacketBufferSN, GUCPacket::sequenceNumber(), GUCPacket::soPv(), and LongPositionVector::timestamp().
bool HistoryPacketBuffer::isDuplicateTimestamp | ( | GACPacket | packet | ) |
isDuplicateTimestamp Check is the packet is duplicate.
packet | The packet (GAC case). |
Definition at line 98 of file HistoryPacketBuffer.cpp.
References GAC, LongPositionVector::gnAddr(), isDuplicatePacketDetectionTimestampSN(), m_gnAddr, m_historyPacketBuffer, m_historyPacketBufferSN, GBCPacket::sequenceNumber(), GBCPacket::soPv(), and LongPositionVector::timestamp().
bool HistoryPacketBuffer::isDuplicateTimestamp | ( | GBCPacket | packet | ) |
isDuplicateTimestamp Check is the packet is duplicate.
packet | The packet (GBC case). |
Definition at line 106 of file HistoryPacketBuffer.cpp.
References GBC, LongPositionVector::gnAddr(), isDuplicatePacketDetectionTimestampSN(), m_gnAddr, m_historyPacketBuffer, m_historyPacketBufferSN, GBCPacket::sequenceNumber(), GBCPacket::soPv(), and LongPositionVector::timestamp().
bool HistoryPacketBuffer::isDuplicateTimestamp | ( | GUCPacket | packet | ) |
isDuplicateTimestamp Check is the packet is duplicate.
packet | The packet (GUC case). |
Definition at line 114 of file HistoryPacketBuffer.cpp.
References LongPositionVector::gnAddr(), GUC, isDuplicatePacketDetectionTimestampSN(), m_gnAddr, m_historyPacketBuffer, m_historyPacketBufferSN, GUCPacket::sequenceNumber(), GUCPacket::soPv(), and LongPositionVector::timestamp().
bool HistoryPacketBuffer::isDuplicateTimestamp | ( | SHBPacket | packet | ) |
isDuplicateTimestamp Check is the packet is duplicate.
packet | The packet (SHB case). |
Definition at line 130 of file HistoryPacketBuffer.cpp.
References LongPositionVector::gnAddr(), isDuplicatePacketDetectionTimestamp(), m_gnAddr, m_historyPacketBuffer, SHB, SHBPacket::soPv(), and LongPositionVector::timestamp().
bool HistoryPacketBuffer::isDuplicateTimestamp | ( | TSBPacket | packet | ) |
isDuplicateTimestamp Check is the packet is duplicate.
packet | The packet (TSB case). |
Definition at line 122 of file HistoryPacketBuffer.cpp.
References LongPositionVector::gnAddr(), isDuplicatePacketDetectionTimestampSN(), m_gnAddr, m_historyPacketBuffer, m_historyPacketBufferSN, TSBPacket::sequenceNumber(), TSBPacket::soPv(), LongPositionVector::timestamp(), and TSB.
|
private |
ITS-S GN_ADDR.
Definition at line 139 of file HistoryPacketBuffer.h.
Referenced by addPacket(), HistoryPacketBuffer(), and isDuplicateTimestamp().
|
private |
History buffer.
Definition at line 141 of file HistoryPacketBuffer.h.
Referenced by addPacket(), clear(), HistoryPacketBuffer(), and isDuplicateTimestamp().
|
private |
Sequence number per type buffer.
Definition at line 142 of file HistoryPacketBuffer.h.
Referenced by addPacket(), clear(), HistoryPacketBuffer(), and isDuplicateTimestamp().