The propagation loss is fixed for each pair of nodes and doesn't depend on their actual positions. More...
#include <propagation-loss-model.h>
Public Member Functions | |
void | SetLoss (Ptr< Node > a, Ptr< Node > b, double loss, bool symmetric=true) |
Set loss (in dB, positive) between pair of nodes. | |
void | SetDefaultLoss (double) |
Set default loss (in dB, positive) to be used, infinity if not set. | |
Static Public Member Functions | |
static TypeId | GetTypeId (void) |
This method returns the TypeId associated to ns3::MatrixPropagationLossModel. |
The propagation loss is fixed for each pair of nodes and doesn't depend on their actual positions.
This is supposed to be used by synthetic tests. Note that by default propagation loss is assumed to be symmetric.
static TypeId ns3::MatrixPropagationLossModel::GetTypeId | ( | void | ) | [static] |
This method returns the TypeId associated to ns3::MatrixPropagationLossModel.
This object is accessible through the following paths with Config::Set and Config::Connect:
Attributes defined for this type:
No TraceSources defined for this type.
Reimplemented from ns3::PropagationLossModel.
void ns3::MatrixPropagationLossModel::SetLoss | ( | Ptr< Node > | a, | |
Ptr< Node > | b, | |||
double | loss, | |||
bool | symmetric = true | |||
) |
Set loss (in dB, positive) between pair of nodes.
a | Source node | |
b | Destination node | |
loss | a -> b path loss, positive in dB | |
symmetric | If true (default), both a->b and b->a paths will be affected |