Bug 482

Summary: Add constant acceleration mobility model
Product: ns-3 Reporter: Gustavo J. A. M. Carneiro <gjcarneiro>
Component: mobility modelsAssignee: Mathieu Lacage <mathieu.lacage>
Status: RESOLVED FIXED    
Severity: enhancement CC: ns-bugs, tomh
Priority: P5    
Version: ns-3-dev   
Hardware: All   
OS: All   
Attachments: the patch

Description Gustavo J. A. M. Carneiro 2009-01-28 13:29:54 UTC
Created attachment 364 [details]
the patch

I wrote a ConstantAccelerationMobilityModel which could be useful to others.
Comment 1 Mathieu Lacage 2009-02-25 05:29:16 UTC
this patch looks good to me. I am not too fond of the naming from a consistency perspective: if you want to use 'Constant' instead of 'Static', we need to change the existing 'Static' models. Otherwise, I would tend to rename your 'Constant' into 'Static'.

What do you prefer ?
Comment 2 Gustavo J. A. M. Carneiro 2009-02-25 06:00:42 UTC
I'd rename StaticSpeedMobilityModel to ConstantSpeedMobilityModel.  But StaticMobilityModel should of course remain unchanged; it really is static, so the name makes perfect sense.
Comment 3 Mathieu Lacage 2009-02-25 06:26:55 UTC
(In reply to comment #2)
> I'd rename StaticSpeedMobilityModel to ConstantSpeedMobilityModel.  But
> StaticMobilityModel should of course remain unchanged; it really is static, so
> the name makes perfect sense.
> 

hrm. How about ConstantPositionMobilityModel, ConstantSpeedMobilityModel, and, ConstantAccelerationMobilityModel ?

Comment 4 Gustavo J. A. M. Carneiro 2009-02-25 06:40:13 UTC
(In reply to comment #3)
> (In reply to comment #2)
> > I'd rename StaticSpeedMobilityModel to ConstantSpeedMobilityModel.  But
> > StaticMobilityModel should of course remain unchanged; it really is static, so
> > the name makes perfect sense.
> > 
> 
> hrm. How about ConstantPositionMobilityModel, ConstantSpeedMobilityModel, and,
> ConstantAccelerationMobilityModel ?
> 

That sounds good.

But it is a lot of API change.  While it won't affect me personally (since I'll keep using a patched ns 3.2), maybe it's better to ask in ns-developers?  And this change would be for ns-3.4 or later?
Comment 5 Mathieu Lacage 2009-03-10 09:28:19 UTC
changeset e57ced8f6660