Mailing list archive (omnetpp-l at omnetpp.org)
[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
Re: [omnetpp] Random node placements
I have changed a few lines to BasicMobility.cc, as indicated by Daniel. It works perfectly now.
The beauty of open-source software :)
Greets,
Martijn
----------------------------------------------------------------------
Message: 1
Date: Thu, 10 Jul 2008 12:15:11 +0200
From: Daniel Willkomm <willkomm at xxx>
Subject: Re: [omnetpp] Random node placements
To: omnetpp-l at xxx
Cc: e.m.vaneenennaam at xxx
Message-ID: <200807101215.12198.willkomm at xxx>
Content-Type: text/plain; charset="iso-8859-1"
Hi
this is rather a bug than a feature.
We assume that if you set either x or y to -1, a random placement is desired.
However it should be easy to change that. You just need to modify the
respective code in BasicMobility.cc
initialize and getRandomPosition are the functions you want to look at
Hope this helps
Daniel
_______________________________________________
OMNeT++ Mailing List
options: http://lists.omnetpp.org/mailman/listinfo/omnetpp-l
archive: http://www.omnetpp.org/listarchive/index.php
Home |
Main Index |
Thread Index