Simple Module AlohaMacLayer

Package: org.mixim.modules.mac
File: modules/mac/AlohaMacLayer.ned

C++ definition

(no description)

AlohaMacLayer

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:

UWBIRMac (simple module)

This class provides helper function for MAC modules that use the UWB-IR IEEE 802.15.4A model. Just before sending down a packet to the UWBIRPhyLayer, call prepareData(UWBIRMacPkt* packet). Just after receiving a packet from the UWBIRPhyLayer, call validatePacket(UWBIRMacPkt* packet) and check the returned bool value to know if the packet could be decoded successfully.

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.

Nic802154A (compound module) (no description)

Parameters:

Name Type Default value Description
notAffectedByHostState bool false
coreDebug bool

debug switch

headerLength double

length of the MAC packet header (in bits)

debug bool false

debug switch

stats bool true
trace bool false
RSDecoder bool true
packetsAlwaysValid bool false
PRF int 4

Pulse repetition frequency, either 4 or 16 MHz currently

maxRetries double
minBE int 3

min backoff exponent

maxBE int 8

max backoff exponent

Properties:

Name Value Description
class AlohaMacLayer

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:

simple AlohaMacLayer extends UWBIRMac
{
    parameters:
        double maxRetries;
        int minBE = default(3); // min backoff exponent
        int maxBE = default(8); // max backoff exponent
        @class(AlohaMacLayer);
}