#include <uwPosBasedRtROV.h>
Definition at line 59 of file uwPosBasedRtROV.h.
◆ pair_posIP
◆ UwPosBasedRtROV()
UwPosBasedRtROV::UwPosBasedRtROV |
( |
| ) |
|
◆ ~UwPosBasedRtROV()
UwPosBasedRtROV::~UwPosBasedRtROV |
( |
| ) |
|
|
virtual |
◆ command()
int UwPosBasedRtROV::command |
( |
int |
argc, |
|
|
const char *const * |
argv |
|
) |
| |
|
protectedvirtual |
TCL command interpreter.
It implements the following OTcl methods:
- Parameters
-
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). |
- Returns
- TCL_OK or TCL_ERROR whether the command has been dispatched successfully or not.
Definition at line 83 of file uwPosBasedRtROV.cpp.
◆ findNextHop()
uint8_t UwPosBasedRtROV::findNextHop |
( |
const Packet * |
p | ) |
|
|
protectedvirtual |
Find next hop of a packet passed as input.
- Parameters
-
Packet* | Pointer to the packet will be received. |
Definition at line 227 of file uwPosBasedRtROV.cpp.
◆ initPkt()
void UwPosBasedRtROV::initPkt |
( |
Packet * |
p | ) |
|
|
protectedvirtual |
◆ nodesDistance()
double UwPosBasedRtROV::nodesDistance |
( |
Position & |
p1, |
|
|
Position & |
p2 |
|
) |
| |
|
privatevirtual |
Compute absoulute distance between 2 nodes.
- Parameters
-
Position | position first node. |
Position | position second node. |
Definition at line 258 of file uwPosBasedRtROV.cpp.
◆ recv()
void UwPosBasedRtROV::recv |
( |
Packet * |
p | ) |
|
|
protectedvirtual |
Performs the reception of packets from upper and lower layers.
- Parameters
-
Packet* | Pointer to the packet will be received. |
Definition at line 138 of file uwPosBasedRtROV.cpp.
◆ setMaxTxRange()
void UwPosBasedRtROV::setMaxTxRange |
( |
double |
newRange | ) |
|
|
protectedvirtual |
Set maximum transmission range.
- Parameters
-
float | New value for transmission range. |
Definition at line 271 of file uwPosBasedRtROV.cpp.
◆ debug_
int UwPosBasedRtROV::debug_ |
|
private |
Flag to enable or disable dirrefent levels of debug.
Definition at line 136 of file uwPosBasedRtROV.h.
◆ ipAddr
uint8_t UwPosBasedRtROV::ipAddr |
|
private |
◆ list_posIP
List with position of all the other nodes with its IP.
Definition at line 133 of file uwPosBasedRtROV.h.
◆ maxTxRange
double UwPosBasedRtROV::maxTxRange |
|
private |
Maximum transmission range, in meters, for this node.
Definition at line 126 of file uwPosBasedRtROV.h.
◆ ROV_pos
Pointer to ROV position.
Give ROV position via TCL command.
Definition at line 129 of file uwPosBasedRtROV.h.
The documentation for this class was generated from the following files: