C++ definition: click here
Controls all movement related things of a host
ConstSpeedMobility does not use one of the standard mobility approaches. The user can define a velocity for each Host and an update interval. If the velocity is greater than zero (i.e. the Host is not stationary) the ConstSpeedMobility module calculates a random target position for the Host. Depending to the update interval and the velocity it calculates the number of steps to reach the destination and the step-size. Every update interval ConstSpeedMobility calculates the new position on its way to the target position and updates the display. Once the target position is reached ConstSpeedMobility calculates a new target position.
See also: ChannelControl
Author: Steffen Sroka, Marc Loebbers, Daniel Willkomm
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.
If a module type shows up more than once, that means it has been defined in more than one NED file.
The ClientHost is a compound module that implements a very simple mobile client. It only consists of basic modules and the ClientApplLayer.
core debug switch
spped of the host (in m/s)
time interval to update the hosts position
x starting point of the node (-1 = random)
y starting point of the node (-1 = random)
simple ConstSpeedMobility parameters: coreDebug : bool, // core debug switch debug : bool, // debug switch speed : numeric const, // spped of the host (in m/s) updateInterval : numeric const, // time interval to update the hosts position x: numeric const, // x starting point of the node (-1 = random) y: numeric const; // y starting point of the node (-1 = random) endsimple