diff --git a/acyclic-visitor/README.md b/acyclic-visitor/README.md index eef18bbed..fb57d5681 100644 --- a/acyclic-visitor/README.md +++ b/acyclic-visitor/README.md @@ -29,6 +29,11 @@ In plain words > 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. +Sequence diagram + +![Acyclic Visitor sequence diagram](./etc/acyclic-visitor-sequence-diagram.png "Acyclic Visitor sequence diagram") + + ## Programmatic Example of Acyclic Visitor in Java 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: 09:15:11.127 [main] INFO com.iluwatar.acyclicvisitor.ConfigureForUnixVisitor -- Zoom modem used with Unix configurator. ``` -## Acyclic Visitor Pattern Class Diagram - -![Acyclic Visitor](./etc/acyclic-visitor.png "Acyclic Visitor") - ## When to Use the Acyclic Visitor Pattern in Java This pattern can be used: diff --git a/acyclic-visitor/etc/acyclic-visitor-sequence-diagram.png b/acyclic-visitor/etc/acyclic-visitor-sequence-diagram.png new file mode 100644 index 000000000..a3c2ba56b Binary files /dev/null and b/acyclic-visitor/etc/acyclic-visitor-sequence-diagram.png differ