FilteringShowcase.ned 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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.filtering;
  16. import inet.networklayer.configurator.ipv4.IPv4NetworkConfigurator;
  17. import inet.node.ethernet.Eth100M;
  18. import inet.node.inet.AdhocHost;
  19. import inet.node.inet.Router;
  20. import inet.node.inet.StandardHost;
  21. import inet.node.inet.WirelessHost;
  22. import inet.node.wireless.AccessPoint;
  23. import inet.physicallayer.ieee80211.packetlevel.Ieee80211ScalarRadioMedium;
  24. import inet.visualizer.integrated.IntegratedVisualizer;
  25. network FilteringShowcase
  26. {
  27. @display("bgb=1357.62,798.49005");
  28. submodules:
  29. configurator: IPv4NetworkConfigurator {
  30. @display("p=57,43");
  31. }
  32. visualizer: IntegratedVisualizer {
  33. @display("p=57,108");
  34. }
  35. radioMedium: Ieee80211ScalarRadioMedium {
  36. @display("p=57,175");
  37. }
  38. router1: Router {
  39. @display("p=510,560");
  40. }
  41. router2: Router {
  42. @display("p=868,560");
  43. }
  44. router3: Router {
  45. @display("p=704,350");
  46. }
  47. AP2: AccessPoint {
  48. @display("p=1074,558");
  49. }
  50. AP3: AccessPoint {
  51. @display("p=826,192");
  52. }
  53. AP1: AccessPoint {
  54. @display("p=286,558");
  55. }
  56. host1: StandardHost {
  57. @display("p=150,484");
  58. }
  59. host2: StandardHost {
  60. @display("p=112,628");
  61. }
  62. host6: StandardHost {
  63. @display("p=1226,492");
  64. }
  65. host9: WirelessHost {
  66. @display("p=668,134");
  67. }
  68. host7: WirelessHost {
  69. @display("p=996,272");
  70. }
  71. host8: WirelessHost {
  72. @display("p=978,110");
  73. }
  74. host5: WirelessHost {
  75. @display("p=1210,666");
  76. }
  77. host4: WirelessHost {
  78. @display("p=1002,658");
  79. }
  80. host3: WirelessHost {
  81. @display("p=380,666");
  82. }
  83. connections:
  84. router2.ethg++ <--> Eth100M <--> AP2.ethg++;
  85. router1.ethg++ <--> Eth100M <--> router2.ethg++;
  86. AP1.ethg++ <--> Eth100M <--> router1.ethg++;
  87. router1.ethg++ <--> Eth100M <--> router3.ethg++;
  88. router3.ethg++ <--> Eth100M <--> router2.ethg++;
  89. router3.ethg++ <--> Eth100M <--> AP3.ethg++;
  90. AP2.ethg++ <--> Eth100M <--> host6.ethg++;
  91. host2.ethg++ <--> Eth100M <--> AP1.ethg++;
  92. host1.ethg++ <--> Eth100M <--> AP1.ethg++;
  93. }