This commit is contained in:
Miloslav Ciz 2023-11-26 14:53:52 +01:00
parent 01203e13ab
commit 8899b4ff7f
14 changed files with 74 additions and 36 deletions

View file

@ -26,7 +26,7 @@ An **agent** is a type of block that may appear in the net. We may see it as a b
Here we defined agents `ZERO`, with one port (only the principal one), `SUCC` (for "successor", one principal and one auxiliary port) and `ADD`, with three ports (one of them is principal).
Now let's define interaction rules with these agents. An interaction rule simply defines a pattern of interconnected agents that get replaced by another pattern; however **interaction rule may only be defined for agents both connected by their principal ports** (so called *active pairs*). Our interaction rules will be following:
Now let's define interaction rules with these agents. An interaction rule simply defines a pattern of interconnected agents that get replaced by another pattern; however **interaction rule may only be defined for agents both connected by their principal ports** (so called *active pairs*). Naturally, the rules also have to keep the interface (edges going in and out) of the group the same. Our interaction rules will be following:
```
rule 1: