Simple Module BaseNetwLayer

Package: org.mixim.base.modules
File: base/modules/BaseNetwLayer.ned

C++ definition

Base module for every network layer module

BaseNetwLayer

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:

BaseLayer (simple module)

Base module for all layer modules. Defines the in and out gates

Known subclasses:

DummyRoute (simple module)

Placeholder module that simply "translates" netwControlInfo to macControlInfo.

Flood (simple module)

A simple flooding protocol for network-level broadcast.

ProbabilisticBroadcast (simple module)

Multi-hop ad-hoc data dissemination protocol based on probabilistic broadcast.

WiseRoute (simple module)

Wiseroute is a simple loop-free routing algorithm that builds a routing tree from a central network point, designed for sensor networks and convergecast traffic.

Used in compound modules:

If a module type shows up more than once, that means it has been defined in more than one NED file.

PhyMacHost (compound module) (no description)

Parameters:

Name Type Default value Description
notAffectedByHostState bool false
coreDebug bool

debug switch for core framework

stats bool

stats switch

headerLength double

length of the network packet header (in bits)

Properties:

Name Value Description
class BaseNetwLayer

Gates:

Name Direction Size Description
upperGateIn input

from upper layer

upperGateOut output

to uppe layer

upperControlIn input

control from upper layer

upperControlOut output

control to upper layer

lowerGateIn input

from lower layer

lowerGateOut output

to lower layer

lowerControlIn input

control from lower layer

lowerControlOut output

control to lower layer

Source code:

// Base module for every network layer module
simple BaseNetwLayer extends BaseLayer like IBaseNetwLayer
{
    parameters:
        @class(BaseNetwLayer);

        bool coreDebug; // debug switch for core framework
        bool stats; // stats switch
        double headerLength @unit(bit); // length of the network packet header (in bits)
}