Skip to content

Commit 324dad5

Browse files
committed
docs: update acyclic visitor documentation
1 parent 3dc27b2 commit 324dad5

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

acyclic-visitor/README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ In plain words
2929

3030
> The Acyclic Visitor pattern allows new functions to be added to existing class hierarchies without affecting those hierarchies, and without creating the dependency cycles that are inherent to the GangOfFour VisitorPattern.
3131
32+
Sequence diagram
33+
34+
![Acyclic Visitor sequence diagram](./etc/acyclic-visitor-sequence-diagram.png "Acyclic Visitor sequence diagram")
35+
36+
3237
## Programmatic Example of Acyclic Visitor in Java
3338

3439
In this Java example, we have a hierarchy of modem classes illustrating the Acyclic Visitor pattern. The modems in this hierarchy need to be visited by an external algorithm based on filtering criteria (is it Unix or DOS compatible modem).
@@ -138,10 +143,6 @@ Program output:
138143
09:15:11.127 [main] INFO com.iluwatar.acyclicvisitor.ConfigureForUnixVisitor -- Zoom modem used with Unix configurator.
139144
```
140145

141-
## Acyclic Visitor Pattern Class Diagram
142-
143-
![Acyclic Visitor](./etc/acyclic-visitor.png "Acyclic Visitor")
144-
145146
## When to Use the Acyclic Visitor Pattern in Java
146147

147148
This pattern can be used:
27.8 KB
Loading

0 commit comments

Comments
 (0)