NetIdealRadios.ned 710 B

1234567891011121314151617181920212223242526
  1. import inet.networklayer.configurator.ipv4.IPv4NetworkConfigurator;
  2. import inet.node.inet.AdhocHost;
  3. import inet.physicallayer.idealradio.IdealRadioMedium;
  4. network NetIdealRadios
  5. {
  6. parameters:
  7. int numHosts;
  8. @display("bgb=600,400");
  9. submodules:
  10. host[numHosts]: AdhocHost {
  11. parameters:
  12. @display("r=,,#707070;p=250,58");
  13. }
  14. radioMedium: IdealRadioMedium {
  15. parameters:
  16. @display("p=60,50");
  17. }
  18. configurator: IPv4NetworkConfigurator {
  19. config = xml("<config><interface hosts='*' address='192.168.x.x' netmask='255.255.0.0'/></config>");
  20. @display("p=140,50");
  21. }
  22. }