Package: inet.common.queue
OrdinalBasedDropper
simple moduleOrdinal Based Dropper module.
Inheritance diagram
The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram.
Parameters
Name | Type | Default value | Description |
---|---|---|---|
dropsVector | string | "" |
the dropsVector format is "<packetNumber>;<packetNumber>;...;" packet numbers in ascending order e.g. "5;6;12;13;" |
Properties
Name | Value | Description |
---|---|---|
display | i=status/lightning |
Gates
Name | Direction | Size | Description |
---|---|---|---|
in | input | ||
out | output |
Signals
Name | Type | Unit |
---|---|---|
sentPk | cMessage | |
dropPk | cMessage | |
rcvdPk | cMessage |
Statistics
Name | Title | Source | Record | Unit | Interpolation Mode |
---|---|---|---|---|---|
sentPk | packets sent | sentPk | count, sum(packetBytes), vector(packetBytes) | none | |
dropPk | packets dropped | dropPk | count, sum(packetBytes), vector(packetBytes) | none | |
rcvdPk | packets received | rcvdPk | count, sum(packetBytes), vector(packetBytes) | none |
Source code
// // Ordinal Based Dropper module. // simple OrdinalBasedDropper like IHook { parameters: string dropsVector = default(""); // the dropsVector format is "<packetNumber>;<packetNumber>;...;" // packet numbers in ascending order e.g. "5;6;12;13;" @display("i=status/lightning"); @signal[rcvdPk](type=cMessage); @signal[sentPk](type=cMessage); @signal[dropPk](type=cMessage); @statistic[rcvdPk](title="packets received"; source=rcvdPk; record=count,"sum(packetBytes)","vector(packetBytes)"; interpolationmode=none); @statistic[sentPk](title="packets sent"; source=sentPk; record=count,"sum(packetBytes)","vector(packetBytes)"; interpolationmode=none); @statistic[dropPk](title="packets dropped"; source=dropPk; record=count,"sum(packetBytes)","vector(packetBytes)"; interpolationmode=none); gates: input in; output out; }File: src/inet/common/queue/OrdinalBasedDropper.ned