3.2. Parameter passing at Graph Transformation Rules

Information flow between graph transformation rules and their precondition and postcondition patterns is carried out by parameter passing.

Like in case of ASM rules, formal parameters of graph transformation rules can be grouped into three categories. Note that this categorization is independent from the fact whether a given parameter is bound or unbound when applying a GT rule.

Note that this interpretation of input and output variables is a change from previous release, where input and output parameters of a GT rule were interpreted after the pattern matching phase.

As illustrated by Figure 2.2, “Relations of parameters of the parts of a GT rule”, a parameter of a graph transformation rule can be used (i) in the precondition pattern, (ii) in the postcondition pattern, or in the action part (or in any combination of these) provided that they are listed in the parameter list(s) of the corresponding patterns. In case of the action part, all parameters of the GT rule itself of the precondition and postcondition patterns can be used (i.e. all these variables are part of an implicit parameter list of the action part).

Figure 2.2. Relations of parameters of the parts of a GT rule

Relations of parameters of the parts of a GT rule


In the rare case when values are assigned multiple times to the same output parameter, assignments in the precondition pattern are overridden by assignments defined by the postcondition pattern, which, in turn, are overridden by assignments in the action part.