Compound Module MobileHost

Package: inet.examples.mobility
File: examples/mobility/MobileHost.ned

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

IMobility

Usage diagram:

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

Inheritance diagram:

The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram.

Networks:

Name Type Description
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.

MobileNetwork network (no description)
MobileNetworkWithScenario network (no description)

Parameters:

Name Type Default value Description
mobilityType string "StationaryMobility"

Properties:

Name Value Description
networkNode
display i=device/pocketpc_s

Statistics:

Name Title Source Record Unit Interpolation Mode
coordX coord X xCoord(mobilityPos(mobilityStateChanged)) vector linear
coordY coord Y yCoord(mobilityPos(mobilityStateChanged)) vector linear

Source code:

//
// A host for demonstrating mobility models only -- it contains
// no protocol layers at all.
//
module MobileHost
{
    parameters:
        string mobilityType = default("StationaryMobility");
        @networkNode();
        @display("i=device/pocketpc_s");
        @statistic[coordX](title="coord X"; source="xCoord(mobilityPos(mobilityStateChanged))"; record=vector; interpolationmode=linear);
        @statistic[coordY](title="coord Y"; source="yCoord(mobilityPos(mobilityStateChanged))"; record=vector; interpolationmode=linear);
        //@statistic[coordZ](title="coord Z";source="zCoord(mobilityPos(mobilityStateChanged))";record=vector; interpolationmode=linear);
    submodules:
        mobility: <mobilityType> like IMobility;
}