Bug 374

Summary: MobilityHelper::SetPositionAllocator overloading does not work ?
Product: ns-3 Reporter: Mathieu Lacage <mathieu.lacage>
Component: python bindingsAssignee: Gustavo J. A. M. Carneiro <gjcarneiro>
Status: RESOLVED DUPLICATE    
Severity: normal CC: ns-bugs
Priority: P3    
Version: pre-release   
Hardware: All   
OS: All   

Description Mathieu Lacage 2008-10-08 06:33:27 UTC
 
Comment 1 Mathieu Lacage 2008-10-08 06:34:39 UTC
I have not yet found a way to invoke the overloaded SetPositionAllocator method with multiple arguments from python.
i.e., the following does not work:
    mobility.SetPositionAllocator ("ns3::RandomDiscPositionAllocator",
                                   "X", StringValue ("0.0"),
                                   "Y", StringValue ("0.0"),
                                   "Rho", StringValue ("Uniform:0:30"))
Traceback (most recent call last):
  File "./examples/process-http-demo.py", line 120, in <module>
    main ()
  File "./examples/process-http-demo.py", line 62, in main
    "Rho", StringValue ("Uniform:0:30"))
TypeError: function takes exactly 1 argument (7 given)
Comment 2 Mathieu Lacage 2008-10-10 05:26:02 UTC

*** This bug has been marked as a duplicate of bug 291 ***