RoutingTableVisualizationShowcase.ned 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  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.routingtable;
  16. import inet.networklayer.configurator.ipv4.IPv4NetworkConfigurator;
  17. import inet.node.aodv.AODVRouter;
  18. import inet.node.ethernet.Eth100M;
  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.IntegratedVisualizer;
  24. network RoutingTableVisualizationDisplayingAllShowcase
  25. {
  26. @display("bgb=822,636");
  27. submodules:
  28. hostA: StandardHost {
  29. @display("p=160,363.52");
  30. }
  31. hostB: StandardHost {
  32. @display("p=510.72,247.04");
  33. }
  34. visualizer: IntegratedVisualizer {
  35. @display("p=701.44,168.96");
  36. }
  37. configurator: IPv4NetworkConfigurator {
  38. @display("p=701.44,81.92");
  39. }
  40. router: Router {
  41. @display("p=359.68,363.52");
  42. }
  43. connections:
  44. hostA.ethg++ <--> Eth100M <--> router.ethg++;
  45. router.ethg++ <--> Eth100M <--> hostB.ethg++;
  46. }
  47. network RoutingTableVisualizationFilteringShowcase
  48. {
  49. @display("bgb=822,636");
  50. submodules:
  51. host1: StandardHost {
  52. @display("p=136.96,192");
  53. }
  54. host2: StandardHost {
  55. @display("p=136.96,382.72");
  56. }
  57. host3: StandardHost {
  58. @display("p=634.88,192");
  59. }
  60. host4: StandardHost {
  61. @display("p=634.88,382.72");
  62. }
  63. switch: EtherSwitch {
  64. @display("p=299.52,302.08");
  65. }
  66. router: Router {
  67. @display("p=476.16,302.08");
  68. }
  69. visualizer: IntegratedVisualizer {
  70. @display("p=759.04,51.2");
  71. }
  72. configurator: IPv4NetworkConfigurator {
  73. @display("p=759.04,124.16");
  74. }
  75. connections:
  76. host1.ethg++ <--> Eth100M <--> switch.ethg++;
  77. host2.ethg++ <--> Eth100M <--> switch.ethg++;
  78. switch.ethg++ <--> Eth100M <--> router.ethg++;
  79. router.ethg++ <--> Eth100M <--> host3.ethg++;
  80. router.ethg++ <--> Eth100M <--> host4.ethg++;
  81. }
  82. network RoutingTableVisualizationDynamicShowcase
  83. {
  84. @display("bgb=822,636");
  85. submodules:
  86. sourceHost: AODVRouter {
  87. @display("p=120,57");
  88. }
  89. host1: AODVRouter {
  90. @display("p=119.04,148.48");
  91. }
  92. host2: AODVRouter {
  93. @display("p=119.04,241.92");
  94. }
  95. host3: AODVRouter {
  96. @display("p=119.04,341.76");
  97. }
  98. host4: AODVRouter {
  99. @display("p=119.04,451.84");
  100. }
  101. host5: AODVRouter {
  102. @display("p=119.04,554.24");
  103. }
  104. destinationHost: AODVRouter {
  105. @display("p=272.64,56.32");
  106. }
  107. configurator: IPv4NetworkConfigurator {
  108. @display("p=556,101");
  109. }
  110. visualizer: IntegratedVisualizer {
  111. @display("p=556,179");
  112. }
  113. radioMedium: Ieee80211ScalarRadioMedium {
  114. @display("p=560,255");
  115. }
  116. }