Package: inet.queueing.base
PacketServerBase
simple moduleThis is a base module for various packet server modules.
See also: IPacketServer
Inheritance diagram
The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram.
Known subclasses
| Name | Type | Description |
|---|---|---|
| PacketServer | simple module |
This module repeatedly pops packets from the connected packet provider and after a processing delay it pushes the packet into the connected packet consumer. The processing delay is processingTime + packetLength / processingBitrate. |
| TokenBasedServer | simple module |
This module repeatedly pops packets from the connected packet provider and it pushes them into the connected packet consumer. The packets are processed in zero simulation time, and the process continues until the available number of tokens is not sufficient anymore. |
Extends
| Name | Type | Description |
|---|---|---|
| PacketSinkBase | simple module |
This is a base module for various packet sink modules. |
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| displayStringTextFormat | string | "served %p pk (%l)\n%s" |
determines the text that is written on top of the submodule |
Properties
| Name | Value | Description |
|---|---|---|
| display | i=block/server |
Gates
| Name | Direction | Size | Description |
|---|---|---|---|
| in | input | ||
| out | output |
Signals
| Name | Type | Unit |
|---|---|---|
| packetServed | inet::Packet |
Statistics
| Name | Title | Source | Record | Unit | Interpolation Mode |
|---|---|---|---|---|---|
| packetServed | packets served | count, sum(packetBytes), vector(packetBytes) | none |
Source code
// // This is a base module for various packet server modules. // // @see ~IPacketServer // simple PacketServerBase extends PacketSinkBase { parameters: displayStringTextFormat = default("served %p pk (%l)\n%s"); @display("i=block/server"); @signal[packetServed](type=inet::Packet); @statistic[packetServed](title="packets served"; record=count,sum(packetBytes),vector(packetBytes); interpolationmode=none); gates: input in; output out; }File: src/inet/queueing/base/PacketServerBase.ned