#include <random-walk-2d-mobility-model.h>
Static Public Member Functions | |
static TypeId | GetTypeId (void) |
This method returns the TypeId associated to ns3::RandomWalk2dMobilityModel. | |
Private Member Functions | |
virtual void | DoDispose (void) |
virtual Vector | DoGetPosition (void) const |
virtual void | DoSetPosition (const Vector &position) |
virtual Vector | DoGetVelocity (void) const |
Each instance moves with a speed and direction choosen at random with the user-provided random variables until either a fixed distance has been walked or until a fixed amount of time. If we hit one of the boundaries (specified by a rectangle), of the model, we rebound on the boundary with a reflexive angle and speed. This model is often identified as a brownian motion model.
virtual void ns3::RandomWalk2dMobilityModel::DoDispose | ( | void | ) | [private, virtual] |
This method is called by Object::Dispose or by the object's destructor, whichever comes first.
Subclasses are expected to implement their real destruction code in an overriden version of this method and chain up to their parent's implementation once they are done. i.e., for simplicity, the destructor of every subclass should be empty and its content should be moved to the associated DoDispose method.
Reimplemented from ns3::Object.
virtual Vector ns3::RandomWalk2dMobilityModel::DoGetPosition | ( | void | ) | const [private, virtual] |
Implements ns3::MobilityModel.
virtual Vector ns3::RandomWalk2dMobilityModel::DoGetVelocity | ( | void | ) | const [private, virtual] |
Implements ns3::MobilityModel.
virtual void ns3::RandomWalk2dMobilityModel::DoSetPosition | ( | const Vector & | position | ) | [private, virtual] |
position | the position to set. |
Implements ns3::MobilityModel.
static TypeId ns3::RandomWalk2dMobilityModel::GetTypeId | ( | void | ) | [static] |
This method returns the TypeId associated to ns3::RandomWalk2dMobilityModel.
This object is accessible through the following paths with Config::Set and Config::Connect:
Reimplemented from ns3::MobilityModel.