As the question implies, I would like to move my AdhocHost
in a discrete (100m x 100m)
space. That is, for example assume that the node is in (0,0)m
, then it waits for one second, and then it "teleports" to (0,1)m
, without crossing the distance between the two positions.
How may I do that?
Write a mobility model. Store the actual integer coordinates as the state. Create a timer event that fires on each second, and on that event modify the coordinates according to your rules. You can start from scratch or you may take a look at the stationary mobility module as an example.
About the mobility models in INET: https://inet.omnetpp.org/users-guide/chap22.html