Simple Module MoBANLocal

Package: org.mixim.modules.mobility
File: modules/mobility/MoBANLocal.ned

C++ definition

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 through the blackboard. RWMM determines the location of node at ant time relative to the given reference point.

MoBANLocal

Usage diagram:

The following diagram shows usage relationships between types. Unresolved types are missing from the diagram. Click here to see the full picture.

Inheritance diagram:

The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram. Click here to see the full picture.

Extends:

BaseMobility (simple module)

Module which is responsible for mobility related information like position and movement BaseMobility itself defines a static mobility pattern (means only a position, no movement). Mobility modules which extend from this module will define more complex movement patterns.

Parameters:

Name Type Default value Description
notAffectedByHostState bool true
coreDebug bool

debug switch for the core framework

x double

x coordinate of the nodes' position (-1 = random)

y double

y coordinate of the nodes' position (-1 = random)

z double

z coordinate of the nodes' position (-1 = random)

debug bool

debug switch

updateInterval double

Time interval to update the hosts position (seconds)

coordinatorIndex int

The index of the belonging coordinator module

Properties:

Name Value Description
display i=block/cogwheel
class MoBANLocal

Source code:

// 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 through the blackboard. RWMM determines the location of node at ant time relative to the given reference point.
simple MoBANLocal extends BaseMobility
{
    parameters:
        @class(MoBANLocal);
        bool debug; // debug switch
        double updateInterval @unit(s); // Time interval to update the hosts position (seconds)
        int coordinatorIndex; // The index of the belonging coordinator module
}