TrafficgenCompound
Package: inet.applications.trafficgen
TrafficgenCompound
compound module(no description)
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 |
|---|---|---|---|
| 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