ConfiguratorC.ned 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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.node.ethernet.Eth100M;
  17. import inet.node.ethernet.Eth10M;
  18. import inet.node.inet.StandardHost;
  19. import inet.node.inet.WirelessHost;
  20. import inet.node.wireless.AccessPoint;
  21. import inet.physicallayer.ieee80211.packetlevel.Ieee80211ScalarRadioMedium;
  22. import inet.visualizer.integrated.IntegratedCanvasVisualizer;
  23. channel Eth100MLong extends Eth100M
  24. {
  25. length = 100m;
  26. }
  27. network ConfiguratorC extends ConfiguratorB
  28. {
  29. submodules:
  30. area1AP: AccessPoint {
  31. @display("p=611.64716,928.3376");
  32. }
  33. area3AP: AccessPoint {
  34. @display("p=2552.152,881.76544");
  35. }
  36. area1lan3host1: WirelessHost {
  37. @display("p=211.3514,585.5005");
  38. }
  39. area1lan3host2: WirelessHost {
  40. @display("p=211.3514,754.0104");
  41. }
  42. area1lan3host3: WirelessHost {
  43. @display("p=211.3514,911.0958");
  44. }
  45. area3lan3host1: WirelessHost {
  46. @display("p=2825.3418,551.44696");
  47. }
  48. area3lan3host2: WirelessHost {
  49. @display("p=2936.0706,725.44934");
  50. }
  51. area3lan3host3: WirelessHost {
  52. @display("p=2824.6829,885.3909");
  53. }
  54. radioMedium: Ieee80211ScalarRadioMedium {
  55. @display("p=150,400");
  56. }
  57. connections:
  58. area1router.ethg++ <--> Eth10M <--> area1AP.ethg++;
  59. area3router.ethg++ <--> Eth10M <--> area3AP.ethg++;
  60. }