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

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