PNWorkSequence_notext.tex 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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!15,fill=red!5,minimum size=5mm]
  4. \tikzstyle{transition}=[rectangle,thick,draw=blue!15,fill=blue!5,minimum size=4mm]
  5. \tikzstyle{edge}=[black!25!black!25]
  6. \tikzstyle{every label}=[black]
  7. \begin{scope}
  8. % Petri net A
  9. \node [place] (p1) [tokens=0] [xshift=-3.5cm]{}
  10. ;
  11. \node [transition] (t1) [below of=p1] {}
  12. edge [pre,black!25] (p1)
  13. ;
  14. %%in order to center tstart transition
  15. \node [place] (p) [below of=t1,circle,draw=white,fill=white] {};
  16. \node [place] (p2) [left of=p] {}
  17. edge [pre,black!25] (t1)
  18. ;
  19. \node [place] (p3) [right of=p,draw=red!75,fill=red!20,dash pattern=on 2pt off 2pt] {}
  20. edge [pre,black!25] (t1)
  21. ;
  22. \node at (p3.west) [left] {};
  23. \node [transition] (t2) [below of=p2] {}
  24. edge [pre,black!25] (p2)
  25. ;
  26. \node [place] (p4) [below of=t2] {}
  27. edge [pre,black!25] (t2)
  28. ;
  29. % Petri net B
  30. \node [place] (pb1) [tokens=0] {}
  31. ;
  32. \node [transition] (tb1) [below of=pb1,draw=blue!75,fill=blue!20,dash pattern=on 2pt off 2pt] {}
  33. edge [pre,black!25] (pb1)
  34. edge [pre,bend right,green!50!black,thick] (p3)
  35. ;
  36. \node at (tb1.east) [right] {};
  37. %%in order to center tstart transition
  38. \node [place] (pp) [below of=tb1,circle,draw=white,fill=white] {};
  39. \node [place] (pb2) [left of=pp] {}
  40. edge [pre,black!25] (tb1)
  41. ;
  42. \node [place] (pb3) [right of=pp] {}
  43. edge [pre,black!25] (tb1)
  44. ;
  45. \node [transition] (tb2) [below of=pb2] {}
  46. edge [pre,black!25] (pb2)
  47. ;
  48. \node [place] (pb4) [below of=tb2] {}
  49. edge [pre,black!25] (tb2)
  50. ;
  51. \end{scope}
  52. \end{tikzpicture}