textmmodel.tex 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. %\begin{tikzpicture}[scale=0.61,transform shape]
  2. \begin{tikzpicture}%[scale=1,transform shape]
  3. \begin{abstractclass}{Text}{0,2}
  4. \attribute{name : String}
  5. \end{abstractclass}
  6. \begin{class}{Symbol}{-4,-1.5}
  7. \end{class}
  8. \begin{class}{SemiColon}{-4,-4.5}
  9. \inherit{Symbol}
  10. \end{class}
  11. \begin{class}{Letter}{4,-1.5}
  12. \end{class}
  13. \begin{class}{AText}{2,-4.5}
  14. \inherit{Letter}
  15. \end{class}
  16. \begin{class}{BText}{6,-4.5}
  17. \inherit{Letter}
  18. \end{class}
  19. \composition{Text}{symbols}{*}{Symbol}
  20. \composition{Text}{letters}{1..*}{Letter}
  21. %\unidirectionalAssociation{Text}{from}{0..1}{WorkDefinition}
  22. %\unidirectionalAssociation{Text}{parent}{1}{Process}
  23. %\association{Letter}{right}{1}{Symbol}{0..*}{linksToLefts}
  24. % \myassociation{Letter}{right}{1}{Symbol}{0..*}{linksToLefts}{0,-1}{0} %{210}
  25. \draw [umlcd style, fill=white] (Letter) --
  26. node[near start, above, anchor=210,xshift=-0.2cm,yshift=-0.2cm]{right}
  27. node[near start, below, anchor=150, yshift=-0.1cm]{*}
  28. (0,-1) -- (Symbol)
  29. node[near end, below]{*}
  30. node[near end, above, xshift=0.4cm, yshift=-0.2cm]{linksToLefts};
  31. % \draw [umlcd style, ->] ([yshift=40pt]TraceLink) -- (SourceElement)
  32. % node[near end, above,xshift=-12pt]{sources 1..*};
  33. %\association{Letter}{predecessor}{1}{Symbol}{0..*}{linksToRights}
  34. % \myassociation{Letter}{left}{1}{Symbol}{0..*}{linksToRights}{0,-3.2}{1} %{150}
  35. \draw [umlcd style, fill=white] (Letter) --
  36. node[near start, below, anchor=150]{left}
  37. node[near start, above, anchor=210, yshift=0.1cm]{*}
  38. (0,-3.2) -- (Symbol)
  39. node[near end, above]{*}
  40. node[near end, below, xshift=0.4cm, yshift=-0.2cm]{linksToRights};
  41. \end{tikzpicture}