equal
deleted
inserted
replaced
23 |
23 |
24 #include "static-speed-helper.h" |
24 #include "static-speed-helper.h" |
25 #include "mobility-model.h" |
25 #include "mobility-model.h" |
26 #include "random-position.h" |
26 #include "random-position.h" |
27 #include "ns3/ptr.h" |
27 #include "ns3/ptr.h" |
|
28 #include "ns3/random-variable.h" |
28 |
29 |
29 namespace ns3 { |
30 namespace ns3 { |
30 |
|
31 class RandomVariable; |
|
32 |
31 |
33 /** |
32 /** |
34 * \brief the parameters which control the behavior of a random waypoint |
33 * \brief the parameters which control the behavior of a random waypoint |
35 * mobility model. |
34 * mobility model. |
36 */ |
35 */ |
64 void SetPause (const RandomVariable &pause); |
63 void SetPause (const RandomVariable &pause); |
65 private: |
64 private: |
66 friend class RandomWaypointMobilityModel; |
65 friend class RandomWaypointMobilityModel; |
67 static Ptr<RandomWaypointMobilityModelParameters> GetCurrent (void); |
66 static Ptr<RandomWaypointMobilityModelParameters> GetCurrent (void); |
68 virtual void DoDispose (void); |
67 virtual void DoDispose (void); |
69 RandomVariable *m_speed; |
68 RandomVariable m_speed; |
70 RandomVariable *m_pause; |
69 RandomVariable m_pause; |
71 Ptr<RandomPosition> m_position; |
70 Ptr<RandomPosition> m_position; |
72 }; |
71 }; |
73 |
72 |
74 /** |
73 /** |
75 * \brief a random waypoint mobility model |
74 * \brief a random waypoint mobility model |