Simple Module OrdinalBasedDuplicator
Package: inet.common.queue
File: src/inet/common/queue/OrdinalBasedDuplicator.ned
C++ definition
Ordinal Based Duplicator module.
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.
Parameters:
Name |
Type |
Default value |
Description |
duplicatesVector |
string
|
"" |
the duplicatesVector format is "<packetNumber>;<packetNumber>;...;"
packet numbers in ascending order e.g. "5;6;12;13;"
|
Properties:
Name |
Value |
Description |
display |
i=status/busy |
|
Gates:
Name |
Direction |
Size |
Description |
in |
input |
| |
out |
output |
| |
Signals:
Name |
Type |
Unit |
duplPk |
cMessage |
|
sentPk |
cMessage |
|
rcvdPk |
cMessage |
|
Statistics:
Name |
Title |
Source |
Record |
Unit |
Interpolation Mode |
duplPk |
packets duplicated |
duplPk |
count, sum(packetBytes), vector(packetBytes) |
|
none |
sentPk |
packets sent |
sentPk |
count, sum(packetBytes), vector(packetBytes) |
|
none |
rcvdPk |
packets received |
rcvdPk |
count, sum(packetBytes), vector(packetBytes) |
|
none |
Source code:
//
// Ordinal Based Duplicator module.
//
simple OrdinalBasedDuplicator like IHook
{
parameters:
string duplicatesVector = default(""); // the duplicatesVector format is "<packetNumber>;<packetNumber>;...;"
// packet numbers in ascending order e.g. "5;6;12;13;"
@display("i=status/busy");
@signal[rcvdPk](type=cMessage);
@signal[sentPk](type=cMessage);
@signal[duplPk](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[duplPk](title="packets duplicated"; source=duplPk; record=count,"sum(packetBytes)","vector(packetBytes)"; interpolationmode=none);
gates:
input in;
output out;
}