| ... |
... |
@@ -52,47 +52,8 @@ |
| 52 |
52 |
|
| 53 |
53 |
= Model an SCChart = |
| 54 |
54 |
|
| 55 |
|
-Right-click on a project and create a (text) File: |
|
55 |
+xxx |
| 56 |
56 |
|
| 57 |
|
-[[image:attach:kieler08.png]] |
| 58 |
|
- |
| 59 |
|
-Name it abo.sct: |
| 60 |
|
- |
| 61 |
|
-[[image:attach:kieler09.png]] |
| 62 |
|
- |
| 63 |
|
-The textual SCCharts Xtext based editor (for *.sct files) will automatically be opened: |
| 64 |
|
- |
| 65 |
|
-[[image:attach:kieler10.png]] |
| 66 |
|
- |
| 67 |
|
-Now start modeling an SCChart. For example copy & paste the following sct code of abo, the hello world of SCCharts: |
| 68 |
|
- |
| 69 |
|
-{{code title="abo.sct"}} |
| 70 |
|
-scchart ABO { |
| 71 |
|
- input output bool A; |
| 72 |
|
- input output bool B; |
| 73 |
|
- output bool O1; |
| 74 |
|
- output bool O2; |
| 75 |
|
- region: |
| 76 |
|
- |
| 77 |
|
- initial state Init |
| 78 |
|
- --> WaitAB immediate with / O1 = false; O2 = false; |
| 79 |
|
- state WaitAB { |
| 80 |
|
- region HandleA: |
| 81 |
|
- initial state WaitA |
| 82 |
|
- --> DoneA immediate with A / B = true; O1 = true; |
| 83 |
|
- final state DoneA; |
| 84 |
|
- region HandleB: |
| 85 |
|
- initial state WaitB |
| 86 |
|
- --> DoneB with B / O1 = true; |
| 87 |
|
- final state DoneB; |
| 88 |
|
- } |
| 89 |
|
- >-> GotAB with / O1 = false; O2 = true; |
| 90 |
|
- state GotAB; |
| 91 |
|
-} |
| 92 |
|
-{{/code}} |
| 93 |
|
- |
| 94 |
|
- |
| 95 |
|
- |
| 96 |
96 |
= Generate C Code = |
| 97 |
97 |
|
| 98 |
98 |
xxx |