Bug 374 - MobilityHelper::SetPositionAllocator overloading does not work ?
MobilityHelper::SetPositionAllocator overloading does not work ?
Status: RESOLVED DUPLICATE of bug 291
Product: ns-3
Classification: Unclassified
Component: python bindings
pre-release
All All
: P3 normal
Assigned To: Gustavo J. A. M. Carneiro
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-10-08 06:33 UTC by Mathieu Lacage
Modified: 2008-10-10 05:26 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***