aboutsummaryrefslogtreecommitdiff
path: root/img
diff options
context:
space:
mode:
authorJaro <jarorutjes07@gmail.com>2024-10-01 09:54:41 +0200
committerJaro <jarorutjes07@gmail.com>2024-10-01 09:54:41 +0200
commit14f0f8c62a2914bdbbb8d9d90f65ba4dbdffd674 (patch)
treeef9ec6a77e52b8b6eae386f39ce71f9582669832 /img
parentc191f5e193e3ff5ce886b0fbe1efe8d7ddd04183 (diff)
parentf0cacf550e7b621d58ae9e92b5a1ee66b5e60be0 (diff)
Merge branch 'master' of github.com:lonkaars/crepe-docs into jaro/research
Diffstat (limited to 'img')
-rw-r--r--img/.gitignore2
-rw-r--r--img/DecoratorDesignPattern.pngbin0 -> 13528 bytes
-rw-r--r--img/ECSBlockDiagram.pngbin0 -> 64822 bytes
-rw-r--r--img/ECSComponentManager.pngbin0 -> 247012 bytes
-rw-r--r--img/ExtensionObjects.jpgbin0 -> 48639 bytes
-rw-r--r--img/decorator-design-pattern.puml62
-rw-r--r--img/example.puml6
-rw-r--r--img/theme.ipuml9
8 files changed, 77 insertions, 2 deletions
diff --git a/img/.gitignore b/img/.gitignore
new file mode 100644
index 0000000..60a51f5
--- /dev/null
+++ b/img/.gitignore
@@ -0,0 +1,2 @@
+!*.pdf
+*.eps
diff --git a/img/DecoratorDesignPattern.png b/img/DecoratorDesignPattern.png
new file mode 100644
index 0000000..8830a3d
--- /dev/null
+++ b/img/DecoratorDesignPattern.png
Binary files differ
diff --git a/img/ECSBlockDiagram.png b/img/ECSBlockDiagram.png
new file mode 100644
index 0000000..4d36afa
--- /dev/null
+++ b/img/ECSBlockDiagram.png
Binary files differ
diff --git a/img/ECSComponentManager.png b/img/ECSComponentManager.png
new file mode 100644
index 0000000..6602cd6
--- /dev/null
+++ b/img/ECSComponentManager.png
Binary files differ
diff --git a/img/ExtensionObjects.jpg b/img/ExtensionObjects.jpg
new file mode 100644
index 0000000..4807ff7
--- /dev/null
+++ b/img/ExtensionObjects.jpg
Binary files differ
diff --git a/img/decorator-design-pattern.puml b/img/decorator-design-pattern.puml
new file mode 100644
index 0000000..2bc406b
--- /dev/null
+++ b/img/decorator-design-pattern.puml
@@ -0,0 +1,62 @@
+@startuml
+!include theme.ipuml
+skinparam style strictuml
+skinparam Linetype ortho
+
+class Client
+class Component <<interface>> {
+ + execute()
+ --
+}
+class ConcComponent as "Concrete\nComponent" {
+ ...
+ --
+ + execute()
+}
+class BaseDecorator as "Base Decorator" {
+ - wrappee: Component
+ + BaseDecorator(c: Component)
+ + execute()
+}
+class ConcDecorator as "Concrete\nDecorators" {
+ ...
+ --
+ + execute()
+ + extra()
+}
+
+hide Client members
+hide circle
+
+Client --> Component
+Component <|.. ConcComponent
+Component <|.. BaseDecorator
+Component <--o BaseDecorator
+BaseDecorator <|-- ConcDecorator
+
+ConcComponent -right[hidden] BaseDecorator
+
+note right of Client
+ a = <b>new</b> ConcComponent()
+ b = <b>new</b> ConcDecorator1(a)
+ c = <b>new</b> ConcDecorator1(b)
+ c.execute()
+ // Decorator -> Decorator -> Component
+end note
+
+note right of BaseDecorator::BaseDecorator
+ wrappee = c
+end note
+
+note right of BaseDecorator::execute
+ wrappee.execute()
+end note
+
+note right of ConcDecorator::execute
+ super::execute()
+ extra()
+end note
+
+@enduml
+
+" referenced from <https://github.com/algamza/algamza.github.io>
diff --git a/img/example.puml b/img/example.puml
new file mode 100644
index 0000000..942dce2
--- /dev/null
+++ b/img/example.puml
@@ -0,0 +1,6 @@
+@startuml
+!include theme.ipuml
+
+Bob -> Alice : hello
+
+@enduml
diff --git a/img/theme.ipuml b/img/theme.ipuml
index 88d183a..4e3613e 100644
--- a/img/theme.ipuml
+++ b/img/theme.ipuml
@@ -1,5 +1,10 @@
!theme plain
-skinparam DefaultFontSize 14
+skinparam ClassAttributeIconSize 0
+skinparam ClassFontStyle bold
skinparam DefaultFontName Inter
+skinparam DefaultFontSize 14
+skinparam MaxMessageSize 200
+skinparam Nodesep 25
+skinparam Padding 2
+skinparam Ranksep 50
skinparam RoundCorner 0
-skinparam maxMessageSize 200