StatisticVisualizationExample.ned 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. package inet.examples.visualization.statistic;
  2. import inet.networklayer.configurator.ipv4.IPv4NetworkConfigurator;
  3. import inet.node.inet.AdhocHost;
  4. import inet.physicallayer.ieee80211.packetlevel.Ieee80211ScalarRadioMedium;
  5. import inet.visualizer.integrated.IntegratedVisualizer;
  6. network StatisticVisualizationExample
  7. {
  8. parameters:
  9. @display("bgb=1000,1000");
  10. @figure[description](type=text; pos=30,30; font=Arial,24; text="Demonstrates how to display a statistic for network nodes.\nSource nodes move around and ping destination node.\nRound trip time is displayed to the right of source nodes.");
  11. submodules:
  12. visualizer: IntegratedVisualizer {
  13. parameters:
  14. @display("p=900,50");
  15. }
  16. configurator: IPv4NetworkConfigurator {
  17. parameters:
  18. @display("p=900,150");
  19. }
  20. radioMedium: Ieee80211ScalarRadioMedium {
  21. parameters:
  22. @display("p=900,250");
  23. }
  24. source[3]: AdhocHost {
  25. parameters:
  26. @display("p=250,200");
  27. }
  28. destination: AdhocHost {
  29. parameters:
  30. @display("p=500,500");
  31. }
  32. }