TransportPathVisualizerShowcase.ned 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  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.transportpathactivity;
  16. import inet.networklayer.configurator.ipv4.IPv4NetworkConfigurator;
  17. import inet.node.ethernet.Eth100M;
  18. import inet.node.ethernet.EtherSwitch;
  19. import inet.node.inet.AdhocHost;
  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. import inet.visualizer.transportlayer.TransportRouteVisualizer;
  25. //
  26. // TODO documentation
  27. //
  28. network TransportPathVisualizerSimpleWiredShowcase
  29. {
  30. @display("bgb=500,250");
  31. submodules:
  32. pathVisualizer: TransportRouteVisualizer {
  33. @display("p=80,80");
  34. }
  35. configurator: IPv4NetworkConfigurator {
  36. @display("p=80,150");
  37. }
  38. source: StandardHost {
  39. @display("p=200,110");
  40. }
  41. destination: StandardHost {
  42. @display("p=400,110");
  43. }
  44. connections:
  45. source.ethg++ <--> Eth100M <--> destination.ethg++;
  46. }
  47. //
  48. // TODO documentation
  49. //
  50. network TransportPathVisualizerSimpleWirelessShowcase
  51. {
  52. @display("bgb=500,250");
  53. submodules:
  54. pathVisualizer: TransportRouteVisualizer {
  55. @display("p=80,50");
  56. }
  57. configurator: IPv4NetworkConfigurator {
  58. @display("p=80,120");
  59. }
  60. radioMedium: Ieee80211ScalarRadioMedium {
  61. @display("p=80,190");
  62. }
  63. source: AdhocHost {
  64. @display("p=200,120");
  65. }
  66. destination: AdhocHost {
  67. @display("p=400,120");
  68. }
  69. }
  70. //
  71. // TODO documentation
  72. //
  73. network TransportPathVisualizerFilteringShowcase
  74. {
  75. @display("bgb=1024,700");
  76. submodules:
  77. visualizer: IntegratedVisualizer {
  78. parameters:
  79. @display("p=80,50");
  80. }
  81. configurator: IPv4NetworkConfigurator {
  82. parameters:
  83. @display("p=80,140");
  84. }
  85. source1: StandardHost {
  86. @display("p=205.824,75.576004");
  87. }
  88. source2: StandardHost {
  89. @display("p=947.112,62.712");
  90. }
  91. destination1: StandardHost {
  92. @display("p=895.656,466.32");
  93. }
  94. destination2: StandardHost {
  95. @display("p=143.112,556.368");
  96. }
  97. host1: StandardHost {
  98. @display("p=356.976,75.576004");
  99. }
  100. host2: StandardHost {
  101. @display("p=947.112,205.824");
  102. }
  103. videoStreamServer: StandardHost {
  104. @display("p=868.32,598.176");
  105. }
  106. videoStreamClient: StandardHost {
  107. @display("p=78.792,427.728");
  108. }
  109. switch0: EtherSwitch {
  110. @display("p=268.536,173.664");
  111. }
  112. switch1: EtherSwitch {
  113. @display("p=805.60803,147.936");
  114. }
  115. switch2: EtherSwitch {
  116. @display("p=255.672,426.12");
  117. }
  118. switch3: EtherSwitch {
  119. @display("p=668.928,545.112");
  120. }
  121. router0: Router {
  122. @display("p=593.352,149.544");
  123. }
  124. router1: Router {
  125. @display("p=805.60803,307.128");
  126. }
  127. router2: Router {
  128. @display("p=371.448,308.736");
  129. }
  130. router3: Router {
  131. @display("p=405.216,508.128");
  132. }
  133. router4: Router {
  134. @display("p=593.352,389.136");
  135. }
  136. connections:
  137. router0.pppg++ <--> Eth100M <--> router4.pppg++;
  138. source1.ethg++ <--> Eth100M <--> switch0.ethg++;
  139. switch0.ethg++ <--> Eth100M <--> router0.ethg++;
  140. router3.ethg++ <--> Eth100M <--> switch3.ethg++;
  141. switch3.ethg++ <--> Eth100M <--> destination1.ethg++;
  142. router4.pppg++ <--> Eth100M <--> router1.pppg++;
  143. switch1.ethg++ <--> Eth100M <--> router1.ethg++;
  144. switch1.ethg++ <--> Eth100M <--> source2.ethg++;
  145. router2.ethg++ <--> Eth100M <--> switch2.ethg++;
  146. destination2.ethg++ <--> Eth100M <--> switch2.ethg++;
  147. router4.pppg++ <--> Eth100M <--> router2.pppg++;
  148. router4.pppg++ <--> Eth100M <--> router3.pppg++;
  149. router0.pppg++ <--> Eth100M <--> router2.pppg++;
  150. router1.pppg++ <--> Eth100M <--> router0.pppg++;
  151. switch0.ethg++ <--> Eth100M <--> host1.ethg++;
  152. switch1.ethg++ <--> Eth100M <--> host2.ethg++;
  153. switch3.ethg++ <--> Eth100M <--> videoStreamServer.ethg++;
  154. switch2.ethg++ <--> Eth100M <--> videoStreamClient.ethg++;
  155. router2.pppg++ <--> Eth100M <--> router3.pppg++;
  156. }