PowerConsumptionShowcase.ned 1018 B

12345678910111213141516171819202122232425262728293031323334
  1. package inet.showcases.wireless.power;
  2. import inet.common.lifecycle.LifecycleController;
  3. import inet.networklayer.configurator.ipv4.IPv4NetworkConfigurator;
  4. import inet.node.inet.AdhocHost;
  5. import inet.physicallayer.ieee80211.packetlevel.Ieee80211ScalarRadioMedium;
  6. import inet.visualizer.integrated.IntegratedCanvasVisualizer;
  7. network PowerConsumptionShowcase
  8. {
  9. parameters:
  10. int numHost;
  11. submodules:
  12. visualizer: IntegratedCanvasVisualizer {
  13. parameters:
  14. @display("p=100,100");
  15. }
  16. configurator: IPv4NetworkConfigurator {
  17. parameters:
  18. @display("p=100,200");
  19. }
  20. radioMedium: Ieee80211ScalarRadioMedium {
  21. parameters:
  22. @display("p=100,300");
  23. }
  24. lifecycleController: LifecycleController {
  25. parameters:
  26. @display("p=100,400");
  27. }
  28. host[numHost]: AdhocHost {
  29. parameters:
  30. @display("p=150,300");
  31. }
  32. }