Mobility doxygen: all classes are documented and added to the mobility module. All public methods and fields should follow.
authorPavel Boyko <boyko@iitp.ru>
Mon, 02 Aug 2010 13:16:57 +0400
changeset 6472 54ce45443509
parent 6471 a2028222c362
child 6473 86a4a149eb0f
Mobility doxygen: all classes are documented and added to the mobility module. All public methods and fields should follow.
doc/modules
src/helper/mobility-helper.h
src/helper/ns2-mobility-helper.h
src/mobility/mobility.h
--- a/doc/modules	Mon Aug 02 13:00:17 2010 +0400
+++ b/doc/modules	Mon Aug 02 13:16:57 2010 +0400
@@ -55,6 +55,8 @@
  * 
  * @defgroup applications Applications
  *
+ * @defgroup mobility Mobility
+ *
  * @defgroup constants Constants
  * @brief Constants you can change
  *
--- a/src/helper/mobility-helper.h	Mon Aug 02 13:00:17 2010 +0400
+++ b/src/helper/mobility-helper.h	Mon Aug 02 13:16:57 2010 +0400
@@ -33,7 +33,8 @@
 class MobilityModel;
 
 /**
- * \brief assign positions and mobility models to nodes.
+ * \ingroup mobility
+ * \brief Helper class used to assign positions and mobility models to nodes.
  *
  * MobilityHelper::Install is the most important method here.
  */
@@ -172,14 +173,13 @@
   void PopReferenceMobilityModel (void);
 
   /**
-   * \returns a string which contains the TypeId of the currently-selected
+   * \return a string which contains the TypeId of the currently-selected
    *          mobility model.
    */
   std::string GetMobilityModelType (void) const;
 
   /**
-   * \brief "Layout" a single node according to the current position allocator
-   * type.
+   * \brief "Layout" a single node according to the current position allocator type.
    *
    * This method creates an instance of a ns3::MobilityModel subclass (the 
    * type of which was set with MobilityHelper::SetMobilityModel), aggregates
@@ -190,8 +190,7 @@
    */
   void Install (Ptr<Node> node) const;
   /**
-   * \brief "Layout" a single node according to the current position allocator
-   * type.
+   * \brief "Layout" a single node according to the current position allocator type.
    *
    * This method creates an instance of a ns3::MobilityModel subclass (the 
    * type of which was set with MobilityHelper::SetMobilityModel), aggregates
@@ -203,8 +202,7 @@
   void Install (std::string nodeName) const;
 
   /**
-   * \brief Layout a collection of nodes according to the current position allocator
-   * type.
+   * \brief Layout a collection of nodes according to the current position allocator type.
    *
    * For each node in the provided NodeContainer, this method creates an instance 
    * of a ns3::MobilityModel subclass (the type of which was set with 
--- a/src/helper/ns2-mobility-helper.h	Mon Aug 02 13:00:17 2010 +0400
+++ b/src/helper/ns2-mobility-helper.h	Mon Aug 02 13:16:57 2010 +0400
@@ -33,20 +33,22 @@
 class ConstantVelocityMobilityModel;
 
 /**
- * \brief A helper which can read ns-2 movement files and configure nodes mobility.
+ * \ingroup mobility
+ * \brief Helper class which can read ns-2 movement files and configure nodes mobility.
  * 
  * This implementation is based on the ns2 movement documentation of ns2
  * as described in http://www.isi.edu/nsnam/ns/doc/node174.html
  *
  * Valid trace files use the following ns2 statements:
- *
- * $node set X_ x1
- * $node set Y_ y1
- * $node set Z_ z1
- * $ns at $time $node setdest x2 y2 speed
- * $ns at $time $node set X_ x1
- * $ns at $time $node set Y_ Y1
- * $ns at $time $node set Z_ Z1
+ \verbatim
+   $node set X_ x1
+   $node set Y_ y1
+   $node set Z_ z1
+   $ns at $time $node setdest x2 y2 speed
+   $ns at $time $node set X_ x1
+   $ns at $time $node set Y_ Y1
+   $ns at $time $node set Z_ Z1
+ \endverbatim
  *
  * Following tools are known to support this format:
  *  - BonnMotion http://net.cs.uni-bonn.de/wg/cs/applications/bonnmotion/
--- a/src/mobility/mobility.h	Mon Aug 02 13:00:17 2010 +0400
+++ b/src/mobility/mobility.h	Mon Aug 02 13:16:57 2010 +0400
@@ -1,5 +1,5 @@
 /**
- * \defgroup mobility Mobility
+ * \addtogroup mobility Mobility
  *
  * The mobility support includes:
  *  - a set of mobility models which are used to track and maintain
@@ -7,4 +7,7 @@
  *
  *  - a "course change notifier" trace source which can be used to register
  *    listeners to the course changes of a mobility model
+ * 
+ *  - a number of helper classes which are used to place nodes and setup 
+ *    mobility models (including parsers for some mobility definition formats).
  */