8#ifndef STEADY_STATE_RANDOM_WAYPOINT_MOBILITY_MODEL_H
9#define STEADY_STATE_RANDOM_WAYPOINT_MOBILITY_MODEL_H
16#include "ns3/random-variable-stream.h"
Utility class used to move node with constant velocity.
An identifier for simulation events.
Smart pointer class similar to boost::intrusive_ptr.
Ptr< UniformRandomVariable > m_u_r
rv used in step 5 of algorithm
void DoSetPosition(const Vector &position) override
int64_t DoAssignStreams(int64_t) override
The default implementation does nothing but return the passed-in parameter.
void DoInitialize() override
Initialize() implementation.
double m_maxSpeed
maximum speed value (m/s)
double m_minPause
minimum pause value (s)
double m_minX
minimum x value of traveling region (m)
Ptr< UniformRandomVariable > m_y2_r
rv used in rejection sampling phase
Ptr< UniformRandomVariable > m_pause
random variable for pause values
Ptr< UniformRandomVariable > m_x2_r
rv used in rejection sampling phase
void SteadyStateBeginWalk(const Vector &destination)
Use provided destination to calculate travel delay, and schedule a Start() event at that time.
Vector DoGetVelocity() const override
Ptr< UniformRandomVariable > m_y
rv used for position allocator
Ptr< UniformRandomVariable > m_speed
random variable for speed values
double m_z
z value of traveling region
double m_maxX
maximum x value of traveling region (m)
Vector DoGetPosition() const override
static TypeId GetTypeId()
Register this type with the TypeId system.
double m_maxPause
maximum pause value (s)
double m_minSpeed
minimum speed value (m/s)
Ptr< UniformRandomVariable > m_x1_r
rv used in rejection sampling phase
void DoInitializePrivate()
Configure random variables based on attributes; calculate the steady state probability that node is i...
void BeginWalk()
Start a motion period and schedule the ending of the motion.
Ptr< MobilityModel > Copy() const override
Copy function allows one to copy the underlying MobilityModel from a MobilityModel pointer,...
double m_minY
minimum y value of traveling region (m)
void Start()
Start a pause period and schedule the ending of the pause.
Ptr< UniformRandomVariable > m_x
rv used for position allocator
SteadyStateRandomWaypointMobilityModel()
ConstantVelocityHelper m_helper
helper for velocity computations
Ptr< UniformRandomVariable > m_y1_r
rv used in rejection sampling phase
bool alreadyStarted
flag for starting state
~SteadyStateRandomWaypointMobilityModel() override
EventId m_event
current event ID
double m_maxY
maximum y value of traveling region (m)
Ptr< RandomBoxPositionAllocator > m_position
position allocator
a unique identifier for an interface.
Ptr< T > CreateObject(Args &&... args)
Create an object by type, with varying number of constructor parameters.
Every class exported by the ns3 library is enclosed in the ns3 namespace.