Compound Module MACProtocolBase
Package: inet.linklayer.ieee80211.mac
File: src/inet/linklayer/ieee80211/mac/Ieee80211Mac.ned
near copy-paste of inet.linklayer.base.MACProtocolBase to work around "compound-module cannot extend a simple-module" error in OMNeT++ 4.x
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.
Extends:
Name |
Type |
Description |
LayeredProtocolBase
|
compound module
|
near copy-paste of inet.linklayer.base.MACProtocolBase to work around "compound-module cannot extend a simple-module" error in OMNeT++ 4.x
|
Known subclasses:
Name |
Type |
Description |
Ieee80211Mac
|
compound module
|
Implementation of the 802.11b MAC protocol. This module is intended
to be used in combination with the Ieee80211Radio module as the physical
layer. (The SnrEval80211 and Decider80211 modules should also work if
per-packet bitrate setting gets implemented.)
|
Parameters:
Name |
Type |
Default value |
Description |
interfaceTableModule |
string
|
|
|
mtu |
int
|
2304B |
|
Properties:
Name |
Value |
Description |
display |
i=block/rxtx |
|
Gates:
Name |
Direction |
Size |
Description |
upperLayerIn |
input |
| |
upperLayerOut |
output |
| |
lowerLayerIn |
input |
| |
lowerLayerOut |
output |
| |
Signals:
Name |
Type |
Unit |
packetReceivedFromUpper |
cPacket |
|
packetReceivedFromLower |
cPacket |
|
packetFromLowerDropped |
cPacket |
|
packetFromUpperDropped |
cPacket |
|
packetSentToLower |
cPacket |
|
packetSentToUpper |
cPacket |
|
Source code:
// near copy-paste of inet.linklayer.base.MACProtocolBase to work around "compound-module cannot extend a simple-module" error in OMNeT++ 4.x
module MACProtocolBase extends LayeredProtocolBase
{
parameters:
string interfaceTableModule;
int mtu @unit("B") = default(2304B);
@display("i=block/rxtx");
gates:
input upperLayerIn @labels(INetworkDatagram/down);
output upperLayerOut @labels(INetworkDatagram/up);
input lowerLayerIn @labels(ILinkLayerFrame/up);
output lowerLayerOut @labels(ILinkLayerFrame/down);
}