Module Interface IBaseNetwLayer

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

Interface for network layer modules

IBaseNetwLayer

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.

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.

BaseNode (compound module) (no description)
Host80211 (compound module)

Example host module using an 802.11 Network interface card.

Host802154_2400MHz (compound module)

This NED module defines a host using an IEEE 802.15.4 transceiver at 2.4GHz for wireless communications, that can be used to simulate wireless sensor networks.

HostBasic (compound module)

Example host module for a basic MiXiM host with configurable NIC, network layer, application layer and mobility module.

HostBMAC (compound module)

Example host module using a BMAC Network interface card.

HostLMAC (compound module)

Example host module using a LMAC Network interface card.

Parameters:

Name Type Default value Description
stats bool

stats switch

headerLength double

length of the network packet header (in bits)

Source code:

// Interface for network layer modules
moduleinterface IBaseNetwLayer
{
    parameters:
        bool stats; // stats switch
        double headerLength @unit("bit"); // length of the network packet header (in bits)
    gates:
        input upperGateIn; // from application layer
        output upperGateOut; // to application layer
        input upperControlIn; // control from application layer
        output upperControlOut; // control to application layer
        input lowerGateIn; // from NIC
        output lowerGateOut; // to NIC
        input lowerControlIn; // control from NIC
        output lowerControlOut; // control to NIC
}