Diapositive PPT
For example, you want to perform some processing on classes and their attributes. In the metamodel, a class and its associated attributes is represented by the composition relation below:
If we wanted to traverse this class and all its attributes, we will declare:
visit_class_and_attributes(a_class : UML_CLASS;
visitor : TOP_DOWN_VISITOR) is
end -- visit_class_and_attributes