Last active
August 29, 2015 14:03
-
-
Save grauwoelfchen/a7dd4563d35c2815f61f to your computer and use it in GitHub Desktop.
UML with graphviz' dot
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| digraph HelloOswald { | |
| fontname = "Bitstream Vera Sans" | |
| fontsize = 8 | |
| node [ | |
| fontname = "Bitstream Vera Sans" | |
| fontsize = 8 | |
| shape = "record" | |
| ] | |
| Object [ | |
| label = "{Object|+ name : string\l|}" | |
| ] | |
| Animal [ | |
| label = "{Animal||+ say_hi() : void\l}" | |
| ] | |
| Plant [ | |
| label = "{Plant||+ say_hello() : void\l}" | |
| ] | |
| Octopus [ | |
| label = "{Octopus|+ hands : integer\l|+ sing() : void\l}" | |
| ] | |
| Dog [ | |
| label = "{Dog|+ tail : integer\l|+ bark() : void\l}" | |
| ] | |
| Penguin [ | |
| label = "{Penguin||+ play() : void\l}" | |
| ] | |
| Flower [ | |
| label = "{Flower||\l+ roller_skate() : void\l}" | |
| ] | |
| Egg [ | |
| label = "{Egg|+ brother : object\l|\l+ say_yes() : void\l}" | |
| ] | |
| Snowman [ | |
| label = "{Snowman||\l+ walk() : void\l}" | |
| ] | |
| edge [ | |
| arrowtail = "empty" | |
| dir = back | |
| ] | |
| Object -> Animal | |
| Object -> Plant | |
| Object -> Egg | |
| Object -> Snowman | |
| Animal -> Octopus | |
| Animal -> Dog | |
| Animal -> Penguin | |
| Plant -> Flower | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment