PNWorkDefinition_notext.tex 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. \begin{tikzpicture}[node distance=1.3cm,>=stealth',bend
  2. angle=45,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,
  5. fill=blue!20,minimum size=4mm]
  6. \tikzstyle{every label}=[black]
  7. \begin{scope}
  8. % Petri net A
  9. \node [place] (p1) [tokens=1] [xshift=-5cm]{}
  10. ;
  11. \node at (p1.west) [left] {};
  12. \node [transition] (tp1) [right of=p1,dash pattern=on 2pt off 2pt] {}
  13. edge [post,bend right,dash pattern=on 2pt off 2pt] (p1)
  14. ;
  15. \node at (tp1.south) [below] {};
  16. \node [transition] (t1) [below of=p1] {}
  17. edge [pre] (p1)
  18. ;
  19. \node at (t1.west) [left] {};
  20. %%in order to center tstart transition
  21. \node [place] (p) [below of=t1,circle,draw=white,fill=white] {};
  22. \node [place] (p2) [left of=p] {}
  23. edge [pre] (t1)
  24. ;
  25. \node at (p2.west) [left] {};
  26. \node [place] (p3) [right of=p] {}
  27. edge [pre] (t1)
  28. ;
  29. \node at (p3.west) [left] {};
  30. \node [transition] (t2) [below of=p2] {}
  31. edge [pre] (p2)
  32. ;
  33. \node at (t2.west) [left] {};
  34. \node [place] (p4) [below of=t2] {}
  35. edge [pre] (t2)
  36. ;
  37. \node at (p4.west) [left] {};
  38. \node [transition] (tp2) [right of=p4,dash pattern=on 2pt off 2pt] [xshift=0.5cm] {}
  39. edge [pre,bend left,dash pattern=on 2pt off 2pt] (p4)
  40. ;
  41. \node at (tp2.north) [above] {};
  42. \end{scope}
  43. \end{tikzpicture}