Updated uml diagrams for structural patterns

This commit is contained in:
John Webb
2014-07-31 13:27:12 -05:00
parent 6dd33fd433
commit d42043c36c
39 changed files with 3731 additions and 219 deletions

View File

@@ -0,0 +1,50 @@
<?xml version="1.0" encoding="UTF-8"?>
<Diagram>
<ID>PHP</ID>
<OriginalElement>\DesignPatterns\Structural\Bridge\Vehicle</OriginalElement>
<nodes>
<node x="53.5" y="272.0">\DesignPatterns\Structural\Bridge\Workshop</node>
<node x="290.0" y="159.0">\DesignPatterns\Structural\Bridge\Car</node>
<node x="107.0" y="369.0">\DesignPatterns\Structural\Bridge\Produce</node>
<node x="0.0" y="159.0">\DesignPatterns\Structural\Bridge\Motorcycle</node>
<node x="0.0" y="369.0">\DesignPatterns\Structural\Bridge\Assemble</node>
<node x="187.5" y="0.0">\DesignPatterns\Structural\Bridge\Vehicle</node>
</nodes>
<notes />
<edges>
<edge source="\DesignPatterns\Structural\Bridge\Car" target="\DesignPatterns\Structural\Bridge\Vehicle">
<point x="0.0" y="-34.0" />
<point x="425.0" y="134.0" />
<point x="326.25" y="134.0" />
<point x="46.25" y="54.5" />
</edge>
<edge source="\DesignPatterns\Structural\Bridge\Assemble" target="\DesignPatterns\Structural\Bridge\Workshop">
<point x="0.0" y="-23.5" />
<point x="43.5" y="344.0" />
<point x="75.25" y="344.0" />
<point x="-21.75" y="23.5" />
</edge>
<edge source="\DesignPatterns\Structural\Bridge\Motorcycle" target="\DesignPatterns\Structural\Bridge\Vehicle">
<point x="0.0" y="-34.0" />
<point x="135.0" y="134.0" />
<point x="233.75" y="134.0" />
<point x="-46.25" y="54.5" />
</edge>
<edge source="\DesignPatterns\Structural\Bridge\Produce" target="\DesignPatterns\Structural\Bridge\Workshop">
<point x="0.0" y="-23.5" />
<point x="150.5" y="344.0" />
<point x="118.75" y="344.0" />
<point x="21.75" y="23.5" />
</edge>
</edges>
<settings layout="Hierarchic Group" zoom="0.8853211009174312" x="280.0" y="208.0" />
<SelectedNodes />
<Categories>
<Category>Fields</Category>
<Category>Constants</Category>
<Category>Constructors</Category>
<Category>Methods</Category>
</Categories>
<VISIBILITY>private</VISIBILITY>
</Diagram>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 16 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 61 KiB

View File

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