inputModel.tex 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. \begin{tikzpicture}[node distance=1.2cm,>=stealth',bend
  2. angle=25,auto,scale=1.0,transform shape]
  3. \tikzstyle{place}=[circle,thick,draw=red!75,fill=red!20,minimum size=5mm]
  4. \tikzstyle{transition}=[rectangle,thick,draw=blue!75,fill=blue!20,minimum size=4mm]
  5. \tikzstyle{every label}=[black]
  6. \begin{scope}
  7. % Petri net A
  8. \node [place] (pa1) [xshift=-3.5cm]{} ;
  9. \node [transition] (ta1) [below of=pa1] {}
  10. edge [pre] (pa1)
  11. ;
  12. %%in order to center tstart transition
  13. \node [place] (pa) [below of=ta1,circle,draw=white,fill=white] {};
  14. \node [place] (pa2) [left of=pa] {}
  15. edge [pre] (ta1)
  16. ;
  17. \node [place] (pa3) [right of=pa] {}
  18. edge [pre] (ta1)
  19. ;
  20. \node at (pa3.west) [left] {};
  21. \node [transition] (ta2) [below of=pa2] {}
  22. edge [pre] (pa2)
  23. ;
  24. \node [place] (pa4) [below of=ta2] {}
  25. edge [pre] (ta2)
  26. ;
  27. % Petri net B
  28. \node [place] (pb1) {};
  29. \node [transition] (tb1) [below of=pb1] {}
  30. edge [pre] (pb1)
  31. ;
  32. \node at (tb1.east) [right] {};
  33. %%in order to center tstart transition
  34. \node [place] (pp) [below of=tb1,circle,draw=white,fill=white] {};
  35. \node [place] (pb2) [left of=pp] {}
  36. edge [pre] (tb1)
  37. ;
  38. \node [place] (pb3) [right of=pp] {}
  39. edge [pre] (tb1)
  40. ;
  41. \node [transition] (tb2) [below of=pb2] {}
  42. edge [pre] (pb2)
  43. edge [pre,bend right,green!50!black,thick] (pa3)
  44. ;
  45. \node [place] (pb4) [below of=tb2] {}
  46. edge [pre] (tb2)
  47. ;
  48. %C, D, ...
  49. %(finally not invisible) nodes
  50. \node [place] (pi1) [right of=pb3,draw=white,fill=white] {} ;
  51. \node [transition] (ti) [below of=pi1,draw=blue!15,fill=blue!5] {}
  52. edge [pre,bend right,green!50!black,thick] (pb3)
  53. ;
  54. % last Petri net: Z
  55. \node [place] (pz1) [xshift=8cm] {}
  56. ;
  57. \node [transition] (tz1) [below of=pz1] {}
  58. edge [pre] (pz1)
  59. ;
  60. \node at (tz1.east) [right] {};
  61. %%in order to center tstart transition
  62. \node [place] (pz) [below of=tz1,circle,draw=white,fill=white] {};
  63. \node [place] (pz2) [left of=pz] {}
  64. edge [pre] (tz1)
  65. ;
  66. %(finally not invisible) nodes
  67. \node [place] (pi2) [left of=pz2,draw=red!15,fill=red!5] {} ;
  68. \node (phantom) [left of=pi2,xshift=-0.5cm] {$\cdots\cdots\cdots$};
  69. \node [place] (pz3) [right of=pz] {}
  70. edge [pre] (tz1)
  71. ;
  72. \node [transition] (tz2) [below of=pz2] {}
  73. edge [pre,bend right,green!50!black,thick] (pi2)
  74. edge [pre] (pz2)
  75. ;
  76. \node [place] (pz4) [below of=tz2] {}
  77. edge [pre] (tz2)
  78. ;
  79. % Petri net root
  80. \node [place] (p1) [tokens=1,xshift=-6.5cm]{}
  81. ;
  82. \node [transition] (t1) [below of=p1] {}
  83. edge [pre] (p1)
  84. edge [post,bend left,dash pattern=on 2pt off 2pt] (pa1)
  85. edge [post,bend left,dash pattern=on 2pt off 2pt] (pb1)
  86. edge [post,bend left,dash pattern=on 2pt off 2pt] (pz1)
  87. ;
  88. \node [place] (p2) [below of=t1] {}
  89. edge [pre] (t1)
  90. ;
  91. \node [transition] (t2) [below of=p2] {}
  92. edge [pre] (p2)
  93. edge [pre,bend right,dash pattern=on 2pt off 2pt] (pa4)
  94. edge [pre,bend right,dash pattern=on 2pt off 2pt] (pb4)
  95. edge [pre,bend right,dash pattern=on 2pt off 2pt] (pz4)
  96. ;
  97. \node [place] (p3) [below of=t2] {}
  98. edge [pre] (t2)
  99. ;
  100. \end{scope}
  101. \end{tikzpicture}