LayeredProtocolBase¶
Package: inet.common
simple module LayeredProtocolBase
Module base for different layered protocols.
Inheritance diagram¶
Known subclasses¶
Name |
Type |
Description |
|---|---|---|
simple module |
Module base for different MAC protocols. |
|
simple module |
Module base for different network protocols. |
|
simple module |
Module base for different physical layers. |
|
simple module |
Module base for different transport protocols. |
Extends¶
Name |
Type |
Description |
|---|---|---|
simple module |
Base module for all INET simple modules. |
Parameters¶
Name |
Type |
Default value |
Description |
|---|---|---|---|
displayStringTextFormat |
string |
“” |
Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information |
Properties¶
Name |
Value |
Description |
|---|---|---|
class |
LayeredProtocolBase |
Signals¶
Name |
Type |
Unit |
Description |
|---|---|---|---|
packetDropped |
cPacket |
||
packetReceivedFromLower |
cPacket |
||
packetReceivedFromUpper |
cPacket |
||
packetSentToLower |
cPacket |
||
packetSentToUpper |
cPacket |
Source code¶
//
// Module base for different layered protocols.
//
simple LayeredProtocolBase extends SimpleModule
{
parameters:
@class(LayeredProtocolBase);
@signal[packetSentToUpper](type=cPacket);
@signal[packetReceivedFromUpper](type=cPacket);
@signal[packetSentToLower](type=cPacket);
@signal[packetReceivedFromLower](type=cPacket);
@signal[packetDropped](type=cPacket);
}