0

enter image description here

I am a beginner in OMNet++ and I have created a multi-node network using OMNET++ INET framework. The nodes are instances of WirelessHosts. I am trying chaange their mobility parameters using Scenario Manager. But I am getting a runtime error like above, Please guide me to fix this issue.

1 Answer 1

0

To fix this, I added @mutable property to the Network Description (.ned) file of LinearMobility under inet/mobility/single/. In order to change the parameters during runtime, the parameter should be mutable. Mutable parameters can be set to a different value during runtime

Sign up to request clarification or add additional context in comments.

1 Comment

Beware. You just turned off the error message. There is a reason why @mutable was not in the NED file. The reason is that the underlying LinearMobility code does NOT handle the parameter change events. So you can change now the parameter value, but that will not change the behavior of the model at all. Parameters may be changed during runtime only if: - they are declared volatile and the underlying c++ code does not cache them (i.e. they are always acessed using par("name") - there is a properly written handleParameterChange() method that deals with any parameter change during runtime.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.