Package: inet.mobility.base
MovingMobilityBase
simple moduleAbstract base module for mobility models.
Inheritance diagram
The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram.
Known subclasses
Name | Type | Description |
---|---|---|
AnsimMobility | simple module |
Uses the <position_change> elements of the ANSim tool's trace file. |
BonnMotionMobility | simple module |
Uses the native file format of BonnMotion. |
ChiangMobility | simple module |
Uses a probabilistic transition matrix to change the state of motion. In this model, the state of the mobile node in each direction (x and y) can be: |
CircleMobility | simple module |
Moves the node around a circle. |
GaussMarkovMobility | simple module |
Uses a Gauss-Markov model to control the randomness in the movement. Totally random walk (Brownian motion) is obtained by setting alpha=0, while alpha=1 results a linear motion. |
LinearMobility | simple module |
This is a linear mobility model with speed, angle and acceleration parameters. Angle only changes when the mobile node hits a wall: then it reflects off the wall at the same angle. |
MassMobility | simple module |
This is a random mobility model for a mobile host with a mass. It is the one used in "Optimized Smooth Handoffs in Mobile IP" by Perkins &Wang. |
MoBanCoordinator | simple module |
This is the coordinator module of the MoBAN mobility model. It should be instantiated in the top level simulation network in MiXiM, once per WBAN. The coordinator module is the main module that provides the group mobility and correlation between nodes in a WBAN. In the initialization phase, it reads three user defined input files which are the postures specification file, a configuration file which includes all required parameter for specific distributions, and the previously logged mobility pattern, if it is requested to use a logged pattern. Note that all WBAN instances may use the same input files if they are exactly in the same situation. |
MoBanLocal | simple module |
This is the local mobility module of MoBAN. It should be instantiated in each node that belongs to a WBAN. The NED parameter "coordinatorIndex" determine to which WBAN (MoBanCoordinator) it belongs. The current implementation uses the Random Walk Mobility Model (RWMM) for individual (local) movement with a sphere around the node, with given speed and sphere radius of the current posture. The reference point of the node it the current posture, the sphere radius, and the speed is given by the corresponding coordinator. RWMM determines the location of node at ant time relative to the given reference point. |
Ns2MotionMobility | simple module | |
RandomWaypointMobility | simple module |
Implements the Random Waypoint mobility model. |
RectangleMobility | simple module |
Moves the node around a rectangle. |
TractorMobility | simple module |
Moves a tractor through a field with a certain amount of rows. Since the tractor also moves around the field, the tractor travels the number of rows PLUS one rows. Consider the following piece of ascii-art for rows=2. |
TurtleMobility | simple module |
A LOGO-style movement model, with the script coming from XML. It can be useful for describing random as well as deterministic scenarios. |
VehicleMobility | simple module | (no description) |
Extends
Name | Type | Description |
---|---|---|
MobilityBase | simple module |
Abstract base module for mobility models. |
Parameters
Name | Type | Default value | Description |
---|---|---|---|
subjectModule | string | "^" |
module path which determines the subject module, the motion of which this mobility model describes, the default value is the parent module |
coordinateSystemModule | string | "" |
module path of the geographic coordinate system module |
displayStringTextFormat | string | "p: %p\nv: %v" |
format string for the mobility module's display string text |
updateDisplayString | bool | true |
enables continuous update of the subject module's position via modifying its display string |
constraintAreaMinX | double | -inf m |
min x position of the constraint area, unconstrained by default (negative infinity) |
constraintAreaMinY | double | -inf m |
min y position of the constraint area, unconstrained by default (negative infinity) |
constraintAreaMinZ | double | -inf m |
min z position of the constraint area, unconstrained by default (negative infinity) |
constraintAreaMaxX | double | inf m |
max x position of the constraint area, unconstrained by default (positive infinity) |
constraintAreaMaxY | double | inf m |
max y position of the constraint area, unconstrained by default (positive infinity) |
constraintAreaMaxZ | double | inf m |
max z position of the constraint area, unconstrained by default (positive infinity) |
updateInterval | double | 0.1s |
the simulation time interval used to regularly signal mobility state changes and update the display |
faceForward | bool | true |
Properties
Name | Value | Description |
---|---|---|
display | i=block/cogwheel |
Signals
Name | Type | Unit |
---|---|---|
mobilityStateChanged | inet::MobilityBase |
Source code
// // Abstract base module for mobility models. // simple MovingMobilityBase extends MobilityBase { parameters: double updateInterval @unit(s) = default(0.1s); // the simulation time interval used to regularly signal mobility state changes and update the display bool faceForward = default(true); }File: src/inet/mobility/base/MovingMobilityBase.ned