a random waypoint mobility model More...
#include <random-waypoint-mobility-model.h>
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 |
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.
virtual Vector ns3::RandomWaypointMobilityModel::DoGetPosition | ( | void | ) | const [private, virtual] |
Concrete subclasses of this base class must implement this method.
Implements ns3::MobilityModel.
virtual Vector ns3::RandomWaypointMobilityModel::DoGetVelocity | ( | void | ) | const [private, virtual] |
Concrete subclasses of this base class must implement this method.
Implements ns3::MobilityModel.
virtual void ns3::RandomWaypointMobilityModel::DoSetPosition | ( | const Vector & | position | ) | [private, virtual] |
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:
Attributes defined for this type:
Attributes defined in parent class ns3::MobilityModel:
No TraceSources defined for this type.
TraceSources defined in parent class ns3::MobilityModel:
Reimplemented from ns3::MobilityModel.