View | Details | Raw Unified | Return to bug 938
Collapse All | Expand All

(-)a/src/mobility/model/box.h (-6 / +6 lines)
 Lines 85-101    Link Here 
85
   */
85
   */
86
  Vector CalculateIntersection (const Vector &current, const Vector &speed) const;
86
  Vector CalculateIntersection (const Vector &current, const Vector &speed) const;
87
87
88
  /* The x coordinate of the left bound of the box */
88
  /** The x coordinate of the left bound of the box */
89
  double xMin;
89
  double xMin;
90
  /* The x coordinate of the right bound of the box */
90
  /** The x coordinate of the right bound of the box */
91
  double xMax;
91
  double xMax;
92
  /* The y coordinate of the bottom bound of the box */
92
  /** The y coordinate of the bottom bound of the box */
93
  double yMin;
93
  double yMin;
94
  /* The y coordinate of the top bound of the box */
94
  /** The y coordinate of the top bound of the box */
95
  double yMax;
95
  double yMax;
96
  /* The z coordinate of the down bound of the box */
96
  /** The z coordinate of the down bound of the box */
97
  double zMin;
97
  double zMin;
98
  /* The z coordinate of the up bound of the box */
98
  /** The z coordinate of the up bound of the box */
99
  double zMax;
99
  double zMax;
100
};
100
};
101
101
(-)a/src/mobility/model/random-walk-2d-mobility-model.h (-1 / +5 lines)
 Lines 47-59    Link Here 
47
{
47
{
48
public:
48
public:
49
  static TypeId GetTypeId (void);
49
  static TypeId GetTypeId (void);
50
50
  /** An enum representing the different working modes of this module. */
51
  enum Mode  {
51
  enum Mode  {
52
    MODE_DISTANCE,
52
    MODE_DISTANCE,
53
    MODE_TIME
53
    MODE_TIME
54
  };
54
  };
55
55
56
private:
56
private:
57
  /**
58
   * \brief Performs the rebound of the node if it reaches a boundary
59
   * \param timeLeft The remaining time of the walk
60
   */
57
  void Rebound (Time timeLeft);
61
  void Rebound (Time timeLeft);
58
  void DoWalk (Time timeLeft);
62
  void DoWalk (Time timeLeft);
59
  void DoInitializePrivate (void);
63
  void DoInitializePrivate (void);
(-)a/src/mobility/model/waypoint-mobility-model.h (+32 lines)
 Lines 128-144    Link Here 
128
  friend class ::WaypointMobilityModelNotifyTest; // To allow Update() calls and access to m_current
128
  friend class ::WaypointMobilityModelNotifyTest; // To allow Update() calls and access to m_current
129
129
130
  void Update (void) const;
130
  void Update (void) const;
131
  /**
132
   * \brief The dispose method.
133
   * 
134
   * Subclasses must override this method.
135
   */
131
  virtual void DoDispose (void);
136
  virtual void DoDispose (void);
137
  /**
138
   * \brief Get current position.
139
   * \return A vector with the current position of the node.  
140
   */
132
  virtual Vector DoGetPosition (void) const;
141
  virtual Vector DoGetPosition (void) const;
142
  /**
143
   * \brief Sets a new position for the node  
144
   * \param position A vector to be added as the new position
145
   */
133
  virtual void DoSetPosition (const Vector &position);
146
  virtual void DoSetPosition (const Vector &position);
147
  /**
148
   * \brief Returns the current velocity of a node
149
   * \return The velocity vector of a node. 
150
   */
134
  virtual Vector DoGetVelocity (void) const;
151
  virtual Vector DoGetVelocity (void) const;
135
152
153
  /**
154
   * \brief This variable is set to true if there are no waypoints in the std::deque
155
   */
136
  bool m_first;
156
  bool m_first;
137
  bool m_lazyNotify;
157
  bool m_lazyNotify;
138
  bool m_initialPositionIsWaypoint;
158
  bool m_initialPositionIsWaypoint;
159
  /**
160
   * \brief The double ended queue containing the ns3::Waypoint objects
161
   */
139
  mutable std::deque<Waypoint> m_waypoints;
162
  mutable std::deque<Waypoint> m_waypoints;
163
  /**
164
   * \brief The ns3::Waypoint currently being used
165
   */
140
  mutable Waypoint m_current;
166
  mutable Waypoint m_current;
167
  /**
168
   * \brief The next ns3::Waypoint in the deque
169
   */
141
  mutable Waypoint m_next;
170
  mutable Waypoint m_next;
171
  /**
172
   * \brief The current velocity vector
173
   */
142
  mutable Vector m_velocity;
174
  mutable Vector m_velocity;
143
};
175
};
144
176
(-)a/src/mobility/model/waypoint.h (-2 / +6 lines)
 Lines 46-54    Link Here 
46
   * Create a waypoint at time 0 and position (0,0,0).
46
   * Create a waypoint at time 0 and position (0,0,0).
47
   */
47
   */
48
  Waypoint ();
48
  Waypoint ();
49
  /* The waypoint time */
49
  /**
50
   * \brief The waypoint time
51
   */
50
  Time time;
52
  Time time;
51
  /* The position of the waypoint */
53
  /**
54
   * \brief The position of the waypoint 
55
   */
52
  Vector position;
56
  Vector position;
53
};
57
};
54
58

Return to bug 938