Added Composite UML

This commit is contained in:
John Webb
2014-07-29 09:44:37 -05:00
parent 9780f47bab
commit 287e242e83
12 changed files with 30 additions and 3 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 9.8 KiB

View File

@@ -0,0 +1,33 @@
@startuml
interface PaperBookInterface {
+turnPage()
+open()
}
interface EBookInterface {
+pressNext()
+pressStart()
}
class Book {
+open()
+turnPage()
}
class Kindle {
+pressNext()
+pressStart()
}
class EBookAdapter {
#eBook : EBookInterface
+__construct(ebook : EBookInterface)
+open()
+turnPage()
}
PaperBookInterface <|.. Book
PaperBookInterface <|.. EBookAdapter
EBookInterface <|.. Kindle
EBookAdapter o-- EBookInterface
@enduml