<
From version < 2.1 >
edited by ssm
on 2013/05/03 15:22
To version < 5.1 >
edited by ssm
on 2013/05/03 18:30
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -6,8 +6,75 @@
6 6  
7 7  = SCL Factory Extensions =
8 8  
9 -//coming soon...//
9 +You need several Factories to handle all aspects of Yakindu (SGraph + SText) and the extended SCChart models. The SCL Factory Extension provides you with shortcuts for all factories.
10 10  
11 +|=(((
12 +Shortcut
13 +)))|=(((
14 +Factory
15 +)))|=(% colspan="1" %)(% colspan="1" %)
16 +(((
17 + Description
18 +)))
19 +|(((
20 +SGraph()
21 +)))|(((
22 +SGraphFactory::eINSTANCE
23 +)))|(% colspan="1" %)(% colspan="1" %)
24 +(((
25 +Factory for yakindu statechart models
26 +)))
27 +|(% colspan="1" %)(% colspan="1" %)
28 +(((
29 +SText()
30 +)))|(% colspan="1" %)(% colspan="1" %)
31 +(((
32 +StextFactory::eINSTANCE
33 +)))|(% colspan="1" %)(% colspan="1" %)
34 +(((
35 +Factory for yakindu expressions
36 +)))
37 +|(% colspan="1" %)(% colspan="1" %)
38 +(((
39 +SyncGraph()
40 +)))|(% colspan="1" %)(% colspan="1" %)
41 +(((
42 +SyncgraphFactory::eINSTANCE
43 +)))|(% colspan="1" %)(% colspan="1" %)
44 +(((
45 +Factory for sgraph extensions
46 +)))
47 +|(% colspan="1" %)(% colspan="1" %)
48 +(((
49 +SyncText()
50 +)))|(% colspan="1" %)(% colspan="1" %)
51 +(((
52 +SynctextFactory::eINSTANCE
53 +)))|(% colspan="1" %)(% colspan="1" %)
54 +(((
55 +Factory for stext extensions
56 +)))
57 +|(% colspan="1" %)(% colspan="1" %)
58 +(((
59 +SCCExp()
60 +)))|(% colspan="1" %)(% colspan="1" %)
61 +(((
62 +SCChartsExpFactory::eINSTANCE
63 +)))|(% colspan="1" %)(% colspan="1" %)
64 +(((
65 +Factory for SCCharts specific expression extensions
66 +)))
67 +|(% colspan="1" %)(% colspan="1" %)
68 +(((
69 +SCL()
70 +)))|(% colspan="1" %)(% colspan="1" %)
71 +(((
72 +SclFactory::eINSTANCE
73 +)))|(% colspan="1" %)(% colspan="1" %)
74 +(((
75 +Factory for SCL
76 +)))
77 +
11 11  = SCL Create Extensions =
12 12  
13 13  //coming soon...//
... ... @@ -18,8 +18,19 @@
18 18  
19 19  = SCL Ordering Extensions =
20 20  
21 -//coming soon...//
88 +The Ordering Extensions provide functions, which can be used in the //xtend sort// context.
22 22  
90 +|=(((
91 +Method
92 +)))|=(((
93 +Description
94 +)))
95 +|(((
96 +def **int** compareSCLRegionStateOrder(SyncState, SyncState)(% style="font-size: small;" %)
97 +)))|(((
98 +Sorts states according to their type. Initial states come first, final states last.
99 +)))
100 +
23 23  = SCL Statement Extensions =
24 24  
25 25  //coming soon...//
... ... @@ -26,12 +26,117 @@
26 26  
27 27  = SCL Thread Extensions =
28 28  
29 -//coming soon...//
107 +The Thread Extensions provide functions to ease the handling of SCL threads and statements in the context of SCL threads.
30 30  
109 +|=(((
110 +Method
111 +)))|=(((
112 +Description
113 +)))
114 +|(((
115 +def AbstractThread getThread(Instruction)
116 +
117 +def AbstractThread getThread(Statement)(% style="font-size: small;" %)
118 +)))|(((
119 +Returns the SCL thread of a SCL statement or SCL instruction.
120 +)))
121 +|(% colspan="1" %)(% colspan="1" %)
122 +(((
123 +def AbstractThread getMainThread(Instruction)
124 +
125 +def AbstractThread getMainThread(Statement)(% style="font-size: small;" %)
126 +)))|(% colspan="1" %)(% colspan="1" %)
127 +(((
128 +Returns the main thread of a SCL program.
129 +)))
130 +|(% colspan="1" %)(% colspan="1" %)
131 +(((
132 +def **boolean** isInSameThreadAs(Instruction, Instruction)
133 +
134 +def **boolean** isInSameThreadAs(Statement, Statement)
135 +)))|(% colspan="1" %)(% colspan="1" %)
136 +(((
137 +Returns true, if both instructions/statements are in the same thread.
138 +)))
139 +|(% colspan="1" %)(% colspan="1" %)
140 +(((
141 +def **boolean** isInMainThread(Instruction)
142 +
143 +def **boolean** isInMainThread(Statement)
144 +)))|(% colspan="1" %)(% colspan="1" %)
145 +(((
146 +Returns true, if the instruction/statement runs in the main thread.
147 +)))
148 +|(% colspan="1" %)(% colspan="1" %)
149 +(((
150 +def **boolean** isInThread(Instruction, AbstractThread)
151 +
152 +def **boolean** isInThread(Statement, AbstractThread)
153 +)))|(% colspan="1" %)(% colspan="1" %)
154 +(((
155 +Returns true, if the instruction/statement runs in the given thread.
156 +)))
157 +|(% colspan="1" %)(% colspan="1" %)
158 +(((
159 +def **boolean** contains(AbstractThread, Instruction)
160 +
161 +def **boolean** contains(AbstractThread, Statements)
162 +)))|(% colspan="1" %)(% colspan="1" %)
163 +(((
164 +Returns true, if the thread contains the given instruction/statement.
165 +)))
166 +|(% colspan="1" %)(% colspan="1" %)
167 +(((
168 +def dropPrevious(AbstractThread, Statement)
169 +
170 +def dropPrevious(List<Statement>, Statement)(% style="font-size: small;" %)
171 +)))|(% colspan="1" %)(% colspan="1" %)
172 +(((
173 +Drops all preceeding statements in a thread or a list of statements before the given statement.
174 +)))
175 +
31 31  = SCL Goto Extensions =
32 32  
33 -//coming soon...//
178 +To help with the handling of the goto statement and its target instruction, use the SCL Goto Extensions.
34 34  
180 +|=(((
181 +Method
182 +)))|=(((
183 +Description
184 +)))
185 +|(((
186 +def Statement getTargetStatement(Goto)
187 +
188 +def Statement getTargetStatement(Goto, AbstractThread)
189 +)))|(((
190 +Returns the target statement of a goto instruction (in the context of the (given) thread).
191 +)))
192 +|(% colspan="1" %)(% colspan="1" %)
193 +(((
194 +def boolean targetExists(Goto)
195 +
196 +def boolean targetExists(Goto, AbstractThread)
197 +)))|(% colspan="1" %)(% colspan="1" %)
198 +(((
199 +Returns true, if the target of a goto instruction exists (in the context of the (given) thread).
200 +)))
201 +|(% colspan="1" %)(% colspan="1" %)
202 +(((
203 +def InstructionStatement getInstructionStatement(Statement)(% style="font-size: small;" %)
204 +)))|(% colspan="1" %)(% colspan="1" %)
205 +(((
206 +Returns the first valid InstructionStatement in a thread after the given statement. **May return null, if no further InstructionStatement exists.**
207 +
208 +To get a valid instruction form a goto jump, one can write "goto.getTargetStatement?.getInstructionStatement?.instruction". The result value will be the instruction or null.
209 +)))
210 +|(% colspan="1" %)(% colspan="1" %)
211 +(((
212 +def getIncomingGotos(Statement)
213 +)))|(% colspan="1" %)(% colspan="1" %)
214 +(((
215 +Returns a list of all gotos that target the given statement. If you want to retrieve the count of incoming goto jumps, use "getIncomingGotos.size".
216 +)))
217 +
35 35  = SCL Expression Extensions =
36 36  
37 37  //coming soon...//
Confluence.Code.ConfluencePageClass[0]
Id
... ... @@ -1,1 +1,1 @@
1 -6750228
1 +6750233
URL
... ... @@ -1,1 +1,1 @@
1 -https://rtsys.informatik.uni-kiel.de/confluence//wiki/spaces/KIELER/pages/6750228/SCL Extensions
1 +https://rtsys.informatik.uni-kiel.de/confluence//wiki/spaces/KIELER/pages/6750233/SCL Extensions