|Anonymous | Login||2022-08-18 23:45 UTC|
|My View | View Issues | Change Log | Roadmap|
|View Issue Details|
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0000580||OMNeT++||IDE / simulation launcher||public||2012-06-15 14:52||2012-06-15 14:52|
|Target Version||Fixed in Version|
|Summary||0000580: Deep param assignment for channels is not working|
|Description||The handling of channel parameter assignments is not consistent between IDE the the runtime. This was reported by [email protected]. The provided zip contains a project that can be used to reproduce the issue:|
I include my exported project: when I run it, the “foo” param is set to 1 both as seen in the TkEnv inspectors and as printed from the program, while I would like it to be “4”.
Besides, the test1.port.channel.foo parameter can only be set either in omnetpp.ini or in the network definition. This is ok, but the Editor’s error message is not explicit (it says “unused entry (does not match any parameter)”).
It is not possible to set the channel parameter from the NED file with deep param assignement. Neither port nor port$o addressing is working in the parameters section (deep param assignement).
The 'portr$o.channel.foo' style works tough from INI file. Unfortunately port$o generates a warning in IDE (falsely) complaining unused entry but this addressing sets the parameter correctly. 'port.channel.foo' does not generate warning but its not working either in the runtime.
|Additional Information||A possible workaround is setting the parameter in INI file by using the syntax:|
Netw.test*.port*.channel.foo = 45
i.e. use * instead of $o
|Tags||No tags attached.|
|Attached Files||bugreport.zip [^] (6,884 bytes) 2012-06-15 14:52|
|2012-06-15 14:52||rhornig||New Issue|
|2012-06-15 14:52||rhornig||File Added: bugreport.zip|
|Copyright © 2000 - 2022 MantisBT Team|