MultiPacketFilter

Package: inet.queueing.filter

MultiPacketFilter

compound module

This module combines multiple packet filters into one.

filter[numFilters] : like IPacketFilter

IPacketFilter: This module interface is implemented by packet filter modules.

Source:
filter[numFilters]: <> like IPacketFilter {
    @display("p=150,150,row,150");
}

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
numFilters int

Properties

Name Value Description
display i=block/filter

Gates

Name Direction Size Description
in input
out output

Source code

//
// This module combines multiple packet filters into one.
//
module MultiPacketFilter like IPacketFilter
{
    parameters:
        int numFilters;
        @display("i=block/filter");
    gates:
        input in @labels(send,push,pull,pass,stream);
        output out @labels(send,push,pull,pass,stream);
    submodules:
        filter[numFilters]: <> like IPacketFilter {
            @display("p=150,150,row,150");
        }
    connections:
        in --> { @display("m=w"); } --> filter[0].in;
        for i=1..numFilters-1 {
            filter[i - 1].out --> filter[i].in;
        }
        filter[numFilters - 1].out --> { @display("m=e"); } --> out;
}
File: src/inet/queueing/filter/MultiPacketFilter.ned