WrrClassifierTutorialStep

Package: inet.tutorials.queueing

WrrClassifierTutorialStep

network

(no description)

ActivePacketSource WrrClassifier PassivePacketSink PassivePacketSink PassivePacketSink

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,400

Unassigned submodule parameters

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

determines the text that is written on top of the submodule

producer.packetNameFormat string "%a-%c"

see directives in module documentation

producer.packetRepresentation string "byteCount"

determines the chunk of the packet data

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

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

producer.initialProductionOffset double 0s
producer.productionInterval double

elapsed time between subsequent packets pushed to the connected packet consumer

producer.scheduleForAbsoluteTime bool true

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

classifier.displayStringTextFormat string "classified %p pk (%l)"

determines the text that is written on top of the submodule

classifier.reverseOrder bool false
classifier.weights string
consumer1.displayStringTextFormat string "received %p pk (%l)"

determines the text that is written on top of the submodule

consumer1.clockModule string ""

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

consumer1.consumptionInterval double 0s

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

consumer1.scheduleForAbsoluteTime bool true

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

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

determines the text that is written on top of the submodule

consumer2.clockModule string ""

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

consumer2.consumptionInterval double 0s

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

consumer2.scheduleForAbsoluteTime bool true

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

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

determines the text that is written on top of the submodule

consumer3.clockModule string ""

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

consumer3.consumptionInterval double 0s

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

consumer3.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 WrrClassifierTutorialStep
{
    @display("bgb=600,400");
    submodules:
        producer: ActivePacketSource {
            @display("p=100,100");
        }
        classifier: WrrClassifier {
            @display("p=300,100");
        }
        consumer1: PassivePacketSink {
            @display("p=500,100");
        }
        consumer2: PassivePacketSink {
            @display("p=500,200");
        }
        consumer3: PassivePacketSink {
            @display("p=500,300");
        }

    connections allowunconnected:
        producer.out --> classifier.in;
        classifier.out++ --> consumer1.in;
        classifier.out++ --> consumer2.in;
        classifier.out++ --> consumer3.in;
}

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

File: tutorials/queueing/QueueingTutorial.ned