Net80211.ned.ftl 1010 B

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