the propagation speed is constant More...
#include <propagation-delay-model.h>
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 |
the propagation speed is constant
Definition at line 72 of file propagation-delay-model.h.
ns3::ConstantSpeedPropagationDelayModel::ConstantSpeedPropagationDelayModel | ( | ) |
Use the default parameters from PropagationDelayConstantSpeed.
Definition at line 84 of file propagation-delay-model.cc.
Time ns3::ConstantSpeedPropagationDelayModel::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 87 of file propagation-delay-model.cc.
References m_speed, and ns3::Seconds().
double ns3::ConstantSpeedPropagationDelayModel::GetSpeed | ( | void | ) | const |
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:
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 | ) |
speed | the new speed (m/s) |
Definition at line 94 of file propagation-delay-model.cc.
References m_speed.
double ns3::ConstantSpeedPropagationDelayModel::m_speed [private] |
Definition at line 91 of file propagation-delay-model.h.
Referenced by GetDelay(), GetSpeed(), GetTypeId(), and SetSpeed().