#include <uwmulti-traffic-range-crt.h>
|
virtual void | manageBuffer (int traffic) |
|
virtual int | getBestLowerLayer (int traffic, Packet *p=NULL) |
|
virtual void | checkRange (int traffic, int module_id, uint8_t destAdd=UWIP_BROADCAST) |
|
virtual void | manageCheckedLayer (int module_id, uint8_t destAdd, bool in_range, int idSrc=0) |
|
virtual void | initStatus (int traffic) |
|
virtual void | timerExpired (int traffic) |
|
void | incrSignalingCounter (int traffic, CounterMap &map_cnt) |
|
uint | getSignalingCounter (int traffic, const CounterMap &map_cnt) const |
|
virtual void | recvFromUpperLayers (Packet *p) |
|
virtual void | insertInBuffer (Packet *p, int traffic) |
|
virtual Packet * | removeFromBuffer (int traffic) |
|
virtual Packet * | getFromBuffer (int traffic) |
|
void | insertTraffic2UpLayer (int traffic, int upper_layer_id) |
|
void | insertTraffic2LowerLayer (int traffic, int lower_layer_stack, int lower_layer_id, int behavior) |
|
virtual int | getUpperLayer (int traffic) |
|
virtual void | eraseTraffic2LowerLayer (int traffic, int lower_layer_stack) |
|
virtual void | eraseTraffic2Low (int traffic) |
|
virtual void | eraseTraffic2Up (int traffic) |
|
virtual void | addUpLayerFromTag (int traffic_id, std::string tag) |
|
virtual void | addLowLayerFromTag (int traffic_id, std::string tag, int behavior) |
|
void | setBufferFeature (int traffic_id, int max_size, bool is_circular, double send_down_delay=0) |
|
virtual void | incrPktLoss (int traffic_id) |
|
virtual uint | getDiscardedPacket (int traffic_id) const |
|
Class used to represents the UwMultiTrafficRangeCtr layer of a node.
Definition at line 98 of file uwmulti-traffic-range-crt.h.
◆ UwMultiTrafficRangeCtr()
UwMultiTrafficRangeCtr::UwMultiTrafficRangeCtr |
( |
| ) |
|
◆ ~UwMultiTrafficRangeCtr()
virtual UwMultiTrafficRangeCtr::~UwMultiTrafficRangeCtr |
( |
| ) |
|
|
inlinevirtual |
◆ checkRange()
void UwMultiTrafficRangeCtr::checkRange |
( |
int |
traffic, |
|
|
int |
module_id, |
|
|
uint8_t |
destAdd = UWIP_BROADCAST |
|
) |
| |
|
protectedvirtual |
◆ command()
int UwMultiTrafficRangeCtr::command |
( |
int |
argc, |
|
|
const char *const * |
argv |
|
) |
| |
|
virtual |
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.
Reimplemented from UwMultiTrafficControl.
Definition at line 83 of file uwmulti-traffic-range-crt.cc.
◆ getBestLowerLayer()
int UwMultiTrafficRangeCtr::getBestLowerLayer |
( |
int |
traffic, |
|
|
Packet * |
p = NULL |
|
) |
| |
|
protectedvirtual |
◆ getSignalingCounter()
uint UwMultiTrafficRangeCtr::getSignalingCounter |
( |
int |
traffic, |
|
|
const CounterMap & |
map_cnt |
|
) |
| const |
|
protected |
Return the number of signaling pkts sent for the given traffic.
- Parameters
-
traffic | application traffic id |
map_cnt | map with counter for each traffic |
- Returns
- number of signaling packets sent for the given traffic and 0 if traffic not found
Definition at line 435 of file uwmulti-traffic-range-crt.cc.
◆ incrSignalingCounter()
void UwMultiTrafficRangeCtr::incrSignalingCounter |
( |
int |
traffic, |
|
|
CounterMap & |
map_cnt |
|
) |
| |
|
protected |
Incement number of signaling pkts sent for the given traffic.
- Parameters
-
traffic | application traffic id |
map_cnt | map with counter for each traffic |
Definition at line 424 of file uwmulti-traffic-range-crt.cc.
◆ initStatus()
void UwMultiTrafficRangeCtr::initStatus |
( |
int |
traffic | ) |
|
|
protectedvirtual |
◆ manageBuffer()
void UwMultiTrafficRangeCtr::manageBuffer |
( |
int |
traffic | ) |
|
|
protectedvirtual |
◆ manageCheckedLayer()
void UwMultiTrafficRangeCtr::manageCheckedLayer |
( |
int |
module_id, |
|
|
uint8_t |
destAdd, |
|
|
bool |
in_range, |
|
|
int |
idSrc = 0 |
|
) |
| |
|
protectedvirtual |
procedure when a CHECKED stack is checked
- Parameters
-
module | id |
in_range | true if the PHY is in range, false otherwise |
Definition at line 177 of file uwmulti-traffic-range-crt.cc.
◆ recv()
void UwMultiTrafficRangeCtr::recv |
( |
Packet * |
p, |
|
|
int |
idSrc |
|
) |
| |
|
virtual |
◆ sendDown() [1/2]
virtual void UwMultiTrafficRangeCtr::sendDown |
( |
int |
moduleId, |
|
|
Packet * |
p, |
|
|
double |
delay = 0 |
|
) |
| |
|
inlinevirtual |
Send a packet to the requested module of the bottom layer.
- Parameters
-
moduleId | ID of the down module at which you would send the packet |
p | pointer of the packet which has to be sent |
delay | (optional) delay introduced before transmission [sec.] |
Definition at line 146 of file uwmulti-traffic-range-crt.h.
◆ sendDown() [2/2]
virtual void UwMultiTrafficRangeCtr::sendDown |
( |
Packet * |
p, |
|
|
double |
delay = 0 |
|
) |
| |
|
inlinevirtual |
Send a packet to the module(s) of the bottom layers.
- Parameters
-
p | pointer of the packet which has to be sent |
delay | (optional) delay introduced before transmission [sec.] |
Definition at line 137 of file uwmulti-traffic-range-crt.h.
◆ timerExpired()
void UwMultiTrafficRangeCtr::timerExpired |
( |
int |
traffic | ) |
|
|
protectedvirtual |
◆ check_to_period
double UwMultiTrafficRangeCtr::check_to_period |
|
protected |
◆ rx_probe_ack_cnt
CounterMap UwMultiTrafficRangeCtr::rx_probe_ack_cnt |
|
protected |
◆ rx_probe_cnt
◆ signaling_pktSize
int UwMultiTrafficRangeCtr::signaling_pktSize |
|
protected |
◆ status
◆ timers
◆ tx_probe_ack_cnt
CounterMap UwMultiTrafficRangeCtr::tx_probe_ack_cnt |
|
protected |
◆ tx_probe_cnt
The documentation for this class was generated from the following files: