DataLinkVisualizationExample.ned 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. package inet.examples.visualization.datalink;
  2. import inet.networklayer.configurator.ipv4.IPv4NetworkConfigurator;
  3. import inet.node.dymo.DYMORouter;
  4. import inet.physicallayer.ieee80211.packetlevel.Ieee80211ScalarRadioMedium;
  5. import inet.visualizer.integrated.IntegratedVisualizer;
  6. network DataLinkVisualizationExample
  7. {
  8. parameters:
  9. @figure[description](type=text; pos=300,10; font=Arial,20; text="Displaying dynamically changing active links in a wireless mobile network.\nThe source node pings the destination node every 1 second.\nActive links are eventually displayed as arrows, they fade out over time.\nActive links change as nodes move around and communicate.");
  10. submodules:
  11. visualizer: IntegratedVisualizer {
  12. parameters:
  13. @display("p=100,50;is=n");
  14. }
  15. configurator: IPv4NetworkConfigurator {
  16. parameters:
  17. @display("p=100,150");
  18. }
  19. radioMedium: Ieee80211ScalarRadioMedium {
  20. parameters:
  21. @display("p=100,250");
  22. }
  23. source: DYMORouter {
  24. parameters:
  25. @display("p=100,900");
  26. }
  27. destination: DYMORouter {
  28. parameters:
  29. @display("p=900,300");
  30. }
  31. node[20]: DYMORouter {
  32. parameters:
  33. @display("r=,,#707070");
  34. }
  35. }