equal
deleted
inserted
replaced
33 * \brief Mobility model for which the current speed does not change once it has been set and until it is set again explicitely to a new value. |
33 * \brief Mobility model for which the current speed does not change once it has been set and until it is set again explicitely to a new value. |
34 */ |
34 */ |
35 class ConstantVelocityMobilityModel : public MobilityModel |
35 class ConstantVelocityMobilityModel : public MobilityModel |
36 { |
36 { |
37 public: |
37 public: |
|
38 /** |
|
39 * Register this type with the TypeId system. |
|
40 * \return the object TypeId |
|
41 */ |
38 static TypeId GetTypeId (void); |
42 static TypeId GetTypeId (void); |
39 /** |
43 /** |
40 * Create position located at coordinates (0,0,0) with |
44 * Create position located at coordinates (0,0,0) with |
41 * speed (0,0,0). |
45 * speed (0,0,0). |
42 */ |
46 */ |
52 void SetVelocity (const Vector &speed); |
56 void SetVelocity (const Vector &speed); |
53 private: |
57 private: |
54 virtual Vector DoGetPosition (void) const; |
58 virtual Vector DoGetPosition (void) const; |
55 virtual void DoSetPosition (const Vector &position); |
59 virtual void DoSetPosition (const Vector &position); |
56 virtual Vector DoGetVelocity (void) const; |
60 virtual Vector DoGetVelocity (void) const; |
57 void Update (void) const; |
61 ConstantVelocityHelper m_helper; //!< helper object for this model |
58 ConstantVelocityHelper m_helper; |
|
59 }; |
62 }; |
60 |
63 |
61 } // namespace ns3 |
64 } // namespace ns3 |
62 |
65 |
63 #endif /* CONSTANT_VELOCITY_POSITION */ |
66 #endif /* CONSTANT_VELOCITY_POSITION */ |