a log distance propagation model. More...
#include <propagation-loss-model.h>
Public Member Functions | |
void | SetPathLossExponent (double n) |
double | GetPathLossExponent (void) const |
void | SetReferenceModel (Ptr< PropagationLossModel > model) |
virtual double | GetLoss (Ptr< MobilityModel > a, Ptr< MobilityModel > b) const |
Static Public Member Functions | |
static TypeId | GetTypeId (void) |
This method returns the TypeId associated to ns3::LogDistancePropagationLossModel. |
a log distance propagation model.
This model calculates the reception power with a so-called log-distance propagation model:
where:
When the path loss is requested at a distance smaller than the reference distance, the tx power is returned.
virtual double ns3::LogDistancePropagationLossModel::GetLoss | ( | Ptr< MobilityModel > | a, | |
Ptr< MobilityModel > | b | |||
) | const [virtual] |
a | the mobility model of the source | |
b | the mobility model of the destination |
Implements ns3::PropagationLossModel.
double ns3::LogDistancePropagationLossModel::GetPathLossExponent | ( | void | ) | const |
static TypeId ns3::LogDistancePropagationLossModel::GetTypeId | ( | void | ) | [static] |
This method returns the TypeId associated to ns3::LogDistancePropagationLossModel.
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::LogDistancePropagationLossModel::SetPathLossExponent | ( | double | n | ) |
n | the path loss exponent. Set the path loss exponent. |
void ns3::LogDistancePropagationLossModel::SetReferenceModel | ( | Ptr< PropagationLossModel > | model | ) |
model | the reference propagation model |