|
DESERT 3.6.1
|
#include <uwtracker-module.h>
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 ()=default |
| virtual void | recv (Packet *) override |
| virtual void | recv (Packet *p, Handler *h) override |
| 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 | |
| UWSMPosition * | track_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 |
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.
| UwTrackerModule::UwTrackerModule | ( | ) |
Default Constructor of UwTrackerModule class.
Definition at line 70 of file uwtracker-module.cpp.
| UwTrackerModule::UwTrackerModule | ( | UWSMPosition * | p | ) |
Constructor with position setting of UwTrackerModule class.
| UWSMPosition* | p Pointer to the track position |
Definition at line 84 of file uwtracker-module.cpp.
|
virtual |
Destructor of UwTrackerModule class.
Definition at line 99 of file uwtracker-module.cpp.
|
virtual |
TCL command interpreter.
It implements the following OTcl methods:
| argc | Number of arguments in argv. |
| argv | Array of strings which are the command parameters (Note that argv[0] is the name of the object). |
Reimplemented from UwCbrModule.
Reimplemented in UwSCFTrackerModule, and UwSCTrackerModule.
Definition at line 101 of file uwtracker-module.cpp.
|
virtual |
Initializes a monitoring data packet passed as argument with the default values.
| 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.
|
protectedvirtual |
Print to tracefile details about a received packet.
| Packet* | Pointer to the received packet |
Reimplemented from UwCbrModule.
Definition at line 154 of file uwtracker-module.cpp.
|
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.
|
protectedvirtual |
Start to send packets.
Reimplemented from UwCbrModule.
Reimplemented in UwSCFTrackerModule.
Definition at line 201 of file uwtracker-module.cpp.
|
protectedvirtual |
Stop to send packets.
Reimplemented from UwCbrModule.
Reimplemented in UwSCFTrackerModule.
Definition at line 207 of file uwtracker-module.cpp.
|
protected |
Update the track measure.
Definition at line 184 of file uwtracker-module.cpp.
|
friend |
Definition at line 70 of file uwtracker-module.h.
|
protected |
Maximum tracking distance, in [m].
Definition at line 112 of file uwtracker-module.h.
|
protected |
timer to schedule tracking measurements
Definition at line 117 of file uwtracker-module.h.
|
protected |
send only active trace
Definition at line 114 of file uwtracker-module.h.
|
protected |
Track position.
Definition at line 110 of file uwtracker-module.h.
|
protected |
track also my position
Definition at line 115 of file uwtracker-module.h.
|
protected |
Track position.
Definition at line 109 of file uwtracker-module.h.
|
protected |
period between tracking measurements
Definition at line 116 of file uwtracker-module.h.