EmptyPacketSource

Package: inet.queueing.source

EmptyPacketSource

simple module

C++ definition

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.

Inheritance diagram

The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram.

Extends

Name Type Description
PacketProcessorBase 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);
}
File: src/inet/queueing/source/EmptyPacketSource.ned