01_user_documentation:groimp-platform:xl-rules
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| 01_user_documentation:groimp-platform:xl-rules [2025/01/24 11:58] – ↷ Page moved from groimp-platform:xl-rules to 01_user_documentation:groimp-platform:xl-rules gaetan | 01_user_documentation:groimp-platform:xl-rules [2025/01/24 17:07] (current) – removed gaetan | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | GroIMP includes four sorts of rules. | ||
| - | |||
| - | | Rule symbol | What it does | | ||
| - | | %%==>%% | Rule in Lindenmayer-form. Graph replacement rule, where one subgraph (often only one object) is replaced by another graph. The connections between the host graph and the newly-inserted graph are recovered. That means that if, e.g., in a one-dimensional graph [ A B C D ] the node B is replaced by a node G, then G will be inserted into the graph with the original connecting edges to the neighbourhood of the node B: [ A G C D ]. The blank space indicates here a successor edge in XL. Axiom %%==>%% A B C D; B %%==>%% G;| | ||
| - | | |**Note:** This is a different type of rule than the instantiation rules (which also use %%==> | ||
| - | | %%==>> | ||
| - | | %%::>%% | Update rule. This rule type does not change the structure of the graph. It is used to change the attributes of the objects (nodes) of the graph. c:C ::> {c[length] = c[length] * 20; } | | ||
| - | | %%==>%% | Instantiation rule. It is NOT used after a query, but after a class / module declaration. It adds geometric (or other sort of) information to all nodes of the declared type. | | ||
| - | |||
| - | |||
| - | |||
| - | |||
01_user_documentation/groimp-platform/xl-rules.1737716338.txt.gz · Last modified: 2025/01/24 11:58 by gaetan
