ns3::RandomWaypointMobilityModel Class Reference

a random waypoint mobility model More...

#include <random-waypoint-mobility-model.h>

Inheritance diagram for ns3::RandomWaypointMobilityModel:

Inheritance graph
[legend]
Collaboration diagram for ns3::RandomWaypointMobilityModel:

Collaboration graph
[legend]

List of all members.

Static Public Member Functions

static TypeId GetTypeId (void)
 This method returns the TypeId associated to ns3::RandomWaypointMobilityModel.

Private Member Functions

virtual Vector DoGetPosition (void) const
virtual void DoSetPosition (const Vector &position)
virtual Vector DoGetVelocity (void) const


Detailed Description

a random waypoint mobility model

Each object chooses a random destination "waypoint", a random speed, and a random pause time: it then pauses for the specified pause time, and starts moving towards the specified destination with the specified speed. Once the destination is reached the process starts again.

The implementation of this model is not 2d-specific. i.e. if you provide a 3d random waypoint position model to this mobility model, the model will still work. There is no 3d position allocator for now but it should be trivial to add one.


Member Function Documentation

virtual Vector ns3::RandomWaypointMobilityModel::DoGetPosition ( void   )  const [private, virtual]

Returns:
the current position.
Concrete subclasses of this base class must implement this method.

Implements ns3::MobilityModel.

virtual Vector ns3::RandomWaypointMobilityModel::DoGetVelocity ( void   )  const [private, virtual]

Returns:
the current velocity.
Concrete subclasses of this base class must implement this method.

Implements ns3::MobilityModel.

virtual void ns3::RandomWaypointMobilityModel::DoSetPosition ( const Vector position  )  [private, virtual]

Parameters:
position the position to set.
Concrete subclasses of this base class must implement this method.

Implements ns3::MobilityModel.

static TypeId ns3::RandomWaypointMobilityModel::GetTypeId ( void   )  [static]

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

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

  • /NodeList/[i]/$ns3::MobilityModel/$ns3::RandomWaypointMobilityModel
Attributes defined for this type:
Attributes defined in parent class ns3::MobilityModel:
  • Position: The current position of the mobility model.
  • Velocity: The current velocity of the mobility model.
No TraceSources defined for this type.
TraceSources defined in parent class ns3::MobilityModel:
  • CourseChange: The value of the position and/or velocity vector changed

Reimplemented from ns3::MobilityModel.


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

Generated on Fri Apr 9 15:01:10 2010 for NS-3 by  doxygen 1.5.8