ConfiguratorB.ned 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  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.tutorials.configurator;
  16. import inet.networklayer.configurator.ipv4.IPv4NetworkConfigurator;
  17. import inet.node.ethernet.Eth10M;
  18. import inet.node.ethernet.EtherSwitch;
  19. import inet.node.inet.Router;
  20. import inet.node.inet.StandardHost;
  21. import inet.visualizer.integrated.IntegratedCanvasVisualizer;
  22. network ConfiguratorB
  23. {
  24. @display("bgb=3225.915,1993.86");
  25. submodules:
  26. area1lan1host0: StandardHost {
  27. @display("p=492.195,413.82");
  28. }
  29. area1lan1host1: StandardHost {
  30. @display("p=492.195,147.345");
  31. }
  32. area1lan1host2: StandardHost {
  33. @display("p=865.26,147.345");
  34. }
  35. area1switch1: EtherSwitch {
  36. @display("p=865.26,410.685");
  37. }
  38. area2lan1host1: StandardHost {
  39. @display("p=1357.455,1840.245");
  40. }
  41. area2lan1host2: StandardHost {
  42. @display("p=946.77,1840.245");
  43. }
  44. area2lan1host3: StandardHost {
  45. @display("p=558.03,1840.245");
  46. }
  47. area2switch1: EtherSwitch {
  48. @display("p=1119.1951,1514.205");
  49. }
  50. area3lan1host1: StandardHost {
  51. @display("p=2868.5251,1583.175");
  52. }
  53. area3lan1host2: StandardHost {
  54. @display("p=2868.5251,1322.97");
  55. }
  56. area3lan1host3: StandardHost {
  57. @display("p=2868.5251,1078.4401");
  58. }
  59. area3switch1: EtherSwitch {
  60. @display("p=2385.735,1075.305");
  61. }
  62. area1lan2host1: StandardHost {
  63. @display("p=410.685,1097.25");
  64. }
  65. area1lan2host2: StandardHost {
  66. @display("p=410.685,1322.97");
  67. }
  68. area1lan2host3: StandardHost {
  69. @display("p=410.685,1583.175");
  70. }
  71. area1switch2: EtherSwitch {
  72. @display("p=865.26,1094.115");
  73. }
  74. area2lan2host1: StandardHost {
  75. @display("p=2555.025,1840.245");
  76. }
  77. area2lan2host2: StandardHost {
  78. @display("p=2153.745,1840.245");
  79. }
  80. area2lan2host3: StandardHost {
  81. @display("p=1743.06,1840.245");
  82. }
  83. area2switch2: EtherSwitch {
  84. @display("p=2094.18,1511.0701");
  85. }
  86. area3lan2host1: StandardHost {
  87. @display("p=2551.8901,137.94");
  88. }
  89. area3lan2host2: StandardHost {
  90. @display("p=2997.06,137.94");
  91. }
  92. area3lan2host3: StandardHost {
  93. @display("p=2997.06,354.255");
  94. }
  95. area3switch2: EtherSwitch {
  96. @display("p=2385.735,410.685");
  97. }
  98. area1router: Router {
  99. @display("p=1232.055,755.53503");
  100. }
  101. area2router: Router {
  102. @display("p=1620.795,1322.97");
  103. }
  104. area3router: Router {
  105. @display("p=2012.67,755.53503");
  106. }
  107. backbonerouter: Router {
  108. @display("p=1620.795,934.23;i=abstract/router2");
  109. }
  110. configurator: IPv4NetworkConfigurator {
  111. @display("p=150,100");
  112. }
  113. visualizer: IntegratedCanvasVisualizer {
  114. @display("p=150,250");
  115. }
  116. connections:
  117. area2lan1host1.ethg++ <--> Eth10M <--> area2switch1.ethg++;
  118. area2lan1host2.ethg++ <--> Eth10M <--> area2switch1.ethg++;
  119. area2lan1host3.ethg++ <--> Eth10M <--> area2switch1.ethg++;
  120. area1switch2.ethg++ <--> Eth10M <--> area1lan2host1.ethg++;
  121. area1lan2host2.ethg++ <--> Eth10M <--> area1switch2.ethg++;
  122. area1switch2.ethg++ <--> Eth10M <--> area1lan2host3.ethg++;
  123. area1switch1.ethg++ <--> Eth10M <--> area1lan1host0.ethg++;
  124. area1switch1.ethg++ <--> Eth10M <--> area1lan1host1.ethg++;
  125. area1switch1.ethg++ <--> Eth10M <--> area1lan1host2.ethg++;
  126. area1switch1.ethg++ <--> Eth10M <--> area1router.ethg++;
  127. area1switch2.ethg++ <--> Eth10M <--> area1router.ethg++;
  128. area2switch1.ethg++ <--> Eth10M <--> area2router.ethg++;
  129. area2router.ethg++ <--> Eth10M <--> area2switch2.ethg++;
  130. area2switch2.ethg++ <--> Eth10M <--> area2lan2host1.ethg++;
  131. area2switch2.ethg++ <--> Eth10M <--> area2lan2host2.ethg++;
  132. area2switch2.ethg++ <--> Eth10M <--> area2lan2host3.ethg++;
  133. area3switch1.ethg++ <--> Eth10M <--> area3lan1host1.ethg++;
  134. area3switch1.ethg++ <--> Eth10M <--> area3lan1host2.ethg++;
  135. area3switch1.ethg++ <--> Eth10M <--> area3lan1host3.ethg++;
  136. area3switch1.ethg++ <--> Eth10M <--> area3router.ethg++;
  137. area3router.ethg++ <--> Eth10M <--> area3switch2.ethg++;
  138. area3switch2.ethg++ <--> Eth10M <--> area3lan2host1.ethg++;
  139. area3switch2.ethg++ <--> Eth10M <--> area3lan2host2.ethg++;
  140. area3switch2.ethg++ <--> Eth10M <--> area3lan2host3.ethg++;
  141. area2router.ethg++ <--> Eth10M <--> backbonerouter.ethg++;
  142. area1router.ethg++ <--> Eth10M <--> backbonerouter.ethg++;
  143. backbonerouter.ethg++ <--> Eth10M <--> area3router.ethg++;
  144. }