Blame
|
1 | # Filesystem Layer |
||||||
| 2 | ||||||||
| 3 | ```mermaid |
|||||||
|
4 | --- |
||||||
| 5 | title: Animal example |
|||||||
| 6 | --- |
|||||||
| 7 | classDiagram |
|||||||
|
8 | class vmp_t{ |
||||||
|
9 | *dev_driver |
||||||
|
10 | } |
||||||
| 11 | class block_device_t { |
|||||||
| 12 | zob |
|||||||
|
13 | } |
||||||
| 14 | ||||||||
|
15 | block_device_t <|-- vmp_t |
||||||
| 16 | ||||||||
|
17 | note "From Duck till Zebra" |
||||||
| 18 | Animal <|-- Duck |
|||||||
| 19 | note for Duck "can fly<br>can swim<br>can dive<br>can help in debugging" |
|||||||
| 20 | Animal <|-- Fish |
|||||||
| 21 | Animal <|-- Zebra |
|||||||
| 22 | Animal : +int age |
|||||||
| 23 | Animal : +String gender |
|||||||
| 24 | Animal: +isMammal() |
|||||||
| 25 | Animal: +mate() |
|||||||
| 26 | class Duck{ |
|||||||
| 27 | +String beakColor |
|||||||
| 28 | +swim() |
|||||||
| 29 | +quack() |
|||||||
| 30 | } |
|||||||
| 31 | class Fish{ |
|||||||
| 32 | -int sizeInFeet |
|||||||
| 33 | -canEat() |
|||||||
| 34 | } |
|||||||
| 35 | class Zebra{ |
|||||||
| 36 | +bool is_wild |
|||||||
| 37 | +run() |
|||||||
|
38 | } |
||||||
| 39 | ``` |
|||||||
|
40 | > [!NOTE] |
||||||
| 41 | > This diagram is evolving as I am in the process of implementing |
|||||||
| 42 | > the code for this. Anything could change, so come back often. |
|||||||