actuallinkmmodel.tex 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. %\begin{tikzpicture}[scale=0.7,transform shape]
  2. \begin{tikzpicture}[scale=1,transform shape]
  3. \begin{class}{Trace}{-5.5,0}
  4. \attribute{transfoName : String}
  5. \end{class}
  6. \begin{class}{ReferenceClass}{0,0}
  7. \attribute{definitionName : String}
  8. \end{class}
  9. \begin{class}{SourceElement}{5.0,1}
  10. \attribute{}
  11. \end{class}
  12. \begin{class}{TargetElement}{5.0,-1}
  13. \attribute{}
  14. \end{class}
  15. % \begin{class}{Element}{4.5,0}
  16. % \attribute{}
  17. % \end{class}
  18. %
  19. % \composition{Trace}{links}{*}{TraceLink}
  20. % \draw [umlcd style, ->] ([yshift=40pt]TraceLink) -- (Element)
  21. % node[near end, above,xshift=-7pt]{source 1};
  22. % %node[near end, above]{sources}
  23. % %node[near end, below]{*};
  24. %
  25. %\draw [umlcd style, ->] ([yshift=-40pt]TraceLink) -- (Element)
  26. % node[near end, below,xshift=-7pt]{targets *};
  27. %% node[near end, below]{targets}
  28. %% node[near end, above]{*};
  29. %%controls +(-160:5em) and +(140:5em) ..
  30. %
  31. %% \unidirectionalAssociation{TraceLink}{sources}{*}{Element}
  32. %% \unidirectionalAssociation{TraceLink}{targets}{*}{Element}
  33. %test
  34. \composition{Trace}{links}{*}{ReferenceClass}
  35. \draw [umlcd style, ->] ([yshift=40pt]ReferenceClass) -- (SourceElement)
  36. node[near end, above,xshift=-14pt]{sources 1..*};
  37. %node[near end, above]{sources}
  38. %node[near end, below]{*};
  39. \draw [umlcd style, ->] ([yshift=-40pt]ReferenceClass) -- (TargetElement)
  40. node[near end, below,xshift=-14pt]{targets 1..*};
  41. \end{tikzpicture}