You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

92 lines
5.5 KiB

  1. <?xml version="1.0" encoding="UTF-8" standalone="no"?>
  2. <!-- This project file has been saved by the New GreatSPN Editor, v.100 --><project name="Dining Philosophers" version="121">
  3. <gspn name="Philosophers4">
  4. <nodes>
  5. <place marking="1" name="fork1" x="21.0" y="4.0"/>
  6. <transition delay="lambda" delay-x="-0.5" delay-y="1.5" name="T0" rotation="0.7853981633974483" type="EXP" x="26.55" y="9.0"/>
  7. <transition delay="lambda" name="T1" rotation="2.356194490192345" type="EXP" x="16.55" y="9.0"/>
  8. <place marking="1" name="fork4" x="11.0" y="14.0"/>
  9. <place marking="1" name="fork2" x="31.0" y="14.0"/>
  10. <transition delay="lambda" delay-x="0.0" delay-y="1.5" name="T2" rotation="0.7853981633974483" type="EXP" x="16.55" y="19.0"/>
  11. <transition delay="lambda" name="T3" rotation="2.356194490192345" type="EXP" x="26.55" y="19.0"/>
  12. <place marking="1" name="fork3" x="21.0" y="24.0"/>
  13. <place name="eating1" x="11.0" y="9.0"/>
  14. <place label-y="-1.5" marking="1" name="thinking1" x="16.0" y="4.0"/>
  15. <place label-y="-1.5" name="wait1" x="6.0" y="4.0"/>
  16. <place label-y="-1.5" name="eating2" x="26.0" y="4.0"/>
  17. <place marking="1" name="thinking2" x="31.0" y="9.0"/>
  18. <place label-y="-1.5" name="wait2" x="36.0" y="4.0"/>
  19. <place name="eating3" x="31.0" y="19.0"/>
  20. <place marking="1" name="thinking4" x="11.0" y="19.0"/>
  21. <place name="eating4" x="16.0" y="24.0"/>
  22. <place marking="1" name="thinking3" x="26.0" y="24.0"/>
  23. <place name="wait3" x="36.0" y="24.0"/>
  24. <place name="wait4" x="6.0" y="24.0"/>
  25. <transition delay="rho" delay-x="0.0" delay-y="1.5" name="T4" rotation="2.356194490192345" type="EXP" x="6.55" y="9.0"/>
  26. <transition delay="rho" name="T5" rotation="2.356194490192345" type="EXP" x="36.55" y="19.0"/>
  27. <transition delay="mu" delay-x="-0.5" name="T6" rotation="0.7853981633974483" type="EXP" x="36.55" y="9.0"/>
  28. <transition delay="mu" delay-x="0.0" name="T7" rotation="0.7853981633974483" type="EXP" x="6.55" y="19.0"/>
  29. <transition delay="mu" name="T8" type="EXP" x="11.55" y="4.0"/>
  30. <transition delay="rho" name="T9" type="EXP" x="31.55" y="4.0"/>
  31. <transition delay="mu" name="T10" type="EXP" x="31.55" y="24.0"/>
  32. <transition delay="rho" delay-x="0.0" delay-y="1.5" name="T11" type="EXP" x="11.55" y="24.0"/>
  33. <constant consttype="REAL" name="lambda" value="1" x="1.4375" y="2.0"/>
  34. <constant consttype="REAL" name="mu" value="1" x="1.4375" y="3.0"/>
  35. <constant consttype="REAL" name="rho" value="1" x="1.5" y="4.0"/>
  36. </nodes>
  37. <edges>
  38. <arc head="fork4" kind="OUTPUT" mult-k="0.5" tail="T1"/>
  39. <arc head="fork2" kind="OUTPUT" mult-k="0.5" tail="T0"/>
  40. <arc head="fork3" kind="OUTPUT" mult-k="0.5" tail="T2"/>
  41. <arc head="fork4" kind="OUTPUT" mult-k="0.18173828125000002" tail="T2"/>
  42. <arc head="fork1" kind="OUTPUT" mult-k="0.5" tail="T1"/>
  43. <arc head="fork1" kind="OUTPUT" mult-k="0.5" tail="T0"/>
  44. <arc head="fork2" kind="OUTPUT" mult-k="0.5" tail="T3"/>
  45. <arc head="fork3" kind="OUTPUT" mult-k="0.5" tail="T3"/>
  46. <arc head="thinking1" kind="OUTPUT" mult-k="0.5" tail="T1"/>
  47. <arc head="T8" kind="INPUT" mult-k="0.5" tail="thinking1"/>
  48. <arc head="wait1" kind="OUTPUT" mult-k="0.5" tail="T8"/>
  49. <arc head="T4" kind="INPUT" mult-k="0.5" tail="wait1"/>
  50. <arc head="eating1" kind="OUTPUT" mult-k="0.5" tail="T4"/>
  51. <arc head="T1" kind="INPUT" mult-k="0.5" tail="eating1"/>
  52. <arc head="T4" kind="INPUT" mult-k="0.5" tail="fork4"/>
  53. <arc head="T7" kind="INPUT" mult-k="0.5" tail="fork4"/>
  54. <arc head="T5" kind="INPUT" mult-k="0.5" tail="fork2"/>
  55. <arc head="T6" kind="INPUT" mult-k="0.5" tail="fork2"/>
  56. <arc head="T0" kind="INPUT" mult-k="0.5" tail="eating2"/>
  57. <arc head="thinking2" kind="OUTPUT" mult-k="0.5" tail="T0"/>
  58. <arc head="T6" kind="INPUT" mult-k="0.5" tail="thinking2"/>
  59. <arc head="wait2" kind="OUTPUT" mult-k="0.5" tail="T6"/>
  60. <arc head="T9" kind="INPUT" mult-k="0.5" tail="wait2"/>
  61. <arc head="eating2" kind="OUTPUT" mult-k="0.5" tail="T9"/>
  62. <arc head="thinking3" kind="OUTPUT" mult-k="0.5" tail="T3"/>
  63. <arc head="T10" kind="INPUT" mult-k="0.5" tail="thinking3"/>
  64. <arc head="wait3" kind="OUTPUT" mult-k="0.5" tail="T10"/>
  65. <arc head="T5" kind="INPUT" mult-k="0.5" tail="wait3"/>
  66. <arc head="eating3" kind="OUTPUT" mult-k="0.5" tail="T5"/>
  67. <arc head="T3" kind="INPUT" mult-k="0.5" tail="eating3"/>
  68. <arc head="T2" kind="INPUT" mult-k="0.5" tail="eating4"/>
  69. <arc head="thinking4" kind="OUTPUT" mult-k="0.5" tail="T2"/>
  70. <arc head="T7" kind="INPUT" mult-k="0.5" tail="thinking4"/>
  71. <arc head="wait4" kind="OUTPUT" mult-k="0.5" tail="T7"/>
  72. <arc head="T11" kind="INPUT" mult-k="0.5" tail="wait4"/>
  73. <arc head="eating4" kind="OUTPUT" mult-k="0.5" tail="T11"/>
  74. <arc head="T8" kind="INPUT" mult-k="0.5" tail="fork1">
  75. <point x="19.5" y="2.5"/>
  76. <point x="14.0" y="2.5"/>
  77. </arc>
  78. <arc head="T9" kind="INPUT" mult-k="0.5" tail="fork1">
  79. <point x="24.5" y="2.5"/>
  80. <point x="30.0" y="2.5"/>
  81. </arc>
  82. <arc head="T11" kind="INPUT" mult-k="0.5" tail="fork3">
  83. <point x="19.5" y="27.5"/>
  84. <point x="14.5" y="27.5"/>
  85. </arc>
  86. <arc head="T10" kind="INPUT" mult-k="0.5" tail="fork3">
  87. <point x="24.5" y="27.5"/>
  88. <point x="30.0" y="27.5"/>
  89. </arc>
  90. </edges>
  91. </gspn>
  92. </project>