simplifiedumlmmodel.tex 950 B

1234567891011121314151617181920212223242526272829303132333435
  1. \begin{tikzpicture}%[scale=1,transform shape]
  2. \begin{class}{VirtualRoot}{-5,3}
  3. \end{class}
  4. \begin{class}{Classifier}{0,3}
  5. \attribute{name : String}
  6. \end{class}
  7. \begin{class}{DataType}{-5,0}
  8. \inherit{Classifier}
  9. \end{class}
  10. \begin{class}{Class}{0,0}
  11. \inherit{Classifier}
  12. \operation{isAbstract : boolean}
  13. \end{class}
  14. \begin{class}{Attribute}{5,0}
  15. \attribute{name : String}
  16. \end{class}
  17. \composition{VirtualRoot}{children}{0..*}{Classifier}
  18. \unidirectionalAssociation{Classifier}{root}{1}{VirtualRoot}
  19. \composition{Class}{attributes}{0..*}{Attribute}
  20. \unidirectionalAssociation{Attribute}{type}{1}{Classifier}
  21. %\myassociationtwo{Class}{subclass}{0..*}{Class}{0..*}{superclass}{-1,-3}{1,-3} %{210}
  22. \myassociationthree{Class}{subclass}{0..*}{Class}{0..*}{superclass}{-0.8,-2.5}{0.8,-2.5} %{210}
  23. %\association{Class}{subclass}{0..*}{Class}{superclass}{0..1} %{210}
  24. \end{tikzpicture}