March 2002
Intermediate to advanced
496 pages
8h 51m
English
The ProcessComponent hierarchy that Oozinoz uses to model process flows is another composite structure that can benefit from building in support for VISITOR. Unlike machine composites, it is natural for process flows to contain cycles, and visitors must take care not to cause infinite loops while traversing process composites. Figure 29.5 shows the Process-Component hierarchy.

Suppose that you want to print out a process component in a “pretty,” or indented, format. In Chapter 28, Iterator, you used an iterator to print ...
Read now
Unlock full access