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: 16 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 10 KiB

View File

@ -0,0 +1,35 @@
@startuml
class Assemble {
+work()
}
class Car {
+__construct()
+manufacture()
}
class Motorcycle {
+__construct()
+manufacture()
}
class Produce {
+work()
}
abstract class Vehicle {
protected workShop1
protected workShop2
+__construct()
+manufacture()
}
interface Workshop {
+work()
}
Workshop <|.. Assemble
Workshop <|.. Produce
Vehicle <|.. Motorcycle
Vehicle <|.. Car
@enduml