StylingShowcase.ned 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  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.styling;
  16. import inet.node.ethernet.Eth100M;
  17. import inet.node.inet.WirelessHost;
  18. import inet.networklayer.configurator.ipv4.IPv4NetworkConfigurator;
  19. import inet.node.ethernet.Eth10M;
  20. import inet.node.inet.AdhocHost;
  21. import inet.node.inet.StandardHost;
  22. import inet.node.wireless.AccessPoint;
  23. import inet.physicallayer.ieee80211.packetlevel.Ieee80211RadioMedium;
  24. import inet.physicallayer.ieee80211.packetlevel.Ieee80211ScalarRadioMedium;
  25. import inet.visualizer.integrated.IntegratedVisualizer;
  26. //
  27. // TODO documentation
  28. //
  29. network StylingShowcase
  30. {
  31. @display("bgb=600,250");
  32. submodules:
  33. host1: AdhocHost {
  34. @display("p=205,150");
  35. }
  36. host2: AdhocHost {
  37. @display("p=465,150");
  38. }
  39. visualizer: IntegratedVisualizer {
  40. @display("p=50,50");
  41. }
  42. configurator: IPv4NetworkConfigurator {
  43. @display("p=50,100");
  44. }
  45. radioMedium: Ieee80211ScalarRadioMedium {
  46. @display("p=50,150");
  47. }
  48. }
  49. //
  50. // TODO documentation
  51. //
  52. network AnnotationShowcase
  53. {
  54. @display("bgb=600,250");
  55. submodules:
  56. host1: WirelessHost {
  57. @display("p=205,150");
  58. }
  59. host2: WirelessHost {
  60. @display("p=465,150");
  61. }
  62. visualizer: IntegratedVisualizer {
  63. @display("p=50,50");
  64. }
  65. configurator: IPv4NetworkConfigurator {
  66. @display("p=50,100");
  67. }
  68. radioMedium: Ieee80211ScalarRadioMedium {
  69. @display("p=50,150");
  70. }
  71. accessPoint: AccessPoint {
  72. @display("p=329,67");
  73. }
  74. }
  75. //
  76. // TODO documentation
  77. //
  78. network TestShowcase
  79. {
  80. @display("bgb=600,250");
  81. submodules:
  82. host1: WirelessHost {
  83. @display("p=200,143");
  84. }
  85. host2: WirelessHost {
  86. @display("p=325,143");
  87. }
  88. visualizer: IntegratedVisualizer {
  89. @display("p=50,50");
  90. }
  91. configurator: IPv4NetworkConfigurator {
  92. @display("p=50,100");
  93. }
  94. radioMedium: Ieee80211ScalarRadioMedium {
  95. @display("p=50,150");
  96. }
  97. accessPoint1: AccessPoint {
  98. @display("p=200,49");
  99. }
  100. accessPoint2: AccessPoint {
  101. @display("p=325,49");
  102. }
  103. accessPoint3: AccessPoint {
  104. @display("p=458,49");
  105. }
  106. host3: WirelessHost {
  107. @display("p=458,143");
  108. }
  109. standardHost: StandardHost {
  110. @display("p=243,208");
  111. }
  112. standardHost1: StandardHost {
  113. @display("p=530,208");
  114. }
  115. connections:
  116. standardHost.ethg++ <--> Eth100M <--> standardHost1.ethg++;
  117. }