_WorkSequence.tex 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. \begin{tikzpicture}[node distance=1.2cm,>=stealth',bend
  2. angle=25,auto,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] {{$start$}};
  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. %dotted,
  33. \node [transition] (tb1) [below of=pb1] {}
  34. edge [pre,black!25] (pb1)
  35. ;
  36. %%in order to center tstart transition
  37. \node [place] (pp) [below of=tb1,circle,draw=white,fill=white] {};
  38. \node [place] (pb2) [left of=pp] {}
  39. edge [pre,black!25] (tb1)
  40. ;
  41. \node [place] (pb3) [right of=pp] {}
  42. edge [pre,black!25] (tb1)
  43. ;
  44. \node [transition] (tb2) [below of=pb2,draw=blue!75,fill=blue!20,dash pattern=on 2pt off 2pt] {}
  45. edge [pre,black!25] (pb2)
  46. edge [pre,bend right,green!50!black] (p3)
  47. ;
  48. % \node at (tb2.east) [right] {{$finish$}};
  49. \node [place] (pb4) [below of=tb2] {}
  50. edge [pre,black!25] (tb2)
  51. ;
  52. \end{scope}
  53. \end{tikzpicture}