#include <static-speed-helper.h>
Public Member Functions | |
StaticSpeedHelper () | |
StaticSpeedHelper (const Vector &position) | |
StaticSpeedHelper (const Vector &position, const Vector &vel) | |
void | SetPosition (const Vector &position) |
Vector | GetCurrentPosition (void) const |
Vector | GetVelocity (void) const |
void | SetVelocity (const Vector &vel) |
void | Pause (void) |
void | Unpause (void) |
void | UpdateWithBounds (const Rectangle &rectangle) const |
void | Update (void) const |
Private Attributes | |
Time | m_lastUpdate |
Vector | m_position |
Vector | m_velocity |
bool | m_paused |
Definition at line 30 of file static-speed-helper.h.
ns3::StaticSpeedHelper::StaticSpeedHelper | ( | ) |
Definition at line 26 of file static-speed-helper.cc.
ns3::StaticSpeedHelper::StaticSpeedHelper | ( | const Vector & | position | ) |
Definition at line 29 of file static-speed-helper.cc.
Definition at line 33 of file static-speed-helper.cc.
Vector ns3::StaticSpeedHelper::GetCurrentPosition | ( | void | ) | const |
Definition at line 48 of file static-speed-helper.cc.
References m_position.
Referenced by ns3::RandomWaypointMobilityModel::BeginWalk(), ns3::StaticSpeedMobilityModel::DoGetPosition(), ns3::RandomWaypointMobilityModel::DoGetPosition(), ns3::RandomWalk2dMobilityModel::DoGetPosition(), ns3::RandomDirection2dMobilityModel::DoGetPosition(), ns3::RandomWalk2dMobilityModel::DoWalk(), ns3::RandomWalk2dMobilityModel::Rebound(), ns3::RandomDirection2dMobilityModel::ResetDirectionAndSpeed(), and ns3::RandomDirection2dMobilityModel::SetDirectionAndSpeed().
Vector ns3::StaticSpeedHelper::GetVelocity | ( | void | ) | const |
Definition at line 54 of file static-speed-helper.cc.
References m_paused, and m_velocity.
Referenced by ns3::RandomWalk2dMobilityModel::DoGetVelocity(), ns3::RandomDirection2dMobilityModel::DoGetVelocity(), ns3::RandomWalk2dMobilityModel::DoWalk(), and ns3::RandomWalk2dMobilityModel::Rebound().
void ns3::StaticSpeedHelper::Pause | ( | void | ) |
Definition at line 93 of file static-speed-helper.cc.
References m_paused.
Referenced by ns3::RandomDirection2dMobilityModel::BeginPause(), and ns3::RandomWaypointMobilityModel::Start().
void ns3::StaticSpeedHelper::SetPosition | ( | const Vector & | position | ) |
Definition at line 40 of file static-speed-helper.cc.
References m_lastUpdate, m_position, m_velocity, and ns3::Now().
Referenced by ns3::RandomWalk2dMobilityModel::DoSetPosition(), and ns3::RandomDirection2dMobilityModel::DoSetPosition().
void ns3::StaticSpeedHelper::SetVelocity | ( | const Vector & | vel | ) |
Definition at line 59 of file static-speed-helper.cc.
References m_lastUpdate, m_velocity, and ns3::Now().
Referenced by ns3::RandomWaypointMobilityModel::BeginWalk(), ns3::RandomWalk2dMobilityModel::Rebound(), ns3::RandomDirection2dMobilityModel::SetDirectionAndSpeed(), ns3::StaticSpeedMobilityModel::SetVelocity(), and ns3::RandomWalk2dMobilityModel::Start().
void ns3::StaticSpeedHelper::Unpause | ( | void | ) |
Definition at line 99 of file static-speed-helper.cc.
References m_paused.
Referenced by ns3::RandomWaypointMobilityModel::BeginWalk(), ns3::RandomWalk2dMobilityModel::Rebound(), ns3::RandomDirection2dMobilityModel::SetDirectionAndSpeed(), ns3::StaticSpeedMobilityModel::SetVelocity(), and ns3::RandomWalk2dMobilityModel::Start().
void ns3::StaticSpeedHelper::Update | ( | void | ) | const |
Definition at line 66 of file static-speed-helper.cc.
References ns3::TimeUnit< 1 >::GetSeconds(), m_lastUpdate, m_paused, m_position, m_velocity, ns3::Now(), NS_ASSERT, ns3::Vector::x, ns3::Vector::y, and ns3::Vector::z.
Referenced by ns3::RandomDirection2dMobilityModel::BeginPause(), ns3::RandomWaypointMobilityModel::BeginWalk(), ns3::StaticSpeedMobilityModel::DoGetPosition(), ns3::RandomWaypointMobilityModel::DoGetPosition(), ns3::StaticSpeedMobilityModel::SetVelocity(), ns3::RandomWaypointMobilityModel::Start(), ns3::RandomWalk2dMobilityModel::Start(), and UpdateWithBounds().
void ns3::StaticSpeedHelper::UpdateWithBounds | ( | const Rectangle & | rectangle | ) | const |
Definition at line 83 of file static-speed-helper.cc.
References m_position, Update(), ns3::Vector::x, ns3::Rectangle::xMax, ns3::Rectangle::xMin, ns3::Vector::y, ns3::Rectangle::yMax, and ns3::Rectangle::yMin.
Referenced by ns3::RandomWalk2dMobilityModel::DoGetPosition(), ns3::RandomDirection2dMobilityModel::DoGetPosition(), ns3::RandomWalk2dMobilityModel::Rebound(), ns3::RandomDirection2dMobilityModel::ResetDirectionAndSpeed(), and ns3::RandomDirection2dMobilityModel::SetDirectionAndSpeed().
Time ns3::StaticSpeedHelper::m_lastUpdate [mutable, private] |
Definition at line 48 of file static-speed-helper.h.
Referenced by SetPosition(), SetVelocity(), and Update().
bool ns3::StaticSpeedHelper::m_paused [private] |
Definition at line 51 of file static-speed-helper.h.
Referenced by GetVelocity(), Pause(), Unpause(), and Update().
Vector ns3::StaticSpeedHelper::m_position [mutable, private] |
Definition at line 49 of file static-speed-helper.h.
Referenced by GetCurrentPosition(), SetPosition(), Update(), and UpdateWithBounds().
Vector ns3::StaticSpeedHelper::m_velocity [private] |
Definition at line 50 of file static-speed-helper.h.
Referenced by GetVelocity(), SetPosition(), SetVelocity(), and Update().