Simple Module ANSimMobility

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

C++ definition

Uses the <position_change> elements of the ANSim tool's trace file.

NOTE: Does not yet support 3-dimensional movement.

Author: Andras Varga

ANSimMobility

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

ansimTrace xml

the ANSim trace file in XML

nodeId double

<position_change> elements to match; -1 gets substituted to parent module's index

updateInterval double

time interval to update the hosts position (seconds)

Properties:

Name Value Description
display i=block/cogwheel
class ANSimMobility

Source code:

//
// Uses the <position_change> elements of the ANSim tool's
// trace file.
//
// NOTE: Does not yet support 3-dimensional movement.
// @author Andras Varga
//
simple ANSimMobility extends BaseMobility
{
    parameters:
        @class(ANSimMobility);
        bool debug; // debug switch
        xml ansimTrace; // the ANSim trace file in XML
        double nodeId; // <position_change> elements to match; 
                               // -1 gets substituted to parent module's index
        double updateInterval @unit(s); // time interval to update the hosts position (seconds)
}