PhysicallinkVisualizerShowcase.ned 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  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.physicallinkactivity;
  16. import inet.networklayer.configurator.ipv4.IPv4NetworkConfigurator;
  17. import inet.node.inet.AdhocHost;
  18. import inet.node.inet.WirelessHost;
  19. import inet.node.wireless.AccessPoint;
  20. import inet.physicallayer.ieee80211.packetlevel.Ieee80211ScalarRadioMedium;
  21. import inet.visualizer.integrated.IntegratedVisualizer;
  22. import inet.visualizer.physicallayer.PhysicalLinkVisualizer;
  23. //
  24. // TODO documentation
  25. //
  26. network PhysicalLinkVisualizerEnablingShowcase
  27. {
  28. @display("bgb=600,300");
  29. submodules:
  30. linkVisualizer: PhysicalLinkVisualizer {
  31. parameters:
  32. @display("p=100,50");
  33. }
  34. configurator: IPv4NetworkConfigurator {
  35. parameters:
  36. @display("p=100,150");
  37. }
  38. radioMedium: Ieee80211ScalarRadioMedium {
  39. parameters:
  40. @display("p=100,250");
  41. }
  42. source: AdhocHost {
  43. @display("p=250,150");
  44. }
  45. destination: AdhocHost {
  46. @display("p=500,150");
  47. }
  48. }
  49. //
  50. // TODO documentation
  51. //
  52. network PhysicalLinkVisualizerFilteringShowcase
  53. {
  54. @display("bgb=780,330");
  55. submodules:
  56. visualizer: IntegratedVisualizer {
  57. parameters:
  58. @display("p=100,50");
  59. }
  60. configurator: IPv4NetworkConfigurator {
  61. parameters:
  62. @display("p=100,150");
  63. }
  64. radioMedium: Ieee80211ScalarRadioMedium {
  65. parameters:
  66. @display("p=100,250");
  67. }
  68. source: WirelessHost {
  69. @display("p=648,92");
  70. }
  71. destination: WirelessHost {
  72. @display("p=268,150");
  73. }
  74. host1: WirelessHost {
  75. @display("p=648,216");
  76. }
  77. accessPoint: AccessPoint {
  78. @display("p=471,149");
  79. }
  80. }
  81. //
  82. // TODO documentation
  83. //
  84. network PhysicalLinkVisualizerMobileShowcase
  85. {
  86. @display("bgb=660,630");
  87. submodules:
  88. visualizer: IntegratedVisualizer {
  89. @display("p=100,50");
  90. }
  91. configurator: IPv4NetworkConfigurator {
  92. @display("p=100,150");
  93. }
  94. radioMedium: Ieee80211ScalarRadioMedium {
  95. @display("p=100,250");
  96. }
  97. host1: AdhocHost {
  98. @display("p=509.736,103.976");
  99. }
  100. host2: AdhocHost {
  101. @display("p=365.184,213.024");
  102. }
  103. host3: AdhocHost {
  104. @display("p=498.324,229.508");
  105. }
  106. host4: AdhocHost {
  107. @display("p=280.228,365.184");
  108. }
  109. host5: AdhocHost {
  110. @display("p=365.184,517.344");
  111. }
  112. host6: AdhocHost {
  113. @display("p=523.684,372.792");
  114. }
  115. host7: AdhocHost {
  116. @display("p=267.548,139.48");
  117. }
  118. }