EmptyPacketSource¶
Package: inet.queueing.source
simple module EmptyPacketSource
An active/passive empty packet source. It doesn’t push packets into the connected module, and it doesn’t allow packets to be pulled from it by the connected module. The output gate generates backpressure for pull packet operations.
Usage diagram¶
Inheritance diagram¶
Used in compound modules¶
Name |
Type |
Description |
|---|---|---|
compound module |
This client application contains a configurable pre-composed telnet traffic source and traffic sink. |
Extends¶
Name |
Type |
Description |
|---|---|---|
simple module |
Base module for various packet processing modules which maintains a few statistics. |
Parameters¶
Name |
Type |
Default value |
Description |
|---|---|---|---|
displayStringTextFormat |
string |
“created 0 pk (0 B)” |
Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information |
Properties¶
Name |
Value |
Description |
|---|---|---|
class |
EmptyPacketSource |
|
display |
i=block/source |
Gates¶
Name |
Direction |
Size |
Description |
|---|---|---|---|
out |
output |
Source code¶
//
// An active/passive empty packet source. It doesn't push packets
// into the connected module, and it doesn't allow packets to be pulled from it
// by the connected module. The output gate generates backpressure for pull packet
// operations.
//
simple EmptyPacketSource extends PacketProcessorBase like IPacketSource, IActivePacketSource, IPassivePacketSource
{
parameters:
displayStringTextFormat = default("created 0 pk (0 B)");
@class(EmptyPacketSource);
@display("i=block/source");
gates:
output out @labels(push,pull);
}