From fdb89d13ef872df56dc638dfa67f5fe3ee5e314d Mon Sep 17 00:00:00 2001 From: Mathieu Lacage Date: Thu, 19 Jul 2007 12:29:21 +0200 Subject: [PATCH] more dox --- src/node/random-waypoint-mobility-model.h | 39 +++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/src/node/random-waypoint-mobility-model.h b/src/node/random-waypoint-mobility-model.h index ae27037bc..aef1c3d86 100644 --- a/src/node/random-waypoint-mobility-model.h +++ b/src/node/random-waypoint-mobility-model.h @@ -30,15 +30,36 @@ namespace ns3 { class RandomVariable; +/** + * \brief the parameters which control the behavior of a random waypoint + * mobility model. + */ class RandomWaypointMobilityModelParameters : public Object { public: + /** + * Defaults parameters based on the Bind values. + */ RandomWaypointMobilityModelParameters (); + /** + * \param randomPosition a random position model to choose the position of waypoints. + * \param speed a random variable to choose the speed + * \param pause a random variable to choose the pause delay + */ RandomWaypointMobilityModelParameters (Ptr randomPosition, const RandomVariable &speed, const RandomVariable &pause); + /** + * \param randomPosition a random position model to choose the position of waypoints. + */ void SetWaypointPositionModel (Ptr randomPosition); + /** + * \param speed a random variable to choose the speed + */ void SetSpeed (const RandomVariable &speed); + /** + * \param pause a random variable to choose the pause delay + */ void SetPause (const RandomVariable &pause); private: friend class RandomWaypointMobilityModel; @@ -49,12 +70,30 @@ private: Ptr m_position; }; +/** + * \brief 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. + */ class RandomWaypointMobilityModel : public MobilityModel { public: static const ClassId cid; + /** + * Create a waypoint mobility model from the Bind default values. + */ RandomWaypointMobilityModel (); + /** + * \param parameters the parameters which control the behavior of this model. + */ RandomWaypointMobilityModel (Ptr parameters); private: void Start (void);