39#ifndef UW_POS_BASED_RT_ROV_H
40#define UW_POS_BASED_RT_ROV_H
42#define DROP_NEXT_HOP_NOT_FOUND \
44#define DROP_IP_NOT_SET \
47#define pi (4 * atan(1.0))
83 virtual int command(
int,
const char *
const *);
90 virtual void recv(Packet* p);
97 virtual void initPkt(Packet* p);
virtual void initPkt(Packet *p)
Initialize field of hdr_uwpos_based_rt
double maxTxRange
Maximum transmission range, in meters, for this node.
std::pair< Position, uint8_t > pair_posIP
UWSMPosition * ROV_pos
Pointer to ROV position.
virtual uint8_t findNextHop(const Packet *p)
Find next hop of a packet passed as input.
virtual double nodesDistance(Position &p1, Position &p2)
Compute absoulute distance between 2 nodes.
virtual int command(int, const char *const *)
TCL command interpreter.
virtual void setMaxTxRange(double newRange)
Set maximum transmission range.
int debug_
Flag to enable or disable dirrefent levels of debug.
virtual ~UwPosBasedRtROV()
Destructor of UwPosBasedRtROV class.
UwPosBasedRtROV()
Constructor of UwPosBasedRtROV class.
std::list< pair_posIP > list_posIP
List with position of all the other nodes with its IP.
virtual void recv(Packet *p)
Performs the reception of packets from upper and lower layers.
Provides the header description for UwPosBasedRt packets.
Provides the UWIP packets header description. Definition of the class that define the network layer.
Provides the definition of the class UWSMPosition.