ns-3
ns3::ConstantSpeedPropagationDelayModel Class Reference

the propagation speed is constant More...

#include <propagation-delay-model.h>

Inheritance diagram for ns3::ConstantSpeedPropagationDelayModel:
Collaboration diagram for ns3::ConstantSpeedPropagationDelayModel:

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.

Detailed Description

the propagation speed is constant


Constructor & Destructor Documentation

Use the default parameters from PropagationDelayConstantSpeed.


Member Function Documentation

Parameters:
athe source
bthe destination
Returns:
the calculated propagation delay

Calculate the propagation delay between the specified source and destination.

Implements ns3::PropagationDelayModel.

References ns3::MobilityModel::GetDistanceFrom(), and ns3::Seconds().

Returns:
the current propagation speed (m/s).

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

This object is accessible through the following paths with Config::Set and Config::Connect:

  • /NodeList/[i]/DeviceList/[i]/$ns3::AlohaNoackNetDevice/Phy/$ns3::Channel/$ns3::WifiChannel/$ns3::YansWifiChannel/PropagationDelayModel/$ns3::ConstantSpeedPropagationDelayModel
  • /NodeList/[i]/DeviceList/[i]/$ns3::AlohaNoackNetDevice/Phy/$ns3::Channel/$ns3::YansWifiChannel/PropagationDelayModel/$ns3::ConstantSpeedPropagationDelayModel
  • /NodeList/[i]/DeviceList/[i]/$ns3::AlohaNoackNetDevice/Phy/$ns3::ChannelListPriv/ChannelList/[i]/$ns3::WifiChannel/$ns3::YansWifiChannel/PropagationDelayModel/$ns3::ConstantSpeedPropagationDelayModel
  • /NodeList/[i]/DeviceList/[i]/$ns3::AlohaNoackNetDevice/Phy/$ns3::ChannelListPriv/ChannelList/[i]/$ns3::YansWifiChannel/PropagationDelayModel/$ns3::ConstantSpeedPropagationDelayModel
  • /NodeList/[i]/DeviceList/[i]/$ns3::AlohaNoackNetDevice/Phy/$ns3::ConstantSpeedPropagationDelayModel
  • /NodeList/[i]/DeviceList/[i]/$ns3::AlohaNoackNetDevice/Phy/$ns3::PropagationDelayModel/$ns3::ConstantSpeedPropagationDelayModel
  • /NodeList/[i]/DeviceList/[i]/$ns3::AlohaNoackNetDevice/Phy/$ns3::WifiChannel/$ns3::YansWifiChannel/PropagationDelayModel/$ns3::ConstantSpeedPropagationDelayModel
  • /NodeList/[i]/DeviceList/[i]/$ns3::AlohaNoackNetDevice/Phy/$ns3::WifiNetDevice/Channel/$ns3::YansWifiChannel/PropagationDelayModel/$ns3::ConstantSpeedPropagationDelayModel
  • /NodeList/[i]/DeviceList/[i]/$ns3::AlohaNoackNetDevice/Phy/$ns3::YansWifiChannel/PropagationDelayModel/$ns3::ConstantSpeedPropagationDelayModel
  • /NodeList/[i]/DeviceList/[i]/$ns3::NonCommunicatingNetDevice/Phy/$ns3::Channel/$ns3::WifiChannel/$ns3::YansWifiChannel/PropagationDelayModel/$ns3::ConstantSpeedPropagationDelayModel
  • /NodeList/[i]/DeviceList/[i]/$ns3::NonCommunicatingNetDevice/Phy/$ns3::Channel/$ns3::YansWifiChannel/PropagationDelayModel/$ns3::ConstantSpeedPropagationDelayModel
  • /NodeList/[i]/DeviceList/[i]/$ns3::NonCommunicatingNetDevice/Phy/$ns3::ChannelListPriv/ChannelList/[i]/$ns3::WifiChannel/$ns3::YansWifiChannel/PropagationDelayModel/$ns3::ConstantSpeedPropagationDelayModel
  • /NodeList/[i]/DeviceList/[i]/$ns3::NonCommunicatingNetDevice/Phy/$ns3::ChannelListPriv/ChannelList/[i]/$ns3::YansWifiChannel/PropagationDelayModel/$ns3::ConstantSpeedPropagationDelayModel
  • /NodeList/[i]/DeviceList/[i]/$ns3::NonCommunicatingNetDevice/Phy/$ns3::ConstantSpeedPropagationDelayModel
  • /NodeList/[i]/DeviceList/[i]/$ns3::NonCommunicatingNetDevice/Phy/$ns3::PropagationDelayModel/$ns3::ConstantSpeedPropagationDelayModel
  • /NodeList/[i]/DeviceList/[i]/$ns3::NonCommunicatingNetDevice/Phy/$ns3::WifiChannel/$ns3::YansWifiChannel/PropagationDelayModel/$ns3::ConstantSpeedPropagationDelayModel
  • /NodeList/[i]/DeviceList/[i]/$ns3::NonCommunicatingNetDevice/Phy/$ns3::WifiNetDevice/Channel/$ns3::YansWifiChannel/PropagationDelayModel/$ns3::ConstantSpeedPropagationDelayModel
  • /NodeList/[i]/DeviceList/[i]/$ns3::NonCommunicatingNetDevice/Phy/$ns3::YansWifiChannel/PropagationDelayModel/$ns3::ConstantSpeedPropagationDelayModel
  • /NodeList/[i]/DeviceList/[i]/$ns3::WifiNetDevice/Channel/$ns3::YansWifiChannel/PropagationDelayModel/$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.

References ns3::TypeId::SetParent().

Parameters:
speedthe new speed (m/s)

The documentation for this class was generated from the following files: