|
Bugzilla – Full Text Bug Listing |
| Summary: | MobilityHelper::SetPositionAllocator overloading does not work ? | ||
|---|---|---|---|
| Product: | ns-3 | Reporter: | Mathieu Lacage <mathieu.lacage> |
| Component: | python bindings | Assignee: | 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
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)
|