NED File showcases/visualizer/transportpathactivity/TransportPathVisualizerShowcase.ned

Name Type Description
TransportPathVisualizerSimpleWiredShowcase network

TODO documentation

TransportPathVisualizerSimpleWirelessShowcase network

TODO documentation

TransportPathVisualizerExtendedShowcase network

TODO documentation

TransportPathVisualizerServerClientsShowcase network

TODO documentation

Source code:

//
// 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 TransportPathVisualizerExtendedShowcase
{
    @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");
        }
        host3: StandardHost {
            @display("p=868.32,598.176");
        }
        host4: StandardHost {
            @display("p=78.792,427.728");
        }
        etherSwitch0: EtherSwitch {
            @display("p=268.536,173.664");
        }
        etherSwitch1: EtherSwitch {
            @display("p=805.60803,147.936");
        }
        etherSwitch2: EtherSwitch {
            @display("p=255.672,426.12");
        }
        etherSwitch3: 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 <--> etherSwitch0.ethg++;
        etherSwitch0.ethg++ <--> Eth100M <--> router0.ethg++;
        router3.ethg++ <--> Eth100M <--> etherSwitch3.ethg++;
        etherSwitch3.ethg++ <--> Eth100M <--> destination1.ethg++;
        router4.pppg++ <--> Eth100M <--> router1.pppg++;
        etherSwitch1.ethg++ <--> Eth100M <--> router1.ethg++;
        etherSwitch1.ethg++ <--> Eth100M <--> source2.ethg++;
        router2.ethg++ <--> Eth100M <--> etherSwitch2.ethg++;
        destination2.ethg++ <--> Eth100M <--> etherSwitch2.ethg++;
        router4.pppg++ <--> Eth100M <--> router2.pppg++;
        router4.pppg++ <--> Eth100M <--> router3.pppg++;
        router0.pppg++ <--> Eth100M <--> router2.pppg++;
        router1.pppg++ <--> Eth100M <--> router0.pppg++;
        etherSwitch0.ethg++ <--> Eth100M <--> host1.ethg++;
        etherSwitch1.ethg++ <--> Eth100M <--> host2.ethg++;
        etherSwitch3.ethg++ <--> Eth100M <--> host3.ethg++;
        etherSwitch2.ethg++ <--> Eth100M <--> host4.ethg++;
        router2.pppg++ <--> Eth100M <--> router3.pppg++;
}

//
// TODO documentation
//
network TransportPathVisualizerServerClientsShowcase
{
    @display("bgb=600,400");
    submodules:
        visualizer: IntegratedVisualizer {
            parameters:
                @display("p=80,120");
        }
        configurator: IPv4NetworkConfigurator {
            parameters:
                @display("p=80,50");
        }
        server: StandardHost {
            @display("p=158,228;i=device/server2");
        }
        host1: StandardHost {
            @display("p=545,58");
        }
        host2: StandardHost {
            @display("p=545,128");
        }
        admin1: StandardHost {
            @display("p=545,341");
        }
        admin2: StandardHost {
            @display("p=545,267");
        }
        switch1: EtherSwitch {
            @display("p=414,84");
        }
        switch2: EtherSwitch {
            @display("p=414,341");
        }
        router: Router {
            @display("p=296,228");
        }
    connections:
        switch1.ethg++ <--> Eth100M <--> host1.ethg++;
        switch1.ethg++ <--> Eth100M <--> host2.ethg++;
        switch2.ethg++ <--> Eth100M <--> admin1.ethg++;
        router.ethg++ <--> Eth100M <--> switch1.ethg++;
        router.ethg++ <--> Eth100M <--> switch2.ethg++;
        server.ethg++ <--> Eth100M <--> router.ethg++;
        switch2.ethg++ <--> Eth100M <--> admin2.ethg++;
}