A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ns3::ConstantVelocityHelper Class Reference

Utility class used to move node with constant velocity. More...

#include <constant-velocity-helper.h>

+ Collaboration diagram for ns3::ConstantVelocityHelper:

Public Member Functions

 ConstantVelocityHelper ()
 
 ConstantVelocityHelper (const Vector &position)
 
 ConstantVelocityHelper (const Vector &position, const Vector &vel)
 
Vector GetCurrentPosition (void) const
 
Vector GetVelocity (void) const
 
void Pause (void)
 
void SetPosition (const Vector &position)
 
void SetVelocity (const Vector &vel)
 
void Unpause (void)
 
void Update (void) const
 
void UpdateWithBounds (const Rectangle &rectangle) const
 
void UpdateWithBounds (const Box &bounds) const
 

Private Attributes

Time m_lastUpdate
 
bool m_paused
 
Vector m_position
 
Vector m_velocity
 

Detailed Description

Utility class used to move node with constant velocity.

Definition at line 36 of file constant-velocity-helper.h.

Constructor & Destructor Documentation

ns3::ConstantVelocityHelper::ConstantVelocityHelper ( )

Definition at line 30 of file constant-velocity-helper.cc.

References NS_LOG_FUNCTION.

ns3::ConstantVelocityHelper::ConstantVelocityHelper ( const Vector position)

Definition at line 35 of file constant-velocity-helper.cc.

References NS_LOG_FUNCTION.

ns3::ConstantVelocityHelper::ConstantVelocityHelper ( const Vector position,
const Vector vel 
)

Definition at line 41 of file constant-velocity-helper.cc.

References NS_LOG_FUNCTION.

Member Function Documentation

void ns3::ConstantVelocityHelper::UpdateWithBounds ( const Box bounds) const

Member Data Documentation

Time ns3::ConstantVelocityHelper::m_lastUpdate
mutableprivate

Definition at line 55 of file constant-velocity-helper.h.

Referenced by SetPosition(), SetVelocity(), and Update().

bool ns3::ConstantVelocityHelper::m_paused
private

Definition at line 58 of file constant-velocity-helper.h.

Referenced by GetVelocity(), Pause(), Unpause(), and Update().

Vector ns3::ConstantVelocityHelper::m_position
mutableprivate
Vector ns3::ConstantVelocityHelper::m_velocity
private

Definition at line 57 of file constant-velocity-helper.h.

Referenced by GetVelocity(), SetPosition(), SetVelocity(), and Update().


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