docs: updates to several patterns

This commit is contained in:
Ilkka Seppälä
2024-05-28 19:46:39 +03:00
parent 4652842c94
commit 584e949714
70 changed files with 347 additions and 479 deletions
+1 -5
View File
@@ -22,7 +22,7 @@ The Composite Entity design pattern is aimed at managing a set of interrelated p
## Explanation
Real world example
Real-world example
> Consider a university registration system where a "Student" entity is a composite entity. Each "Student" object includes several dependent objects: personal details, course enrollments, grades, and payment information. Instead of managing each of these aspects separately, the Composite Entity pattern allows the university system to treat the "Student" as a single entity. This simplifies operations such as enrolling a student in a new course, updating grades, and processing payments, since all related actions can be managed through the composite "Student" object.
@@ -123,10 +123,6 @@ public App(String message, String signal) {
}
```
## Class diagram
![Composite Entity](./etc/composite_entity.urm.png "Composite Entity")
## Applicability
* Useful in enterprise applications where business objects are complex and involve various interdependent objects.