Package: inet.tutorials.queueing
ExampleInterface
compound module(no description)
Usage diagram
The following diagram shows usage relationships between types. Unresolved types are missing from the diagram.
Used in compound modules
| Name | Type | Description |
|---|---|---|
| ExampleHost | compound module | (no description) |
Properties
| Name | Value | Description |
|---|---|---|
| display | bgb=400,300;i=device/card |
Gates
| Name | Direction | Size | Description |
|---|---|---|---|
| lowerIn | input | ||
| upperIn | input | ||
| lowerOut | output | ||
| upperOut | output |
Unassigned submodule parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| queue.displayStringTextFormat | string | "contains %p pk (%l) pushed %u\npulled %o removed %r dropped %d" |
determines the text that is written on top of the submodule |
| queue.packetCapacity | int | -1 |
maximum number of packets in the queue, no limit by default |
| queue.dataCapacity | int | -1b |
maximum total length of packets in the queue, no limit by default |
| queue.dropperClass | string | "" |
determines which packets are dropped when the queue is overloaded, packets are not dropped by default; the parameter must be the name of a C++ class which implements the IPacketDropperFunction C++ interface and is registered via Register_Class |
| queue.comparatorClass | string | "" |
determines the order of packets in the queue, insertion order by default; the parameter must be the name of a C++ class which implements the IPacketComparatorFunction C++ interface and is registered via Register_Class |
| queue.bufferModule | string | "" |
relative module path to the IPacketBuffer module used by this queue, implicit buffer by default |
| server.displayStringTextFormat | string | "served %p pk (%l)\n%s" |
determines the text that is written on top of the submodule |
| server.clockModule | string | "" |
relative path of a module that implements IClock(1,2); optional |
| server.processingTime | double |
determines additional processing time per packet |
|
| server.processingBitrate | double | inf bps |
determines additional processing time per bit |
Source code
module ExampleInterface { @display("bgb=400,300;i=device/card"); gates: input lowerIn; input upperIn; output lowerOut; output upperOut; submodules: queue: PacketQueue { @display("p=200,100"); } server: PacketServer { @display("p=200,225"); } connections: upperIn --> queue.in; queue.out --> server.in; server.out --> { @display("m=s"); } --> lowerOut; lowerIn --> { @display("m=m,66,100,66,0"); } --> upperOut; } //-------------------------------------------------File: tutorials/queueing/QueueingTutorial.ned