GroIMP Module XL English
Spoken text
While the normal L-system rules are applied iteratively on a character sequence to describe a new development level, the interpretation rules are applied immediately before the graphical interpretation of the turtle and have no influence on the next generation or the next level of development.
The figure illustrates the principle in more detail. For example, interpretation rules may be useful in order to specify graphical details of certain objects, which are represented by the symbols s1, s2 and so on.
The actual example can illustrate this: From the axiom we derive the apical bud with a parameter which is used for growth limitation. This apical bud is replaced by a shoot and lateral meristem if the parameter x has not reached 0. This lateral meristem will be replaced in the next step by a lateral shoot with a lateral bud. In the following step the lateral bud is then replaced by the Flower module tilted with a 90° angle. This module is defined by the interpretation rules and not replaced within the normal iteration. Instead, at the end of a derivation step the interpretation rule is applied through "applyInterpretation", whereby each lateral bud is transformed into a flower. This allows the transformation into a flower directly within the same step or before the execution of the next step.
The interpretation rules must therefore be defined in a separate method and then have to be called in the run() method in the imperative part within the curly braces.
If the apical bud has reached the growth limit, it is also replaced by an apical meristem and then by a flower.