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
Sorry, the other way round,
it is of cause a feature rather than a bug ;)
Daniel
On Donnerstag, 10. Juli 2008, Daniel Willkomm wrote:
> 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
>
> On Donnerstag, 10. Juli 2008, e.m.vaneenennaam at xxx wrote:
> > Hi all,
> >
> > I am using the Mobility Framework and want to place hosts on a line
> > (mobility.y=100) with a randomly chosen mobility.x. Setting mobility.x to
> > '-1' while leaving mobility.y at 100 does not result in the intended
> > variation only on the x-axis, but hosts are scattered all over the
> > playground, as if both x and y are -1. Is this a bug or a feature?
> >
> > Is there an easy way to do this (using the omnetpp RNGs)? Currently my
> > hosts are evenly-spaced (by a shell script setting mobility.x = previous
> > mobility.x + <some-space-inbetween>. An easy way would be to set the
> > mobility.x with random variables from /dev/random, but that would result
> > in non-reproducible host positions.
> >
> > Any hints? Thanks!
> >
> > Greets,
> > Martijn van Eenennaam
> > _______________________________________________
> > OMNeT++ Mailing List
> > options: http://lists.omnetpp.org/mailman/listinfo/omnetpp-l
> > archive: http://www.omnetpp.org/listarchive/index.php
--
-----------------------------------------
o Dipl.-Ing. Daniel Willkomm
o TU-Berlin
o Telecommunication Networks Group
o http://www.tkn.tu-berlin.de/~willkomm/
o Mail: willkomm at xxx
_______________________________________________
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