Package: inet.tests.ethernet
HostsWithBus
network(no description)
Usage diagram
The following diagram shows usage relationships between types. Unresolved types are missing from the diagram.
Properties
| Name | Value | Description |
|---|---|---|
| isNetwork |
Unassigned submodule parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| hostA.app.displayStringTextFormat | string | "" |
Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information |
| hostA.app.destAddress | string | "" |
Destination MAC address, or module path name of destination station; empty means off |
| hostA.app.interfaceTableModule | string | ||
| hostA.app.ssap | int | -1 |
Llc ssap to set on outgoing packets |
| hostA.app.dsap | int | -1 |
Llc dsap to set on outgoing packets |
| hostA.app.startTime | double | this.sendInterval |
Time of sending the first packet |
| hostA.app.stopTime | double | -1s |
Time of finishing sending, negative values mean forever |
| hostA.app.sendInterval | double |
Interval between sending bursts |
|
| hostA.app.numPacketsPerBurst | int | 1 |
Number of packets to send per burst (packets within a burst are sent at the same simulation time) |
| hostA.app.packetLength | int |
Length of packets to send |
|
| hostA.app.stopOperationExtraTime | double | -1s |
Extra time after lifecycle stop operation finished |
| hostA.app.stopOperationTimeout | double | 2s |
Timeout value for lifecycle stop operation |
| hostA.interfaceTable.displayStringTextFormat | string | "" |
Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information |
| hostA.interfaceTable.displayAddresses | bool | false |
Whether to display IP addresses on links |
| hostA.eth.bitrate | double | ||
| hostB.app.displayStringTextFormat | string | "" |
Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information |
| hostB.app.destAddress | string | "" |
Destination MAC address, or module path name of destination station; empty means off |
| hostB.app.interfaceTableModule | string | ||
| hostB.app.ssap | int | -1 |
Llc ssap to set on outgoing packets |
| hostB.app.dsap | int | -1 |
Llc dsap to set on outgoing packets |
| hostB.app.startTime | double | this.sendInterval |
Time of sending the first packet |
| hostB.app.stopTime | double | -1s |
Time of finishing sending, negative values mean forever |
| hostB.app.sendInterval | double |
Interval between sending bursts |
|
| hostB.app.numPacketsPerBurst | int | 1 |
Number of packets to send per burst (packets within a burst are sent at the same simulation time) |
| hostB.app.packetLength | int |
Length of packets to send |
|
| hostB.app.stopOperationExtraTime | double | -1s |
Extra time after lifecycle stop operation finished |
| hostB.app.stopOperationTimeout | double | 2s |
Timeout value for lifecycle stop operation |
| hostB.interfaceTable.displayStringTextFormat | string | "" |
Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information |
| hostB.interfaceTable.displayAddresses | bool | false |
Whether to display IP addresses on links |
| hostB.eth.bitrate | double | ||
| hostC.app.displayStringTextFormat | string | "" |
Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information |
| hostC.app.destAddress | string | "" |
Destination MAC address, or module path name of destination station; empty means off |
| hostC.app.interfaceTableModule | string | ||
| hostC.app.ssap | int | -1 |
Llc ssap to set on outgoing packets |
| hostC.app.dsap | int | -1 |
Llc dsap to set on outgoing packets |
| hostC.app.startTime | double | this.sendInterval |
Time of sending the first packet |
| hostC.app.stopTime | double | -1s |
Time of finishing sending, negative values mean forever |
| hostC.app.sendInterval | double |
Interval between sending bursts |
|
| hostC.app.numPacketsPerBurst | int | 1 |
Number of packets to send per burst (packets within a burst are sent at the same simulation time) |
| hostC.app.packetLength | int |
Length of packets to send |
|
| hostC.app.stopOperationExtraTime | double | -1s |
Extra time after lifecycle stop operation finished |
| hostC.app.stopOperationTimeout | double | 2s |
Timeout value for lifecycle stop operation |
| hostC.interfaceTable.displayStringTextFormat | string | "" |
Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information |
| hostC.interfaceTable.displayAddresses | bool | false |
Whether to display IP addresses on links |
| hostC.eth.bitrate | double | ||
| tap1.displayStringTextFormat | string | "" |
Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information |
| tap2.displayStringTextFormat | string | "" |
Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information |
| tap3.displayStringTextFormat | string | "" |
Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information |
| scenarioManager.displayStringTextFormat | string | "total %c changes, %l left\nnext at: %t" |
Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information |
| scenarioManager.script | xml | xml(" |
Source code
network HostsWithBus { submodules: hostA: EthernetHost2 { parameters: @display("p=72,80"); } hostB: EthernetHost2 { parameters: @display("p=334,80"); } hostC: EthernetHost2 { parameters: @display("p=334,80"); } tap1: WireJunction { parameters: @display("p=250,180"); } tap2: WireJunction { parameters: @display("p=250,280"); } tap3: WireJunction { parameters: @display("p=250,380"); } scenarioManager: ScenarioManager { parameters: script = default(xml("<empty/>")); @display("p=184,180"); } connections: tap1.port++ <--> DatarateChannel <--> hostA.ethg; tap2.port++ <--> DatarateChannel <--> hostB.ethg; tap3.port++ <--> DatarateChannel <--> hostC.ethg; tap1.port++ <--> DatarateChannel <--> tap2.port++; tap2.port++ <--> DatarateChannel <--> tap3.port++; }File: tests/networks/ethernet/network-bus.ned