DatalinkVisualizerShowcase.ned 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  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.datalinkactivity;
  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.AdhocHost;
  21. import inet.node.inet.StandardHost;
  22. import inet.physicallayer.ieee80211.packetlevel.Ieee80211ScalarRadioMedium;
  23. import inet.visualizer.integrated.IntegratedVisualizer;
  24. import inet.visualizer.linklayer.DataLinkVisualizer;
  25. //
  26. // TODO documentation
  27. //
  28. network DataLinkVisualizerEnablingWiredShowcase
  29. {
  30. @display("bgb=700,250");
  31. submodules:
  32. linkVisualizer: DataLinkVisualizer {
  33. parameters:
  34. @display("p=100,50");
  35. }
  36. configurator: IPv4NetworkConfigurator {
  37. parameters:
  38. @display("p=100,150");
  39. }
  40. wiredSource: StandardHost {
  41. @display("p=300,110");
  42. }
  43. wiredDestination: StandardHost {
  44. @display("p=600,110");
  45. }
  46. connections:
  47. wiredSource.ethg++ <--> Eth100M <--> wiredDestination.ethg++;
  48. }
  49. //
  50. // TODO documentation
  51. //
  52. network DataLinkVisualizerEnablingWirelessShowcase
  53. {
  54. @display("bgb=700,250");
  55. submodules:
  56. linkVisualizer: DataLinkVisualizer {
  57. parameters:
  58. @display("p=100,50");
  59. }
  60. configurator: IPv4NetworkConfigurator {
  61. parameters:
  62. @display("p=100,120");
  63. }
  64. radioMedium: Ieee80211ScalarRadioMedium {
  65. parameters:
  66. @display("p=100,190");
  67. }
  68. wirelessSource: AdhocHost {
  69. @display("p=300,110");
  70. }
  71. wirelessDestination: AdhocHost {
  72. @display("p=600,110");
  73. }
  74. }
  75. //
  76. // TODO documentation
  77. //
  78. network DataLinkVisualizerFilteringShowcase
  79. {
  80. @display("bgb=900,600");
  81. submodules:
  82. visualizer: IntegratedVisualizer {
  83. @display("p=80,50");
  84. }
  85. configurator: IPv4NetworkConfigurator {
  86. parameters:
  87. @display("p=80,120");
  88. }
  89. etherSwitch1: EtherSwitch {
  90. @display("p=376.896,169.12");
  91. }
  92. etherSwitch3: EtherSwitch {
  93. @display("p=723.592,200.528");
  94. }
  95. source1: StandardHost {
  96. @display("p=206.568,50.736");
  97. }
  98. etherSwitch4: EtherSwitch {
  99. @display("p=484.408,283.88");
  100. }
  101. destination1: StandardHost {
  102. @display("p=556.888,485.616");
  103. }
  104. destination2: StandardHost {
  105. @display("p=798.488,343.072");
  106. }
  107. source2: StandardHost {
  108. @display("p=173.952,227.104");
  109. }
  110. etherSwitch2: EtherSwitch {
  111. @display("p=329.784,428.84");
  112. }
  113. host1: StandardHost {
  114. @display("p=233.144,506.152");
  115. }
  116. host2: StandardHost {
  117. @display("p=822.648,135.296");
  118. }
  119. connections:
  120. etherSwitch1.ethg++ <--> Eth100M <--> source1.ethg++;
  121. etherSwitch1.ethg++ <--> Eth100M <--> etherSwitch4.ethg++;
  122. etherSwitch4.ethg++ <--> Eth100M <--> etherSwitch3.ethg++;
  123. etherSwitch1.ethg++ <--> Eth100M <--> source2.ethg++;
  124. etherSwitch3.ethg++ <--> Eth100M <--> destination2.ethg++;
  125. etherSwitch4.ethg++ <--> Eth100M <--> etherSwitch2.ethg++;
  126. etherSwitch2.ethg++ <--> Eth100M <--> destination1.ethg++;
  127. etherSwitch3.ethg++ <--> Eth100M <--> host2.ethg++;
  128. etherSwitch2.ethg++ <--> Eth100M <--> host1.ethg++;
  129. }
  130. //
  131. // TODO documentation
  132. //
  133. network DataLinkVisualizerMobileShowcase
  134. {
  135. @display("bgb=620,500");
  136. submodules:
  137. visualizer: IntegratedVisualizer {
  138. @display("p=70,50");
  139. }
  140. configurator: IPv4NetworkConfigurator {
  141. @display("p=70,150");
  142. }
  143. radioMedium: Ieee80211ScalarRadioMedium {
  144. @display("p=70,250");
  145. }
  146. // RREQVisualizer: DataLinkVisualizer {
  147. // @display("p=70,350");
  148. // }
  149. // RREPVisualizer: DataLinkVisualizer {
  150. // @display("p=70,450");
  151. // }
  152. destination: AODVRouter {
  153. @display("p=512.272,249.796");
  154. }
  155. source: AODVRouter {
  156. @display("p=187.664,207.952");
  157. }
  158. aodvRouter1: AODVRouter {
  159. @display("p=201.612,311.928");
  160. }
  161. aodvRouter2: AODVRouter {
  162. @display("p=465.356,158.5");
  163. }
  164. aodvRouter3: AODVRouter {
  165. @display("p=426.048,311.928");
  166. }
  167. aodvRouter4: AODVRouter {
  168. @display("p=400.688,88.76");
  169. }
  170. aodvRouter5: AODVRouter {
  171. @display("p=333.484,177.52");
  172. }
  173. aodvRouter6: AODVRouter {
  174. @display("p=323.34,262.476");
  175. }
  176. aodvRouter7: AODVRouter {
  177. @display("p=265.012,109.048");
  178. }
  179. }