Lan80211.ned.ftl 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <@setoutput path=targetFileName?default("")/>
  2. ${bannerComment}
  3. <#if nedPackageName!="">
  4. package ${nedPackageName};
  5. </#if>
  6. // numOfHosts: ${numOfHosts}
  7. import inet.networklayer.autorouting.ipv4.IPv4NetworkConfigurator;
  8. import inet.nodes.inet.WirelessHost;
  9. import inet.nodes.wireless.AccessPoint;
  10. import inet.world.radio.ChannelControl;
  11. network ${targetTypeName}
  12. {
  13. parameters:
  14. <#if parametric>
  15. int numOfHosts;
  16. </#if>
  17. submodules:
  18. <#if parametric>
  19. host[numOfHosts]: WirelessHost
  20. {
  21. @display("r=,,#707070");
  22. }
  23. <#else>
  24. <#list 0..numOfHosts?number-1 as i>
  25. host${i}: WirelessHost
  26. {
  27. @display("r=,,#707070");
  28. }
  29. </#list>
  30. </#if>
  31. ap: AccessPoint
  32. {
  33. @display("p=213,174;r=,,#707070");
  34. }
  35. channelControl: ChannelControl
  36. {
  37. numChannels = 2;
  38. @display("p=61,46");
  39. }
  40. configurator: IPv4NetworkConfigurator
  41. {
  42. @display("p=140,50");
  43. }
  44. }