docs: add diagrams for spatial partition, special case, specification, state, step builder, strangler, strategy, subclass sandbox

This commit is contained in:
Ilkka Seppälä
2025-04-10 21:13:17 +03:00
parent 8e823909da
commit cd224ea5fe
16 changed files with 32 additions and 4 deletions
+4
View File
@@ -38,6 +38,10 @@ Wikipedia says
> The state pattern is a behavioral software design pattern that allows an object to alter its behavior when its internal state changes. This pattern is close to the concept of finite-state machines. The state pattern can be interpreted as a strategy pattern, which is able to switch a strategy through invocations of methods defined in the pattern's interface.
Flowchart
![State flowchart](./etc/state-flowchart.png)
## Programmatic Example of State Pattern in Java
In our programmatic example there is a mammoth with alternating moods.
Binary file not shown.

After

Width:  |  Height:  |  Size: 86 KiB