linkmmodel.tex 1003 B

1234567891011121314151617181920212223242526272829303132333435
  1. %\begin{tikzpicture}[scale=0.7,transform shape]
  2. \begin{tikzpicture}[scale=1,transform shape]
  3. \begin{class}{Trace}{-5,0}
  4. \attribute{transfoName : String}
  5. \end{class}
  6. \begin{class}{TraceLink}{0,0}
  7. \attribute{ruleName : String}
  8. \end{class}
  9. \begin{class}{SourceElement}{4.5,1}
  10. \attribute{}
  11. \end{class}
  12. \begin{class}{TargetElement}{4.5,-1}
  13. \attribute{}
  14. \end{class}
  15. \composition{Trace}{links}{*}{TraceLink}
  16. \draw [umlcd style, ->] ([yshift=40pt]TraceLink) -- (SourceElement)
  17. node[near end, above,xshift=-12pt]{sources 1..*};
  18. %node[near end, above]{sources}
  19. %node[near end, below]{*};
  20. \draw [umlcd style, ->] ([yshift=-40pt]TraceLink) -- (TargetElement)
  21. node[near end, below,xshift=-12pt]{targets 1..*};
  22. % node[near end, below]{targets}
  23. % node[near end, above]{*};
  24. %controls +(-160:5em) and +(140:5em) ..
  25. % \unidirectionalAssociation{TraceLink}{sources}{*}{Element}
  26. % \unidirectionalAssociation{TraceLink}{targets}{*}{Element}
  27. \end{tikzpicture}