MoBANNetwork

Package: inet.examples.mobility

MoBANNetwork

network

This network is exactly the same as baseNetwork existing among the examples of MiXiM, but the desired number of MoBAN coordinator modules have been added. Some nodes of type BaseNode use MoBanLocal module as their mobility module. Then those nodes will be considered as WBAN nodes. Those node have a parameter named "coordinatorIndex" that determines to which WBAN (coordinator) the node belongs.

node[numNodes] : MobileHost

A host for demonstrating mobility models only -- it contains no protocol layers at all.

Source:
node[numNodes]: MobileHost {
    parameters:
        @display("b=8,8,oval,red,,");
} coordinator[numMoBAN] : MoBanCoordinator

This is the coordinator module of the MoBAN mobility model.

Source:
coordinator[numMoBAN]: MoBanCoordinator {
    parameters:
        @display("i=block/wheelbarrow;p=100,100;is=s");
}

Usage diagram

The following diagram shows usage relationships between types. Unresolved types are missing from the diagram.

Parameters

Name Type Default value Description
numNodes int

total number of nodes in the network, either ordinary nodes or WBAN nodes

numMoBAN int

total number of MoBAN coordinators (WBAN instances)

Properties

Name Value Description
isNetwork
display bgb=1000,1000

Unassigned submodule parameters

Name Type Default value Description
coordinator.displayStringTextFormat string "p: %p\nv: %v"

Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information

coordinator.subjectModule string "^"

The module path that determines the subject module, the motion of which this mobility model describes. The default value is the parent module

coordinator.coordinateSystemModule string ""

The module path of the geographic coordinate system module

coordinator.updateDisplayString bool true

Enables continuous update of the subject module's position by modifying its display string

coordinator.constraintAreaMinX double -inf m

The minimum x position of the constraint area. It is unconstrained by default (negative infinity)

coordinator.constraintAreaMinY double -inf m

The minimum y position of the constraint area. It is unconstrained by default (negative infinity)

coordinator.constraintAreaMinZ double -inf m

The minimum z position of the constraint area. It is unconstrained by default (negative infinity)

coordinator.constraintAreaMaxX double inf m

The maximum x position of the constraint area. It is unconstrained by default (positive infinity)

coordinator.constraintAreaMaxY double inf m

The maximum y position of the constraint area. It is unconstrained by default (positive infinity)

coordinator.constraintAreaMaxZ double inf m

The maximum z position of the constraint area. It is unconstrained by default (positive infinity)

coordinator.updateInterval double 0.1s

The simulation time interval used to regularly signal mobility state changes and update the display

coordinator.faceForward bool true
coordinator.postureSpecFile xml

The input file that includes the specification of all postures

coordinator.configFile xml

The configuration file for setting probability vectors, distributions, and correlations

coordinator.useMobilityPattern bool

Set if the logged mobility pattern is used.

coordinator.mobilityPatternFile string

The input file for the mobility pattern if it is going to be used.

Source code

//
// This network is exactly the same as baseNetwork existing among the examples of MiXiM, but the desired number of MoBAN coordinator modules have been added.
// Some nodes of type BaseNode use MoBanLocal module as their mobility module. Then those nodes will be considered as WBAN nodes.
// Those node have a parameter named "coordinatorIndex" that determines to which WBAN (coordinator) the node belongs.
//
network MoBANNetwork
{
    parameters:
        int numNodes; // total number of nodes in the network, either ordinary nodes or WBAN nodes
        int numMoBAN; // total number of MoBAN coordinators (WBAN instances)
        @display("bgb=1000,1000");
    submodules:
        node[numNodes]: MobileHost {
            parameters:
                @display("b=8,8,oval,red,,");
        }
        coordinator[numMoBAN]: MoBanCoordinator {
            parameters:
                @display("i=block/wheelbarrow;p=100,100;is=s");
        }
}
File: examples/mobility/MoBANNetwork.ned