DESERT 3.5.1
|
#include <uwsc-tracker-follower-module.h>
Public Member Functions | |
UwSCFTrackerModule () | |
virtual | ~UwSCFTrackerModule ()=default |
virtual int | command (int argc, const char *const *argv) override |
virtual void | initPkt (Packet *p) override |
![]() | |
UwTrackerModule () | |
UwTrackerModule (UWSMPosition *p) | |
virtual | ~UwTrackerModule () |
![]() | |
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 Types | |
enum class | FollowerState { TRACK , DETECT , DEMINE , IDLE } |
Protected Member Functions | |
void | sendPkt () |
void | updateMineRemove () |
UWSMPosition * | updateTrackPosition () |
virtual void | start () override |
virtual void | stop () override |
![]() | |
virtual void | printReceivedPacket (Packet *p) |
void | sendPkt () |
void | updateTrackMeasure () |
![]() | |
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 () |
Friends | |
class | UwUpdateMineStatus |
Additional Inherited Members | |
![]() | |
static int | getCbrHeaderSize () |
![]() | |
static int | uidcnt_ = 0 |
UwSCFTrackerModule class is used to track mines via sonar and share tracking information via packets.
After a given time a mine is detected, this module provides to remove it.
Definition at line 71 of file uwsc-tracker-follower-module.h.
|
strongprotected |
Followerstate list all the possible state of the follower.
Enumerator | |
---|---|
TRACK | Tracking mines. |
DETECT | Detecting a mine. |
DEMINE | Removed a mine. |
IDLE | Not tracking. |
Definition at line 112 of file uwsc-tracker-follower-module.h.
UwSCFTrackerModule::UwSCFTrackerModule | ( | ) |
Default Constructor of UwSCFTrackerModule class.
Definition at line 63 of file uwsc-tracker-follower-module.cc.
|
virtualdefault |
Destructor of UwSCFTrackerModule class.
|
overridevirtual |
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 UwTrackerModule.
Definition at line 76 of file uwsc-tracker-follower-module.cc.
|
overridevirtual |
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 UwTrackerModule.
Definition at line 144 of file uwsc-tracker-follower-module.cc.
|
protectedvirtual |
Allocates, initialize and sends a packet with the default priority flag set from tcl.
Reimplemented from UwCbrModule.
Definition at line 100 of file uwsc-tracker-follower-module.cc.
|
overrideprotectedvirtual |
Start to send packets.
Reimplemented from UwTrackerModule.
Definition at line 224 of file uwsc-tracker-follower-module.cc.
|
overrideprotectedvirtual |
Stop to send packets.
Reimplemented from UwTrackerModule.
Definition at line 236 of file uwsc-tracker-follower-module.cc.
|
protected |
Update the mine measure.
Definition at line 157 of file uwsc-tracker-follower-module.cc.
|
protected |
Update the current track position with the nearest mine position.
Definition at line 196 of file uwsc-tracker-follower-module.cc.
|
friend |
Definition at line 73 of file uwsc-tracker-follower-module.h.
|
protected |
Current position of the follower.
Definition at line 120 of file uwsc-tracker-follower-module.h.
|
protected |
Current state of the follower.
Definition at line 121 of file uwsc-tracker-follower-module.h.
|
protected |
Timer to schedule packets transmission.
Definition at line 122 of file uwsc-tracker-follower-module.h.
|
protected |
Detected mine packets.
Definition at line 123 of file uwsc-tracker-follower-module.h.
|
protected |
Positions of the mines in the area.
Definition at line 119 of file uwsc-tracker-follower-module.h.
|
protected |
Timer to schedule detecting measurements.
Definition at line 124 of file uwsc-tracker-follower-module.h.