Simple Module Sink

Package: inet.common.queue
File: src/inet/common/queue/Sink.ned

C++ definition

Silently discards all received packets.

Sink

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.

Used in compound modules:

Name Type Description
DiffservQueue compound module

This is an example queue, that can be used in interfaces of DS core and edge nodes to support the AFxy (RFC 2597) and EF (RFC 3246) PHBs.

SinkClient compound module (no description)
SinkClient compound module (no description)
SinkNode compound module (no description)
TC3 compound module

Traffic conditioner used in Experiment 3.2.

ThroughputServer compound module (no description)
ThroughputServer compound module (no description)
TrafficConditioner compound module

TODO documentation

WirelessAPWithSink compound module (no description)
WirelessAPWithSink compound module

Well, this models a 802.11 Access Point with a Sink.

Properties:

Name Value Description
display i=block/sink

Gates:

Name Direction Size Description
in [ ] input

Signals:

Name Type Unit
rcvdPk cPacket

Statistics:

Name Title Source Record Unit Interpolation Mode
rcvdPk packets received rcvdPk count, sum(packetBytes), vector(packetBytes) none

Source code:

//
// Silently discards all received packets.
//
simple Sink
{
    parameters:
        @display("i=block/sink");
        @signal[rcvdPk](type=cPacket);
        @statistic[rcvdPk](title="packets received"; source=rcvdPk; record=count,"sum(packetBytes)","vector(packetBytes)"; interpolationmode=none);
    gates:
        input in[];
}