TransportConnectionVisualizationShowcase.ned 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. package inet.showcases.visualizer.transportconnection;
  2. import inet.networklayer.configurator.ipv4.IPv4NetworkConfigurator;
  3. import inet.node.ethernet.Eth100M;
  4. import inet.node.ethernet.EtherSwitch;
  5. import inet.node.inet.Router;
  6. import inet.node.inet.StandardHost;
  7. import inet.node.inet.WirelessHost;
  8. import inet.visualizer.integrated.IntegratedVisualizer;
  9. network TransportConnectionVisualizationEnablingShowcase
  10. {
  11. @display("bgb=596,373");
  12. submodules:
  13. host1: StandardHost {
  14. @display("p=78,133");
  15. }
  16. host2: StandardHost {
  17. @display("p=487,133");
  18. }
  19. configurator: IPv4NetworkConfigurator {
  20. @display("p=109,290");
  21. }
  22. visualizer: IntegratedVisualizer {
  23. @display("p=207,290");
  24. }
  25. connections:
  26. host1.ethg++ <--> Eth100M <--> host2.ethg++;
  27. }
  28. network TransportConnectionVisualizationMultipleConnectionsShowcase
  29. {
  30. @display("bgb=596,421");
  31. submodules:
  32. host1: StandardHost {
  33. @display("p=59,103");
  34. }
  35. host2: StandardHost {
  36. @display("p=59,329");
  37. }
  38. switch: EtherSwitch {
  39. @display("p=199,213");
  40. }
  41. router: Router {
  42. @display("p=299,214");
  43. }
  44. server: StandardHost {
  45. @display("p=410,214;i=device/server");
  46. }
  47. configurator: IPv4NetworkConfigurator {
  48. @display("p=531,53");
  49. }
  50. visualizer: IntegratedVisualizer {
  51. @display("p=531,119");
  52. }
  53. connections:
  54. host1.ethg++ <--> Eth100M <--> switch.ethg++;
  55. host2.ethg++ <--> Eth100M <--> switch.ethg++;
  56. switch.ethg++ <--> Eth100M <--> router.ethg++;
  57. router.ethg++ <--> Eth100M <--> server.ethg++;
  58. }
  59. network Complexer
  60. {
  61. @display("bgb=596,421");
  62. submodules:
  63. host1: StandardHost {
  64. @display("p=59,103");
  65. }
  66. host2: StandardHost {
  67. @display("p=59,329");
  68. }
  69. switch: EtherSwitch {
  70. @display("p=199,213");
  71. }
  72. router: Router {
  73. @display("p=299,214");
  74. }
  75. server: StandardHost {
  76. @display("p=410,214;i=device/server");
  77. }
  78. configurator: IPv4NetworkConfigurator {
  79. @display("p=531,53");
  80. }
  81. visualizer: IntegratedVisualizer {
  82. @display("p=531,119");
  83. }
  84. terminalHost: StandardHost {
  85. @display("p=362,88;i=device/terminal");
  86. }
  87. connections:
  88. host1.ethg++ <--> Eth100M <--> switch.ethg++;
  89. host2.ethg++ <--> Eth100M <--> switch.ethg++;
  90. switch.ethg++ <--> Eth100M <--> router.ethg++;
  91. router.ethg++ <--> Eth100M <--> server.ethg++;
  92. terminalHost.ethg++ <--> Eth100M <--> server.ethg++;
  93. }