dos03.json 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. {
  2. devices:[
  3. {
  4. id:"Alice",
  5. image: "macbook",
  6. ports:1,
  7. x:0.25,
  8. y:0.2,
  9. player:true
  10. },
  11. {
  12. id:"Barbara",
  13. image: "iphone-1",
  14. ports:1,
  15. x:0.25,
  16. y:0.4,
  17. script: deviceScripts.ping
  18. },
  19. {
  20. id:"Carol",
  21. image: "macbook",
  22. ports:1,
  23. x:0.25,
  24. y:0.6,
  25. script: deviceScripts.ping
  26. },
  27. {
  28. id:"Darcy",
  29. ports:1,
  30. x:0.25,
  31. y:0.8,
  32. script: deviceScripts.ping
  33. },
  34. {
  35. id:"Google",
  36. image: "server",
  37. ports:1,
  38. x:0.8,
  39. y:0.5,
  40. capacity:2
  41. },
  42. {
  43. id:"Router",
  44. image: "router",
  45. ports:5,
  46. x:0.5,
  47. y:0.5,
  48. script: deviceScripts.broadcast,
  49. rules:[
  50. {dstip:"Alice",portNum:0},
  51. {dstip:"Barbara",portNum:1},
  52. {dstip:"Carol",portNum:2},
  53. {dstip:"Darcy",portNum:3},
  54. {dstip:"Google",portNum:4}
  55. ]
  56. }
  57. ],
  58. links:[
  59. {
  60. src:"Alice", srcport:0,
  61. dst:"Router", dstport:0
  62. },
  63. {
  64. src:"Barbara", srcport:0,
  65. dst:"Router", dstport:1
  66. },
  67. {
  68. src:"Carol", srcport:0,
  69. dst:"Router", dstport:2
  70. },
  71. {
  72. src:"Darcy", srcport:0,
  73. dst:"Router", dstport:3
  74. },
  75. {
  76. src:"Google", srcport:0,
  77. dst:"Router", dstport:4
  78. }
  79. ],
  80. timeline:[],
  81. triggers:[
  82. {
  83. type:"flood",
  84. device:"Google"
  85. }
  86. ],
  87. nextLevel:11
  88. }