<
From version < 12.1 >
edited by stu115342
on 2017/06/26 16:14
To version < 14.1 >
edited by stu114053
on 2017/08/07 12:45
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.stu115342
1 +XWiki.stu114053
Content
... ... @@ -78,6 +78,43 @@
78 78  }
79 79  {{/code}}
80 80  
81 +{{code language="sct" title="SCTx CodeStyle" linenumbers="true"}}
82 +#import blub
83 +
84 +
85 +scchart Test {
86 +
87 + input bool trigger
88 + input int array[10]
89 +
90 + output bool action0, action1
91 +
92 + int fun
93 +
94 + region first_region "Have fun":
95 + // State example
96 + initial state example_state
97 + go to example_state immediate
98 + if trigger
99 + do action0 = true
100 + ; action1 = false
101 + ; fun++
102 + label "Having fun"
103 +
104 + go to example_state immediate
105 + if trigger
106 + do action0 = true
107 + ; action1 = false
108 + ; fun--
109 + label "Having fun"
110 +
111 + // Region
112 + region second_region "Do nothing concurrently":
113 +
114 + initial state init;
115 +}
116 +{{/code}}
117 +
81 81  == Build Settings ==
82 82  
83 83  To have the simulation and SCT build correctly via Prom, one has to modify the Prom environment that builds the project:
... ... @@ -87,6 +87,8 @@
87 87  ** Select tab //Compilation//
88 88  ** Select// kieler-gen// as //target directory//
89 89  ** Set //Snippets directory// to //snippets//
127 +** //Set following as compile chain~://
128 +//T_REFERENCE, T_CONST, T_MAP, T_FOR, T_HISTORY, T_SUSPEND, T_COUNTDELAY, T_SIGNAL, T_PRE, T_WEAKSUSPEND, T_DEFERRED, T_DURING, T_COMPLEXFINALSTATE, T_ABORT, T_EXIT, T_STATIC, T_INITIALIZATION, T_ENTRY, T_CONNECTOR, T_TRIGGEREFFECT, T_SURFACEDEPTH, T_sccharts.scg, T_scg.dependency, [[T_scg.basicblock.sc>>url:http://T_scg.basicblock.sc||shape="rect"]], T_scg.guardExpressions, T_scg.guards, T_scg.scheduling, T_scg.sequentialize, T_scg.s, T_s.c//
90 90  
91 91  == Git ==
92 92  
... ... @@ -99,3 +99,5 @@
99 99  In case of non-trivial conflicts: ask.
100 100  
101 101  \\
141 +
142 +\\
Confluence.Code.ConfluencePageClass[0]
Id
... ... @@ -1,1 +1,1 @@
1 -31162467
1 +31162525
URL
... ... @@ -1,1 +1,1 @@
1 -https://rtsys.informatik.uni-kiel.de/confluence//wiki/spaces/RP2/pages/31162467/Project Guidelines
1 +https://rtsys.informatik.uni-kiel.de/confluence//wiki/spaces/RP2/pages/31162525/Project Guidelines