Filter2TutorialStep

Package: inet.tutorials.queueing

Filter2TutorialStep

network

(no description)

PassivePacketSource ContentBasedFilter ActivePacketSink

Usage diagram

The following diagram shows usage relationships between types. Unresolved types are missing from the diagram.

Properties

Name Value Description
isNetwork
display bgb=600,200

Unassigned submodule parameters

Name Type Default value Description
provider.displayStringTextFormat string "created %p pk (%l)"

determines the text that is written on top of the submodule

provider.packetNameFormat string "%a-%c"

see directives in module documentation

provider.packetRepresentation string "byteCount"

determines the chunk of the packet data

provider.packetLength int
provider.packetData int -1
provider.attachCreationTimeTag bool true
provider.attachIdentityTag bool true
provider.attachDirectionTag bool true
provider.clockModule string ""

relative path of a module that implements IClock(1,2); optional

provider.providingInterval double 0s

elapsed time between subsequent packets allowed to be pulled by the connected packet collector, 0 means any number of packets can be pulled at the same simulation time

provider.scheduleForAbsoluteTime bool true

when a clock is used relative means that setting the clock will not affect the simulation time of the event

filter.displayStringTextFormat string "dropped %d/%p pk (%k/%l)"

determines the text that is written on top of the submodule

filter.backpressure bool false
filter.packetFilter object "*"

packet filter expressions, matches all packets by default

collector.displayStringTextFormat string "received %p pk (%l)"

determines the text that is written on top of the submodule

collector.clockModule string ""

relative path of a module that implements IClock(1,2); optional

collector.initialCollectionOffset double 0s
collector.collectionInterval double

elapsed time between subsequent packets pulled from the connected packet provider

collector.scheduleForAbsoluteTime bool true

when a clock is used relative means that setting the clock will not affect the simulation time of the event

Source code

network Filter2TutorialStep
{
    @display("bgb=600,200");
    submodules:
        provider: PassivePacketSource {
            @display("p=100,100");
        }
        filter: ContentBasedFilter {
            @display("p=300,100");
        }
        collector: ActivePacketSink {
            @display("p=500,100");
        }
    connections allowunconnected:
        provider.out --> filter.in;
        filter.out --> collector.in;
}

//-------------------------------------------------

File: tutorials/queueing/QueueingTutorial.ned