InterfaceTableVisualizationShowcase.ned 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. package inet.showcases.visualizer.interfacetable;
  2. import inet.node.inet.AdhocHost;
  3. import inet.node.aodv.AODVRouter;
  4. import inet.node.ethernet.EtherSwitch;
  5. import inet.node.inet.Router;
  6. import inet.node.inet.WirelessHost;
  7. import inet.node.wireless.AccessPoint;
  8. import inet.physicallayer.ieee80211.packetlevel.Ieee80211ScalarRadioMedium;
  9. import inet.visualizer.integrated.IntegratedVisualizer;
  10. import inet.networklayer.configurator.ipv4.IPv4NetworkConfigurator;
  11. import inet.node.ethernet.Eth100M;
  12. import inet.node.inet.StandardHost;
  13. import inet.visualizer.linklayer.InterfaceTableVisualizer;
  14. network InterfaceTableVisualizationEnablingVisualizationShowcase
  15. {
  16. @display("bgb=400,400");
  17. submodules:
  18. hostA: StandardHost {
  19. @display("p=92,203");
  20. }
  21. hostB: StandardHost {
  22. @display("p=284,203");
  23. }
  24. visualizer: IntegratedVisualizer {
  25. @display("p=328,38");
  26. }
  27. configurator: IPv4NetworkConfigurator {
  28. @display("p=328,93");
  29. }
  30. connections:
  31. hostA.ethg++ <--> Eth100M <--> hostB.ethg++;
  32. }
  33. network InterfaceTableVisualizationAdvancedFeaturesShowcase
  34. {
  35. @display("bgb=732,417");
  36. submodules:
  37. host1: StandardHost {
  38. @display("p=79,128");
  39. }
  40. host2: StandardHost {
  41. @display("p=80,218");
  42. }
  43. switch: EtherSwitch {
  44. @display("p=196,181");
  45. }
  46. router: Router {
  47. @display("p=304,182");
  48. }
  49. accessPoint: AccessPoint {
  50. @display("p=439,181");
  51. }
  52. wirelessHost: WirelessHost {
  53. @display("p=459,80");
  54. }
  55. mobileHost: AdhocHost {
  56. @display("p=468,313");
  57. }
  58. configurator: IPv4NetworkConfigurator {
  59. @display("p=631,50");
  60. }
  61. visualizer: IntegratedVisualizer {
  62. @display("p=631,122");
  63. }
  64. radioMedium: Ieee80211ScalarRadioMedium {
  65. @display("p=630,182;b=11,5");
  66. }
  67. connections:
  68. host1.ethg++ <--> Eth100M <--> switch.ethg++;
  69. host2.ethg++ <--> Eth100M <--> switch.ethg++;
  70. switch.ethg++ <--> Eth100M <--> router.ethg++;
  71. router.ethg++ <--> Eth100M <--> accessPoint.ethg++;
  72. }