the propagation delay is random More...
#include <propagation-delay-model.h>
Public Member Functions | |
RandomPropagationDelayModel () | |
virtual | ~RandomPropagationDelayModel () |
virtual Time | GetDelay (Ptr< MobilityModel > a, Ptr< MobilityModel > b) const |
Static Public Member Functions | |
static TypeId | GetTypeId (void) |
This method returns the TypeId associated to ns3::RandomPropagationDelayModel. | |
Private Attributes | |
RandomVariable | m_variable |
the propagation delay is random
Definition at line 54 of file propagation-delay-model.h.
ns3::RandomPropagationDelayModel::RandomPropagationDelayModel | ( | ) |
Use the default parameters from PropagationDelayRandomDistribution.
Definition at line 58 of file propagation-delay-model.cc.
ns3::RandomPropagationDelayModel::~RandomPropagationDelayModel | ( | ) | [virtual] |
Definition at line 60 of file propagation-delay-model.cc.
Time ns3::RandomPropagationDelayModel::GetDelay | ( | Ptr< MobilityModel > | a, | |
Ptr< MobilityModel > | b | |||
) | const [virtual] |
a | the source | |
b | the destination |
Calculate the propagation delay between the specified source and destination.
Implements ns3::PropagationDelayModel.
Definition at line 63 of file propagation-delay-model.cc.
References ns3::RandomVariable::GetValue(), m_variable, and ns3::Seconds().
TypeId ns3::RandomPropagationDelayModel::GetTypeId | ( | void | ) | [static] |
This method returns the TypeId associated to ns3::RandomPropagationDelayModel.
Attributes defined for this type:
No TraceSources defined for this type.
Reimplemented from ns3::PropagationDelayModel.
Definition at line 44 of file propagation-delay-model.cc.
References ns3::TypeId::AddAttribute(), m_variable, and ns3::TypeId::SetParent().
Definition at line 66 of file propagation-delay-model.h.
Referenced by GetDelay(), and GetTypeId().