Commit 3002d350 authored by Jean-Sébastien Sottet's avatar Jean-Sébastien Sottet
Browse files

readme mistake

parent 1aef904a
...@@ -46,7 +46,7 @@ var Member2Female = { ...@@ -46,7 +46,7 @@ var Member2Female = {
return [d]; return [d];
} }
} }
```
Launching the transformation is made by creating a new Transformation then by adding the rules it contains. Launching the transformation is made by creating a new Transformation then by adding the rules it contains.
```javascript ```javascript
...@@ -55,10 +55,12 @@ transformation.addRule(Member2FeMale); ...@@ -55,10 +55,12 @@ transformation.addRule(Member2FeMale);
transformation.addRule(Member2Male); transformation.addRule(Member2Male);
``` ```
Execution of transformation rule is made using the apply function on a transformation. The parameters Execution of transformation rule is made using the apply function on a transformation. The parameters
are the input Model and output model (as defined in JSMF). are the input Model and output model (as defined in JSMF).
```javascript ```javascript
transformation.apply(M.ma, M.mb); transformation.apply(M.ma, M.mb);
``` ```
You can find examples, discover the other components and test it online with Tonic on JSMF github website (https://js-mf.github.io/#portfolio) You can find examples, discover the other components and test it online with Tonic on JSMF github website (https://js-mf.github.io/#portfolio)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment