Simple Module RandomWPMobility

File: Mobility/RandomWPMobility.ned

C++ definition: click here

Random Waypoint mobility model.

The node moves in line segments. For each line segment, a random destination position (distributed uniformly over the playground) and a random speed is chosen. You can define a speed as a variate from which a new value will be drawn for each line segment; it is customary to specify it as uniform(minSpeed, maxSpeed). When the node reaches the target position, it waits for the time waitTime which can also be defined as a variate. After this time the the algorithm calculates a new random position, etc.

This model was written by Georg Lutz (GeorgLutz AT gmx DOT de) for his diploma thesis "Effizientes Modell fuer Funkverbindungen in 4G-Netzen fuer OMNeT++" (Efficient model for radio links in 4G networks for OMNeT++) at Institut fuer Telematik, Universitaet Karlsruhe (Institute for Telematics, University Karlsruhe, Germany), 2005-06-21. Slightly modified by Andras Varga 2005.06.22.

Author: Georg Lutz

Usage diagram:

The following diagram shows usage relationships between modules, networks and channels. Unresolved module (and channel) types are missing from the diagram. Click here to see the full picture.

RandomWPMobility

Parameters:

Name Type Description
debug bool

debug switch

x numeric const

start x coordinate (-1 = display string position, or random if it's missing)

y numeric const

start y coordinate (-1 = display string position, or random if it's missing)

updateInterval numeric const
speed numeric

use uniform(minSpeed, maxSpeed) or another distribution

waitTime numeric

wait time between reaching a target and choosing a new one

Source code:

simple RandomWPMobility
    parameters:
        debug: bool, // debug switch
        x: numeric const, // start x coordinate (-1 = display string position, or random if it's missing)
        y: numeric const, // start y coordinate (-1 = display string position, or random if it's missing)
        updateInterval: numeric const,
        speed: numeric, // use uniform(minSpeed, maxSpeed) or another distribution
        waitTime: numeric; // wait time between reaching a target and choosing a new one
endsimple