ns3::ConstantSpeedPropagationDelayModel Class Reference

the propagation speed is constant More...

#include <propagation-delay-model.h>

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

List of all members.

Public Member Functions

 ConstantSpeedPropagationDelayModel ()
virtual Time GetDelay (Ptr< MobilityModel > a, Ptr< MobilityModel > b) const
void SetSpeed (double speed)
double GetSpeed (void) const

Static Public Member Functions

static TypeId GetTypeId (void)
 This method returns the TypeId associated to ns3::ConstantSpeedPropagationDelayModel.

Private Attributes

double m_speed

Detailed Description

the propagation speed is constant

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


Constructor & Destructor Documentation

ns3::ConstantSpeedPropagationDelayModel::ConstantSpeedPropagationDelayModel (  ) 

Use the default parameters from PropagationDelayConstantSpeed.

Definition at line 84 of file propagation-delay-model.cc.


Member Function Documentation

Time ns3::ConstantSpeedPropagationDelayModel::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 87 of file propagation-delay-model.cc.

References m_speed, and ns3::Seconds().

double ns3::ConstantSpeedPropagationDelayModel::GetSpeed ( void   )  const
Returns:
the current propagation speed (m/s).

Definition at line 99 of file propagation-delay-model.cc.

References m_speed.

TypeId ns3::ConstantSpeedPropagationDelayModel::GetTypeId ( void   )  [static]

This method returns the TypeId associated to ns3::ConstantSpeedPropagationDelayModel.

Attributes defined for this type:

  • Speed: The speed (m/s)
    • Set with class: ns3::DoubleValue
    • Underlying type: double -1.79769e+308:1.79769e+308
    • Initial value: 3e+08
    • Flags: construct write read

No TraceSources defined for this type.

Reimplemented from ns3::PropagationDelayModel.

Definition at line 71 of file propagation-delay-model.cc.

References ns3::TypeId::AddAttribute(), m_speed, and ns3::TypeId::SetParent().

void ns3::ConstantSpeedPropagationDelayModel::SetSpeed ( double  speed  ) 
Parameters:
speed the new speed (m/s)

Definition at line 94 of file propagation-delay-model.cc.

References m_speed.


Member Data Documentation

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

Referenced by GetDelay(), GetSpeed(), GetTypeId(), and SetSpeed().


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