DESERT 3.5.1
Loading...
Searching...
No Matches
UwTrackerModule Class Reference

#include <uwtracker-module.h>

Inheritance diagram for UwTrackerModule:
Collaboration diagram for UwTrackerModule:

Public Member Functions

 UwTrackerModule ()
 
 UwTrackerModule (UWSMPosition *p)
 
virtual ~UwTrackerModule ()
 
virtual int command (int argc, const char *const *argv)
 
virtual void initPkt (Packet *p)
 
- Public Member Functions inherited from UwCbrModule
 UwCbrModule ()
 
virtual ~UwCbrModule ()
 
virtual void recv (Packet *)
 
virtual void recv (Packet *p, Handler *h)
 
virtual int crLayCommand (ClMessage *m)
 
virtual double GetRTT () const
 
virtual double GetFTT () const
 
virtual double GetTxTime () const
 
virtual double GetPER () const
 
virtual double GetTHR () const
 
virtual double GetRTTstd () const
 
virtual double GetFTTstd () const
 
virtual void resetStats ()
 
void printIdsPkts () const
 

Protected Member Functions

virtual void printReceivedPacket (Packet *p)
 
void sendPkt ()
 
void updateTrackMeasure ()
 
virtual void start ()
 
virtual void stop ()
 
- Protected Member Functions inherited from UwCbrModule
virtual void sendPktLowPriority ()
 
virtual void sendPktHighPriority ()
 
virtual void transmit ()
 
virtual void updateRTT (const double &)
 
virtual void updateFTT (const double &)
 
virtual void updateThroughput (const int &, const double &)
 
virtual void incrPktLost (const int &)
 
virtual void incrPktRecv ()
 
virtual void incrPktOoseq ()
 
virtual void incrPktInvalid ()
 
virtual double getTimeBeforeNextPkt ()
 

Protected Attributes

UWSMPositiontrack_position
 
hdr_uwTracker track_measure
 
double max_tracking_distance
 
int send_only_active_trace
 
int track_my_position
 
double tracking_period
 
UwUpdateTrackMeasure measure_timer
 
- Protected Attributes inherited from UwCbrModule
uint16_t dstPort_
 
std::string log_suffix
 
nsaddr_t dstAddr_
 
char priority_
 
std::ofstream tracefile
 
std::string tracefilename
 
bool * sn_check
 
int PoissonTraffic_
 
int debug_
 
int drop_out_of_order_
 
uint traffic_type_
 
UwSendTimer sendTmr_
 
int txsn
 
int hrsn
 
int pkts_recv
 
int pkts_ooseq
 
int pkts_lost
 
int pkts_invalid
 
int pkts_last_reset
 
int cnt
 
double rftt
 
double srtt
 
double sftt
 
double lrtime
 
double sthr
 
double period_
 
int pktSize_
 
double sumrtt
 
double sumrtt2
 
int rttsamples
 
double sumftt
 
double sumftt2
 
int fttsamples
 
double sumtxtimes = 0
 
double sumbytes
 
double sumdt
 
uint32_t esn
 
int tracefile_enabler_
 

Friends

class UwUpdateTrackMeasure
 

Additional Inherited Members

- Static Protected Member Functions inherited from UwCbrModule
static int getCbrHeaderSize ()
 
- Static Protected Attributes inherited from UwCbrModule
static int uidcnt_ = 0
 

Detailed Description

UwTrackerModule class is used to track mobile nodes via sonar and share tracking information via packets.

Definition at line 69 of file uwtracker-module.h.

Constructor & Destructor Documentation

◆ UwTrackerModule() [1/2]

UwTrackerModule::UwTrackerModule ( )

Default Constructor of UwTrackerModule class.

Definition at line 70 of file uwtracker-module.cpp.

◆ UwTrackerModule() [2/2]

UwTrackerModule::UwTrackerModule ( UWSMPosition p)

Constructor with position setting of UwTrackerModule class.

Parameters
UWSMPosition*p Pointer to the track position

Definition at line 84 of file uwtracker-module.cpp.

◆ ~UwTrackerModule()

UwTrackerModule::~UwTrackerModule ( )
virtual

Destructor of UwTrackerModule class.

Definition at line 99 of file uwtracker-module.cpp.

Member Function Documentation

◆ command()

int UwTrackerModule::command ( int  argc,
const char *const *  argv 
)
virtual

TCL command interpreter.

It implements the following OTcl methods:

Parameters
argcNumber of arguments in argv.
argvArray of strings which are the command parameters (Note that argv[0] is the name of the object).
Returns
TCL_OK or TCL_ERROR whether the command has been dispatched successfully or not.

Reimplemented from UwCbrModule.

Reimplemented in UwSCFTrackerModule, and UwSCTrackerModule.

Definition at line 101 of file uwtracker-module.cpp.

◆ initPkt()

void UwTrackerModule::initPkt ( Packet *  p)
virtual

Initializes a monitoring data packet passed as argument with the default values.

Parameters
Packet*Pointer to a packet already allocated to fill with the right values.

Reimplemented from UwCbrModule.

Reimplemented in UwSCFTrackerModule.

Definition at line 138 of file uwtracker-module.cpp.

◆ printReceivedPacket()

void UwTrackerModule::printReceivedPacket ( Packet *  p)
protectedvirtual

Print to tracefile details about a received packet.

Parameters
Packet*Pointer to the received packet

Reimplemented from UwCbrModule.

Definition at line 154 of file uwtracker-module.cpp.

◆ sendPkt()

void UwTrackerModule::sendPkt ( )
protectedvirtual

Allocates, initialize and sends a packet with the default priority flag set from tcl.

Reimplemented from UwCbrModule.

Definition at line 125 of file uwtracker-module.cpp.

◆ start()

void UwTrackerModule::start ( )
protectedvirtual

Start to send packets.

Reimplemented from UwCbrModule.

Reimplemented in UwSCFTrackerModule.

Definition at line 201 of file uwtracker-module.cpp.

◆ stop()

void UwTrackerModule::stop ( )
protectedvirtual

Stop to send packets.

Reimplemented from UwCbrModule.

Reimplemented in UwSCFTrackerModule.

Definition at line 207 of file uwtracker-module.cpp.

◆ updateTrackMeasure()

void UwTrackerModule::updateTrackMeasure ( )
protected

Update the track measure.

Definition at line 184 of file uwtracker-module.cpp.

Friends And Related Symbol Documentation

◆ UwUpdateTrackMeasure

friend class UwUpdateTrackMeasure
friend

Definition at line 70 of file uwtracker-module.h.

Member Data Documentation

◆ max_tracking_distance

double UwTrackerModule::max_tracking_distance
protected

Maximum tracking distance, in [m].

Definition at line 112 of file uwtracker-module.h.

◆ measure_timer

UwUpdateTrackMeasure UwTrackerModule::measure_timer
protected

timer to schedule tracking measurements

Definition at line 117 of file uwtracker-module.h.

◆ send_only_active_trace

int UwTrackerModule::send_only_active_trace
protected

send only active trace

Definition at line 114 of file uwtracker-module.h.

◆ track_measure

hdr_uwTracker UwTrackerModule::track_measure
protected

Track position.

Definition at line 110 of file uwtracker-module.h.

◆ track_my_position

int UwTrackerModule::track_my_position
protected

track also my position

Definition at line 115 of file uwtracker-module.h.

◆ track_position

UWSMPosition* UwTrackerModule::track_position
protected

Track position.

Definition at line 109 of file uwtracker-module.h.

◆ tracking_period

double UwTrackerModule::tracking_period
protected

period between tracking measurements

Definition at line 116 of file uwtracker-module.h.


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