ns3::RandomPropagationDelayModel Class Reference

the propagation delay is random More...

#include <propagation-delay-model.h>

Inheritance diagram for ns3::RandomPropagationDelayModel:
Inheritance graph
[legend]
Collaboration diagram for ns3::RandomPropagationDelayModel:
Collaboration graph
[legend]

List of all members.

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

Detailed Description

the propagation delay is random

Definition at line 54 of file propagation-delay-model.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

Time ns3::RandomPropagationDelayModel::GetDelay ( Ptr< MobilityModel a,
Ptr< MobilityModel b 
) const [virtual]
Parameters:
a the source
b the destination
Returns:
the calculated propagation delay

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:

  • Variable: The random variable which generates random delays (s).

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().


Member Data Documentation

Definition at line 66 of file propagation-delay-model.h.

Referenced by GetDelay(), and GetTypeId().


The documentation for this class was generated from the following files:
Generated on Thu Dec 3 14:11:19 2009 for NS-3 by  doxygen 1.6.3