Package: inet.queueing.policing
MultiPacketPolicing
compound moduleThis module combines multiple packet policing modules into one.
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 |
---|---|---|---|
numPaths | int |
Gates
Name | Direction | Size | Description |
---|---|---|---|
in | input | ||
out | output |
Unassigned submodule parameters
Name | Type | Default value | Description |
---|---|---|---|
multiplexer.displayStringTextFormat | string | "passed %p pk (%l)" |
determines the text that is written on top of the submodule |
multiplexer.forwardServiceRegistration | bool | true | |
multiplexer.forwardProtocolRegistration | bool | true |
Source code
// // This module combines multiple packet policing modules into one. // module MultiPacketPolicing like IPacketPolicing { parameters: int numPaths; gates: input in @labels(push); output out @labels(push); submodules: classifier: <default("PacketClassifier")> like IPacketClassifier { parameters: @display("p=125,120"); } meter[numPaths]: <default("DualRateThreeColorMeter")> like IPacketMeter { parameters: @display("p=325,120"); } filter[numPaths]: <default("LabelFilter")> like IPacketFilter { parameters: @display("p=525,120"); } multiplexer: PacketMultiplexer { parameters: @display("p=725,120"); } connections: in --> { @display("m=w"); } --> classifier.in; for i=0..numPaths-1 { classifier.out++ --> meter[i].in; meter[i].out --> filter[i].in; filter[i].out --> multiplexer.in++; } multiplexer.out --> { @display("m=e"); } --> out; }File: src/inet/queueing/policing/MultiPacketPolicing.ned