ConfiguratorE.ned 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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.node.inet.WirelessHost;
  22. import inet.node.wireless.AccessPoint;
  23. import inet.physicallayer.ieee80211.packetlevel.Ieee80211ScalarRadioMedium;
  24. import inet.visualizer.integrated.IntegratedCanvasVisualizer;
  25. network ConfiguratorE
  26. {
  27. @display("bgb=1426.212,959.112");
  28. submodules:
  29. area1router: Router {
  30. @display("p=519.75,535.8375");
  31. }
  32. area1host1: WirelessHost {
  33. @display("p=208.008,369.792");
  34. }
  35. area1host3: WirelessHost {
  36. @display("p=404.6625,506.1375");
  37. }
  38. area1host2: WirelessHost {
  39. @display("p=379.422,369.792");
  40. }
  41. area3host3: StandardHost {
  42. @display("p=973,770");
  43. }
  44. area3host2: StandardHost {
  45. @display("p=780,859");
  46. }
  47. area3host1: StandardHost {
  48. @display("p=599,770");
  49. }
  50. area3router: Router {
  51. @display("p=780.8625,535.8375");
  52. }
  53. area3Switch: EtherSwitch {
  54. @display("p=805.6125,665.775");
  55. }
  56. configurator: IPv4NetworkConfigurator {
  57. @display("p=100,50");
  58. }
  59. radioMedium: Ieee80211ScalarRadioMedium {
  60. @display("p=100,150");
  61. }
  62. visualizer: IntegratedCanvasVisualizer {
  63. @display("p=100,250");
  64. }
  65. area2router: Router {
  66. @display("p=657.1125,356.4");
  67. }
  68. area2AP: AccessPoint {
  69. @display("p=763.53754,280.9125");
  70. }
  71. area2host1: WirelessHost {
  72. @display("p=855.144,175.26599");
  73. }
  74. area2host2: WirelessHost {
  75. @display("p=934.11,281.19598");
  76. }
  77. area2host3: WirelessHost {
  78. @display("p=855.144,390.978");
  79. }
  80. connections:
  81. area3host1.ethg++ <--> Eth10M <--> area3Switch.ethg++;
  82. area3host2.ethg++ <--> Eth10M <--> area3Switch.ethg++;
  83. area3Switch.ethg++ <--> Eth10M <--> area3host3.ethg++;
  84. area3Switch.ethg++ <--> Eth10M <--> area3router.ethg++;
  85. area3router.ethg++ <--> Eth10M <--> area1router.ethg++;
  86. area1router.ethg++ <--> Eth10M <--> area1host3.ethg++;
  87. area1router.ethg++ <--> Eth10M <--> area2router.ethg++;
  88. area2router.ethg++ <--> Eth10M <--> area3router.ethg++;
  89. area2router.ethg++ <--> Eth10M <--> area2AP.ethg++;
  90. }