advanced.ned 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. //
  2. // This program is free software: you can redistribute it and/or modify
  3. // it under the terms of the GNU Lesser General Public License as published by
  4. // the Free Software Foundation, either version 3 of the License, or
  5. // (at your option) any later version.
  6. //
  7. // This program is distributed in the hope that it will be useful,
  8. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. // GNU Lesser General Public License for more details.
  11. //
  12. // You should have received a copy of the GNU Lesser General Public License
  13. // along with this program. If not, see http://www.gnu.org/licenses/.
  14. //
  15. package inet.showcases.visualizer.advanced;
  16. import inet.networklayer.configurator.ipv4.IPv4NetworkConfigurator;
  17. import inet.node.ethernet.Eth100M;
  18. import inet.node.ethernet.Eth10G;
  19. import inet.node.ethernet.EtherSwitch;
  20. import inet.node.inet.Router;
  21. import inet.node.inet.StandardHost;
  22. import inet.physicallayer.ieee80211.packetlevel.Ieee80211ScalarRadioMedium;
  23. import inet.visualizer.integrated.IntegratedCanvasVisualizer;
  24. import inet.visualizer.integrated.IntegratedVisualizer;
  25. import inet.visualizer.networklayer.RoutingTableCanvasVisualizer;
  26. import inet.visualizer.networklayer.RoutingTableOsgVisualizer;
  27. network advanced
  28. {
  29. @display("bgb=846,526");
  30. submodules:
  31. router1: Router {
  32. @display("p=319.8125,375.0625");
  33. }
  34. router3: Router {
  35. @display("p=427.125,241.1875");
  36. }
  37. router2: Router {
  38. @display("p=530.1875,375.0625");
  39. }
  40. switch2: EtherSwitch {
  41. @display("p=643.875,374");
  42. }
  43. switch3: EtherSwitch {
  44. @display("p=427.125,167.875");
  45. }
  46. switch1: EtherSwitch {
  47. @display("p=210.375,374");
  48. }
  49. host4: StandardHost {
  50. @display("p=745.875,308.125");
  51. }
  52. host5: StandardHost {
  53. @display("p=745.875,434.5625");
  54. }
  55. host1: StandardHost {
  56. @display("p=365.5,78.625");
  57. }
  58. host2: StandardHost {
  59. @display("p=522.75,78.625");
  60. }
  61. host3: StandardHost {
  62. @display("p=574.8125,168.9375");
  63. }
  64. server: StandardHost {
  65. @display("p=110.5,375.0625;i=device/server");
  66. }
  67. configurator: IPv4NetworkConfigurator {
  68. @display("p=60,60");
  69. }
  70. visualizer1: IntegratedCanvasVisualizer {
  71. @display("p=60,120");
  72. }
  73. visualizer2: IntegratedCanvasVisualizer {
  74. @display("p=60,180");
  75. }
  76. connections:
  77. router1.ethg++ <--> Eth10G <--> router3.ethg++;
  78. router1.ethg++ <--> Eth10G <--> router2.ethg++;
  79. router3.ethg++ <--> Eth10G <--> router2.ethg++;
  80. router2.ethg++ <--> Eth100M <--> switch2.ethg++;
  81. router3.ethg++ <--> Eth100M <--> switch3.ethg++;
  82. switch1.ethg++ <--> Eth100M <--> router1.ethg++;
  83. switch3.ethg++ <--> Eth100M <--> host1.ethg++;
  84. switch3.ethg++ <--> Eth100M <--> host2.ethg++;
  85. switch3.ethg++ <--> Eth100M <--> host3.ethg++;
  86. switch2.ethg++ <--> Eth100M <--> host4.ethg++;
  87. switch2.ethg++ <--> Eth100M <--> host5.ethg++;
  88. switch1.ethg++ <--> Eth100M <--> server.ethg++;
  89. }
  90. network advanced2 extends advanced
  91. {
  92. submodules:
  93. visualizer11: IntegratedVisualizer {
  94. @display("p=58.4375,244.375");
  95. }
  96. visualizer22: IntegratedVisualizer {
  97. @display("p=54.1875,312.375");
  98. }
  99. }