123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162 |
- //
- // This program is free software: you can redistribute it and/or modify
- // it under the terms of the GNU Lesser General Public License as published by
- // the Free Software Foundation, either version 3 of the License, or
- // (at your option) any later version.
- //
- // This program is distributed in the hope that it will be useful,
- // but WITHOUT ANY WARRANTY; without even the implied warranty of
- // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- // GNU Lesser General Public License for more details.
- //
- // You should have received a copy of the GNU Lesser General Public License
- // along with this program. If not, see http://www.gnu.org/licenses/.
- //
- package inet.showcases.visualizer.transportpathactivity;
- import inet.networklayer.configurator.ipv4.IPv4NetworkConfigurator;
- import inet.node.ethernet.Eth100M;
- import inet.node.ethernet.EtherSwitch;
- import inet.node.inet.AdhocHost;
- import inet.node.inet.Router;
- import inet.node.inet.StandardHost;
- import inet.physicallayer.ieee80211.packetlevel.Ieee80211ScalarRadioMedium;
- import inet.visualizer.integrated.IntegratedVisualizer;
- import inet.visualizer.transportlayer.TransportRouteVisualizer;
- //
- // TODO documentation
- //
- network TransportPathVisualizerSimpleWiredShowcase
- {
- @display("bgb=500,250");
- submodules:
- pathVisualizer: TransportRouteVisualizer {
- @display("p=80,80");
- }
- configurator: IPv4NetworkConfigurator {
- @display("p=80,150");
- }
- source: StandardHost {
- @display("p=200,110");
- }
- destination: StandardHost {
- @display("p=400,110");
- }
- connections:
- source.ethg++ <--> Eth100M <--> destination.ethg++;
- }
- //
- // TODO documentation
- //
- network TransportPathVisualizerSimpleWirelessShowcase
- {
- @display("bgb=500,250");
- submodules:
- pathVisualizer: TransportRouteVisualizer {
- @display("p=80,50");
- }
- configurator: IPv4NetworkConfigurator {
- @display("p=80,120");
- }
- radioMedium: Ieee80211ScalarRadioMedium {
- @display("p=80,190");
- }
- source: AdhocHost {
- @display("p=200,120");
- }
- destination: AdhocHost {
- @display("p=400,120");
- }
- }
- //
- // TODO documentation
- //
- network TransportPathVisualizerFilteringShowcase
- {
- @display("bgb=1024,700");
- submodules:
- visualizer: IntegratedVisualizer {
- parameters:
- @display("p=80,50");
- }
- configurator: IPv4NetworkConfigurator {
- parameters:
- @display("p=80,140");
- }
- source1: StandardHost {
- @display("p=205.824,75.576004");
- }
- source2: StandardHost {
- @display("p=947.112,62.712");
- }
- destination1: StandardHost {
- @display("p=895.656,466.32");
- }
- destination2: StandardHost {
- @display("p=143.112,556.368");
- }
- host1: StandardHost {
- @display("p=356.976,75.576004");
- }
- host2: StandardHost {
- @display("p=947.112,205.824");
- }
- videoStreamServer: StandardHost {
- @display("p=868.32,598.176");
- }
- videoStreamClient: StandardHost {
- @display("p=78.792,427.728");
- }
- switch0: EtherSwitch {
- @display("p=268.536,173.664");
- }
- switch1: EtherSwitch {
- @display("p=805.60803,147.936");
- }
- switch2: EtherSwitch {
- @display("p=255.672,426.12");
- }
- switch3: EtherSwitch {
- @display("p=668.928,545.112");
- }
- router0: Router {
- @display("p=593.352,149.544");
- }
- router1: Router {
- @display("p=805.60803,307.128");
- }
- router2: Router {
- @display("p=371.448,308.736");
- }
- router3: Router {
- @display("p=405.216,508.128");
- }
- router4: Router {
- @display("p=593.352,389.136");
- }
- connections:
- router0.pppg++ <--> Eth100M <--> router4.pppg++;
- source1.ethg++ <--> Eth100M <--> switch0.ethg++;
- switch0.ethg++ <--> Eth100M <--> router0.ethg++;
- router3.ethg++ <--> Eth100M <--> switch3.ethg++;
- switch3.ethg++ <--> Eth100M <--> destination1.ethg++;
- router4.pppg++ <--> Eth100M <--> router1.pppg++;
- switch1.ethg++ <--> Eth100M <--> router1.ethg++;
- switch1.ethg++ <--> Eth100M <--> source2.ethg++;
- router2.ethg++ <--> Eth100M <--> switch2.ethg++;
- destination2.ethg++ <--> Eth100M <--> switch2.ethg++;
- router4.pppg++ <--> Eth100M <--> router2.pppg++;
- router4.pppg++ <--> Eth100M <--> router3.pppg++;
- router0.pppg++ <--> Eth100M <--> router2.pppg++;
- router1.pppg++ <--> Eth100M <--> router0.pppg++;
- switch0.ethg++ <--> Eth100M <--> host1.ethg++;
- switch1.ethg++ <--> Eth100M <--> host2.ethg++;
- switch3.ethg++ <--> Eth100M <--> videoStreamServer.ethg++;
- switch2.ethg++ <--> Eth100M <--> videoStreamClient.ethg++;
- router2.pppg++ <--> Eth100M <--> router3.pppg++;
- }
|