Package: inet.examples.diffserv.onedomain
TC3
compound moduleTraffic conditioner used in Experiment 3.2.
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 |
|---|---|---|---|
| interfaceTableModule | string |
Properties
| Name | Value | Description |
|---|---|---|
| display | i=block/classifier |
Gates
| Name | Direction | Size | Description |
|---|---|---|---|
| in | input | ||
| out | output |
Unassigned submodule parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| classifier.displayStringTextFormat | string | "classified %p pk (%l)" |
Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information |
| classifier.reverseOrder | bool | false | |
| meter.displayStringTextFormat | string | "" |
Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information |
| meter.interfaceTableModule | string |
The path to the InterfaceTable module |
|
| meter.cir | string |
Committed information rate, either absolute bitrate (e.g. "100kbps") or relative to the link's datarate (e.g. "20%") |
|
| meter.cbs | int |
Committed burst size |
|
| meter.colorAwareMode | bool | false |
Enables color-aware mode |
| sink.displayStringTextFormat | string | "received %p pk (%l)" |
Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information |
| sink.clockModule | string | "" |
Relative path of a module that implements IClock(1,2); optional |
| sink.initialConsumptionOffset | double | 0s |
Initial duration before which packets are not consumed |
| sink.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 |
| sink.scheduleForAbsoluteTime | bool | true |
When a clock is used, "relative" means that setting the clock will not affect the simulation time of the event |
| join.displayStringTextFormat | string | "passed %p pk (%l)" |
Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information |
| join.forwardServiceRegistration | bool | true | |
| join.forwardProtocolRegistration | bool | true |
Source code
// // Traffic conditioner used in Experiment 3.2. // module TC3 like ITrafficConditioner { parameters: string interfaceTableModule; *.interfaceTableModule = default(absPath(this.interfaceTableModule)); @display("i=block/classifier"); gates: input in; output out; submodules: classifier: MultiFieldClassifier { filters = xml("<filters><filter gate=\"0\"/></filters>"); @display("p=100,300"); } meter: TokenBucketMeter { @display("p=250,200"); } sink: PassivePacketSink { @display("p=350,100"); } join: PacketMultiplexer { @display("p=400,300"); } connections: in --> classifier.in; classifier.out++ --> meter.in; classifier.defaultOut --> join.in++; meter.redOut --> sink.in; meter.greenOut --> join.in++; join.out --> out; }File: examples/diffserv/onedomain/TC3.ned