ITS
RepetitionPacketEntry Class Reference

#include <RepetitionPacketEntry.h>

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

Public Slots

void execute ()
 execute Slot used to execute timers and add entries. More...
 
void repeat ()
 repeat Slot used to repeat packet. More...
 
void kill ()
 kill Slot used to kill entry. More...
 

Signals

void isOver ()
 isOver Signal used when entry is over. More...
 
void sendPacket (gnDataRequest_t packet)
 sendPacket Signal used to send packet. More...
 

Public Member Functions

 RepetitionPacketEntry ()
 RepetitionPacketEntry Default constructor. More...
 
 RepetitionPacketEntry (gnDataRequest_t gnDR)
 RepetitionPacketEntry Initialization constructor. More...
 
 RepetitionPacketEntry (const RepetitionPacketEntry &other)
 RepetitionPacketEntry Copy constructor. More...
 
bool operator== (const RepetitionPacketEntry &other)
 operator== RepetitionPacketEntry comparison operator. More...
 
RepetitionPacketEntryoperator= (const RepetitionPacketEntry &other)
 operator= RepetitionPacketEntry affectation operator. More...
 
QElapsedTimer * elapsed () const
 elapsed Time elapsed getter. More...
 
QTimer * timer () const
 timer Entry timer getter. More...
 
gnDataRequest_t gnDR () const
 gnDR Entry GN Data Request getter. More...
 

Private Attributes

gnDataRequest_t m_gnDR
 
QTimer * m_timer
 
QElapsedTimer * m_elapsed
 

Detailed Description

Definition at line 17 of file RepetitionPacketEntry.h.

Constructor & Destructor Documentation

◆ RepetitionPacketEntry() [1/3]

RepetitionPacketEntry::RepetitionPacketEntry ( )

RepetitionPacketEntry Default constructor.

Definition at line 3 of file RepetitionPacketEntry.cpp.

References m_elapsed, and m_timer.

◆ RepetitionPacketEntry() [2/3]

RepetitionPacketEntry::RepetitionPacketEntry ( gnDataRequest_t  gnDR)

RepetitionPacketEntry Initialization constructor.

Parameters
gnDRgnDR info of the packet to store

Definition at line 9 of file RepetitionPacketEntry.cpp.

References gnDR(), m_elapsed, m_gnDR, m_timer, gnDataRequest_s::maximumRepetitionTime, and gnDataRequest_s::repetitionInterval.

Here is the call graph for this function:

◆ RepetitionPacketEntry() [3/3]

RepetitionPacketEntry::RepetitionPacketEntry ( const RepetitionPacketEntry other)

RepetitionPacketEntry Copy constructor.

Parameters
otherThe RepetitionPacketEntry to copy.

Definition at line 20 of file RepetitionPacketEntry.cpp.

References m_elapsed, m_gnDR, and m_timer.

Member Function Documentation

◆ elapsed()

QElapsedTimer* RepetitionPacketEntry::elapsed ( ) const
inline

elapsed Time elapsed getter.

Returns
The time elapsed.

Definition at line 135 of file RepetitionPacketEntry.h.

References m_elapsed.

◆ execute

void RepetitionPacketEntry::execute ( )
slot

execute Slot used to execute timers and add entries.

Definition at line 58 of file RepetitionPacketEntry.cpp.

References m_elapsed, m_gnDR, m_timer, repeat(), and gnDataRequest_s::repetitionInterval.

Here is the call graph for this function:

◆ gnDR()

gnDataRequest_t RepetitionPacketEntry::gnDR ( ) const
inline

gnDR Entry GN Data Request getter.

Returns
The entry GN Data Request.

Definition at line 145 of file RepetitionPacketEntry.h.

References m_gnDR.

Referenced by RepetitionPacketEntry().

Here is the caller graph for this function:

◆ isOver

void RepetitionPacketEntry::isOver ( )
signal

isOver Signal used when entry is over.

Referenced by repeat().

Here is the caller graph for this function:

◆ kill

void RepetitionPacketEntry::kill ( )
slot

kill Slot used to kill entry.

Definition at line 78 of file RepetitionPacketEntry.cpp.

References m_timer.

Referenced by repeat().

Here is the caller graph for this function:

◆ operator=()

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

operator= RepetitionPacketEntry affectation operator.

Parameters
otherThe RepetitionPacketEntry to affect.
Returns
The affected RepetitionPacketEntry.

Definition at line 51 of file RepetitionPacketEntry.cpp.

References m_gnDR.

◆ operator==()

◆ repeat

void RepetitionPacketEntry::repeat ( )
slot

repeat Slot used to repeat packet.

Definition at line 67 of file RepetitionPacketEntry.cpp.

References isOver(), kill(), m_elapsed, m_gnDR, m_timer, gnDataRequest_s::maximumRepetitionTime, and sendPacket().

Referenced by execute().

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

◆ sendPacket

void RepetitionPacketEntry::sendPacket ( gnDataRequest_t  packet)
signal

sendPacket Signal used to send packet.

Parameters
packetEntry GN Data Request to send.

Referenced by repeat().

Here is the caller graph for this function:

◆ timer()

QTimer* RepetitionPacketEntry::timer ( ) const
inline

timer Entry timer getter.

Returns
The entry timer.

Definition at line 140 of file RepetitionPacketEntry.h.

References m_timer.

Member Data Documentation

◆ m_elapsed

QElapsedTimer* RepetitionPacketEntry::m_elapsed
private

Elapsed time of the entry.

Definition at line 175 of file RepetitionPacketEntry.h.

Referenced by elapsed(), execute(), repeat(), and RepetitionPacketEntry().

◆ m_gnDR

gnDataRequest_t RepetitionPacketEntry::m_gnDR
private

GN Data Request of the entry.

Definition at line 173 of file RepetitionPacketEntry.h.

Referenced by execute(), gnDR(), operator=(), operator==(), repeat(), and RepetitionPacketEntry().

◆ m_timer

QTimer* RepetitionPacketEntry::m_timer
private

Entry timer.

Definition at line 174 of file RepetitionPacketEntry.h.

Referenced by execute(), kill(), repeat(), RepetitionPacketEntry(), and timer().


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