TrafficgenCompound

Package: inet.applications.trafficgen

compound module TrafficgenCompound

(no description)

TrafficgenCompoundgenerator[i].generatorOut --> handler.generatorIn++ for i=0..numGenerators-1⦀generator[i].generatorIn --> handler.generatorOut++ for i=0..numGenerators-1⦀handler.socketOut --> socketOuthandler.socketIn --> socketIngenerator[numGenerators]: inet.applications.trafficgen.ITrafficgen (like ITrafficgen) Source: generator[numGenerators]: <> like ITrafficgen { @display("p=139,44"); }generator[numGenerators]handler: inet.applications.trafficgen.ITrafficgenHandler (like ITrafficgenHandler) Source: handler: <> like ITrafficgenHandler { @display("p=139,152"); }handler

Usage diagram

Inheritance diagram

Parameters

Name

Type

Default value

Description

numGenerators

int

0

Properties

Name

Value

Description

display

i=block/broadcast;bgb=353,249

Gates

Name

Direction

Size

Description

socketIn

input

socketOut

output

Unassigned submodule parameters

Name

Type

Default value

Description

generator.name

string

generator.id

int

Source code

module TrafficgenCompound like IApp
{
    parameters:
        int numGenerators = default(0);
        @display("i=block/broadcast;bgb=353,249");

    gates:
        input socketIn @labels(SCTPControlInfo/up);
        output socketOut @labels(SCTPControlInfo/down);

    submodules:
        generator[numGenerators]: <> like ITrafficgen {
            @display("p=139,44");
        }

        handler: <> like ITrafficgenHandler {
            @display("p=139,152");
        }
    connections:
        for i=0..numGenerators-1 {
            generator[i].generatorOut --> handler.generatorIn++;
            generator[i].generatorIn <-- handler.generatorOut++;
        }

        handler.socketOut --> socketOut;
        handler.socketIn <-- socketIn;
}

File: src/inet/applications/trafficgen/TrafficgenCompound.ned