ExampleCable

Package: inet.tutorials.queueing

ExampleCable

compound module

(no description)

PacketDelayer PacketDelayer

Usage diagram

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

Used in

Name Type Description
ExampleNetworkTutorialStep network (no description)

Properties

Name Value Description
display i=block/mac

Gates

Name Direction Size Description
aIn input
aOut output
bIn input
bOut output

Unassigned submodule parameters

Name Type Default value Description
aDelayer.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

aDelayer.clockModule string ""

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

aDelayer.delay double
bDelayer.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

bDelayer.clockModule string ""

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

bDelayer.delay double

Source code

module ExampleCable
{
    parameters:
        @display("i=block/mac");
    gates:
        input aIn;
        output aOut;
        input bIn;
        output bOut;
    submodules:
        aDelayer: PacketDelayer {
            @display("p=100,100");
        }
        bDelayer: PacketDelayer {
            @display("p=100,200");
        }
    connections:
        aIn --> { @display("m=w"); } --> aDelayer.in;
        aDelayer.out --> { @display("m=e"); } --> aOut;
        bIn --> { @display("m=e"); } --> bDelayer.in;
        bDelayer.out --> { @display("m=w"); } --> bOut;
}

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

File: tutorials/queueing/QueueingTutorial.ned