Defines an interface for the visitor of the model elements.
The Visitor follows a hierarchical visitor pattern (see http://c2.com/cgi/wiki?HierarchicalVisitorPattern) what enables to track entering and leaving composite entities - assemblies and instances.
optional
visitAssemblyEnter(assembly
):boolean
Defines logic that will be invoked upon entering the assembly
, before visit its children.
Assembly's children will be visited if returns true
or stay undefined.
Visited assembly.
boolean
optional
visitAssemblyLeave(assembly
):void
Defines logic that will be invoked before leaving the assembly
, after visit its children.
Visited assembly.
void
optional
visitInstanceEnter(instance
):boolean
Defines logic that will be invoked upon entering the instance
, before visit its children.
Instance's children will be visited if returns true
or stay undefined.
Visited instance.
boolean
optional
visitInstanceLeave(instance
):void
Defines logic that will be invoked before leaving the instance
, after visit its children.
Visited instance.
void
optional
visitPart(part
):void
Defines logic that will be invoked for the visited part
.
Visited part.
void