Package: inet.linklayer.ethernet.modular
EthernetMacLayer
compound module(no description)
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.
Parameters
Name | Type | Default value | Description |
---|---|---|---|
bitrate | double |
Properties
Name | Value | Description |
---|---|---|
display | i=block/layer | |
class | EthernetMacLayer |
Gates
Name | Direction | Size | Description |
---|---|---|---|
upperLayerIn | input | ||
upperLayerOut | output | ||
lowerLayerIn | input | ||
lowerLayerOut | output |
Direct method calls (observed)
call to | function | info |
---|---|---|
PacketQueue | inet::queueing::PacketQueue::removeAllPackets | removeAllPackets |
Called methods (observed)
function | info | call from |
---|---|---|
inet::EthernetMacLayer::receiveSignal | interfaceStateChanged | InterfaceTable |
Source code
module EthernetMacLayer like IEthernetMacLayer { parameters: double bitrate @unit(bps); *.bitrate = default(this.bitrate); lifetimer.collectionModule = default("^.queue"); outboundEmitter.signalName = "packetSentToLower"; outboundEmitter.direction = "outbound"; inboundEmitter.signalName = "packetReceivedFromLower"; inboundEmitter.direction = "inbound"; @display("i=block/layer"); @class(EthernetMacLayer); gates: input upperLayerIn; output upperLayerOut; input lowerLayerIn; output lowerLayerOut; submodules: lifetimer: <default("")> like IPacketLifeTimer if typename != "" { @display("p=100,100;is=s"); } queue: <default("PacketQueue")> like IPacketQueue { @display("p=200,100"); } server: <default("InstantServer")> like IPacketServer { serveSchedulingPriority = default(0); @display("p=200,200"); } outboundEmitter: <default("PacketEmitter")> like IPacketFlow { @display("p=200,400"); } fcsChecker: <default("EthernetFcsChecker")> like IPacketFilter { popFcs = default(false); @display("p=500,300"); } inboundEmitter: <default("PacketEmitter")> like IPacketFlow { @display("p=500,400"); } connections: upperLayerIn --> { @display("m=n"); } --> queue.in; queue.out --> server.in; server.out --> outboundEmitter.in; outboundEmitter.out --> { @display("m=s"); } --> lowerLayerOut; lowerLayerIn --> { @display("m=s"); } --> inboundEmitter.in; inboundEmitter.out --> fcsChecker.in; fcsChecker.out --> { @display("m=n"); } --> upperLayerOut; }File: src/inet/linklayer/ethernet/modular/EthernetMacLayer.ned