#include <uwmulti-stack-controller-phy-master.h>
Class used to represents the UwMultiStackControllerPhyMaster layer of a node.
Definition at line 52 of file uwmulti-stack-controller-phy-master.h.
◆ UwMultiStackControllerPhyMaster()
UwMultiStackControllerPhyMaster::UwMultiStackControllerPhyMaster |
( |
| ) |
|
◆ ~UwMultiStackControllerPhyMaster()
virtual UwMultiStackControllerPhyMaster::~UwMultiStackControllerPhyMaster |
( |
| ) |
|
|
inlinevirtual |
◆ checkAndSignal()
void UwMultiStackControllerPhyMaster::checkAndSignal |
( |
| ) |
|
|
protectedvirtual |
◆ checkBestLayer()
int UwMultiStackControllerPhyMaster::checkBestLayer |
( |
| ) |
|
|
protectedvirtual |
◆ command()
int UwMultiStackControllerPhyMaster::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 UwMultiStackControllerPhy.
Definition at line 80 of file uwmulti-stack-controller-phy-master.cc.
◆ getBestLayer()
int UwMultiStackControllerPhyMaster::getBestLayer |
( |
Packet * |
p | ) |
|
|
protectedvirtual |
Return the best layer to forward the packet when the system works in AUTOMATIC_MODE.
It overloads in the extended classes to implement the choice rule.
- Parameters
-
- Returns
- id of the module representing the best layer
Reimplemented from UwMultiStackController.
Definition at line 140 of file uwmulti-stack-controller-phy-master.cc.
◆ getLongerRangeLayer()
int UwMultiStackControllerPhyMaster::getLongerRangeLayer |
( |
int |
layer_id | ) |
|
|
inlineprotected |
Return the previous layer in order which can achieve longer range with lower bitrete.
- Parameters
-
layer_id | id of the current layer |
- Returns
- id of the previous layer in order
Definition at line 185 of file uwmulti-stack-controller-phy-master.h.
◆ getShorterRangeLayer()
int UwMultiStackControllerPhyMaster::getShorterRangeLayer |
( |
int |
layer_id | ) |
|
|
inlineprotected |
Return the next layer in order which can achieve shorter range with higer bitrete.
- Parameters
-
layer_id | id of the current layer |
- Returns
- id of the next layer in order
Definition at line 174 of file uwmulti-stack-controller-phy-master.h.
◆ recv()
void UwMultiStackControllerPhyMaster::recv |
( |
Packet * |
p, |
|
|
int |
idSrc |
|
) |
| |
|
virtual |
◆ recvSyncClMsg()
int UwMultiStackControllerPhyMaster::recvSyncClMsg |
( |
ClMessage * |
m | ) |
|
|
protectedvirtual |
Cross-Layer messages synchronous interpreter.
It has to be properly extended in order to interpret custom cross-layer messages used by this particular plug-in. This type of communication need to be directly answered in the message exchanged in order to be synchronous with the source.
- Parameters
-
m | an instance of ClMessage that represent the message received and used for the answer |
- Returns
- zero if successful
- See also
- NodeCore, ClMessage, ClSAP, ClTracer, UwMultiStackControllerPhy
Reimplemented from UwMultiStackControllerPhy.
Definition at line 237 of file uwmulti-stack-controller-phy-master.cc.
◆ resetCheckAndSignal()
void UwMultiStackControllerPhyMaster::resetCheckAndSignal |
( |
| ) |
|
|
protectedvirtual |
◆ signalsBestPhy()
void UwMultiStackControllerPhyMaster::signalsBestPhy |
( |
| ) |
|
|
protectedvirtual |
◆ updateMasterStatistics()
void UwMultiStackControllerPhyMaster::updateMasterStatistics |
( |
Packet * |
p, |
|
|
int |
idSrc |
|
) |
| |
|
protectedvirtual |
It implements the slave choice rule to choose the lower layer when the system works in AUTOMATIC_MODE.
- Parameters
-
p | pointer to the packet |
idSrc | unique id of the module that has sent the packet |
Definition at line 254 of file uwmulti-stack-controller-phy-master.cc.
◆ alpha_
double UwMultiStackControllerPhyMaster::alpha_ |
|
protected |
◆ last_layer_used_
int UwMultiStackControllerPhyMaster::last_layer_used_ |
|
protected |
◆ power_stat_node_
int UwMultiStackControllerPhyMaster::power_stat_node_ |
|
protected |
◆ power_statistics_
double UwMultiStackControllerPhyMaster::power_statistics_ |
|
protected |
◆ signaling_active_
int UwMultiStackControllerPhyMaster::signaling_active_ |
|
protected |
◆ signaling_period_
double UwMultiStackControllerPhyMaster::signaling_period_ |
|
protected |
◆ signaling_sent_
int UwMultiStackControllerPhyMaster::signaling_sent_ |
|
protected |
◆ signaling_timer_
The documentation for this class was generated from the following files: