Changes for page Kieler Compiler

Last modified by Richard Kreissig on 2023/09/14 10:52

From version 12.1
edited by cmot
on 2014/03/17 11:21
Change comment: There is no comment for this version
To version 22.1
edited by cmot
on 2014/03/21 14:35
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -20,7 +20,11 @@
20 20  
21 21  The KIELER Compiler (KiCo) project allows to register step-by-step model transformations on EObjects that could be written in Xtend or Java. These transformations are registered using an extension point provided (see below). After registering transformations these can be used by simply call the KielerCompiler compilation method as also explained further below.
22 22  
23 +|=(((
23 23  [[image:attach:KiCo.jpg]]
25 +)))|=(((
26 +[[image:attach:KiCo3.jpg]]
27 +)))
24 24  
25 25  == Extension Point ==
26 26  
... ... @@ -69,7 +69,7 @@
69 69  * method: The name of the transformation method. Its signature must ensure that it returns an EObject an only take an EObject argument. Otherwise it cannot be found by KiCo.
70 70  * id: The unique String ID for this transformation. This is the ID the transformation will be referenced throughout KiCo.
71 71  * name: An optional String name for this transformation. If nothing is entered here the ID will be used as a name.
72 -* dependencies: An optional String as comma separated list of other transformation IDs that must run BEFORE this transformation. If nothing is entered here then this means there are no dependencies.
76 +* dependencies: An optional String as comma separated list of other transformation IDs that must run AFTER this transformation down the compile-chain. This means if the current transformation is selected to run, all transformations that have dependencies on this will be run BEFORE. If nothing is entered here then this means there are no dependencies.
73 73  )))
74 74  |(((
75 75  transformationGroup
... ... @@ -77,8 +77,9 @@
77 77  Sometimes you may want to group other transformations and give this group a specific transformation ID as a kind of shortcut. You can do this by using the transformationGroup element giving the following information:
78 78  
79 79  * id: The unique String ID for this transformation group. This is the ID the transformation group will be referenced throughout KiCo. It may also again be referenced by other transformation groups!
80 -* dependencies: These are NOT optional for groups. Groups must specify their transformations as dependencies. Use a String as comma separated list of other transformation IDs or transformation group IDs that should represent this group. Note that the order will be implied by the referenced transformations itself although if there is a free degree of order it can be influenced by the order specified here in the group.
84 +* transformations: Groups must specify their transformations. Use a String as comma separated list of other transformation IDs or transformation group IDs that should represent this group. Note that the order will be implied by the referenced transformations itself although if there is a free degree of order it can be influenced by the order specified here in the group.
81 81  * name: An optional String name for this transformation. If nothing is entered here the ID will be used as a name.
86 +* alternatives: When selected this group specifies alternatives only. When this group is referenced, the first transformation is selected if not any other transformation from this group is already in the list of selected transformations. This is an advanced feature.
82 82  )))
83 83  
84 84  === Example ===
... ... @@ -91,9 +91,7 @@
91 91   dependencies="TRIGGEREFFECT, SURFACEDEPTH"
92 92   name="Transform All Normalize">
93 93   </transformationGroup>
94 - </extension>
95 - <extension
96 - point="de.cau.cs.kieler.kico.transformation">
99 +
97 97   <transformationMethod
98 98   class="de.cau.cs.kieler.sccharts.extensions.SCChartsCoreTransformation"
99 99   id="TRIGGEREFFECT"
... ... @@ -100,10 +100,7 @@
100 100   method="transformTriggerEffect"
101 101   name="Transform Trigger and Effect">
102 102   </transformationMethod>
103 - </extension>
104 -
105 - <extension
106 - point="de.cau.cs.kieler.kico.transformation">
106 +
107 107   <transformationMethod
108 108   class="de.cau.cs.kieler.sccharts.extensions.SCChartsCoreTransformation"
109 109   id="SURFACEDEPTH"
... ... @@ -110,10 +110,7 @@
110 110   method="transformSurfaceDepth"
111 111   name="Transform Surface Depth">
112 112   </transformationMethod>
113 - </extension>
114 -
115 - <extension
116 - point="de.cau.cs.kieler.kico.transformation">
113 +
117 117   <transformationGroup
118 118   id="ALL"
119 119   dependencies="CORE NORMALIZE"
... ... @@ -185,6 +185,105 @@
185 185  
186 186  {{/code}}
187 187  
185 +=== Requirement Completion ===
186 +
187 +
188 +
189 +|=(((
190 +(% style="text-align: center;" %)
191 +Original
192 +
193 +|=(((
194 + [[image:attach:dependencies2.jpg]]
195 +
196 +(% style="text-align: center;" %)
197 +Original Dependency
198 +Graph
199 +)))|=(((
200 +(% style="text-align: center;" %)
201 +[[image:attach:dependencies3.jpg]]
202 +
203 +(% style="text-align: center;" %)
204 +Two alternative
205 +transformation
206 +implementations
207 +for Abort
208 +)))
209 +
210 +
211 +)))|=(((
212 +(% style="text-align: center;" %)
213 +Example 1
214 +
215 +|=(((
216 + [[image:attach:dependencies4.jpg]]
217 +
218 +(% style="text-align: center;" %)
219 +Selected for
220 +transformation
221 +)))|=(((
222 + [[image:attach:dependencies4b.jpg]]
223 +
224 +(% style="text-align: center;" %)
225 +Auto selected
226 +requirements
227 +)))
228 +
229 +
230 +)))
231 +
232 +
233 +
234 +
235 +
236 +|=(((
237 +Example 2
238 +
239 +|=(((
240 +[[image:attach:dependencies5.jpg]]
241 +
242 +(% style="text-align: center;" %)
243 +Selected for
244 +transformation
245 +)))|=(% style="text-align: center;" %)(% style="text-align: center;" %)
246 +(((
247 +[[image:attach:dependencies5b.jpg]]
248 +
249 +Auto selected
250 +requirements
251 +using DEFAULT
252 +of alternative
253 +group
254 +
255 +
256 +)))
257 +
258 +
259 +)))|=(((
260 +(% style="text-align: center;" %)
261 +Example 3
262 +
263 +|=(((
264 +[[image:attach:dependencies6.jpg]]
265 +
266 +(% style="text-align: center;" %)
267 +Selected for
268 +transformation
269 +)))|=(((
270 +[[image:attach:dependencies6b.jpg]]
271 +
272 +(% style="text-align: center;" %)
273 +Auto selected
274 +requirements
275 +using selected
276 +alternative
277 +)))
278 +
279 +
280 +)))
281 +
282 +
283 +
188 188  == Help / Problems / FAQs ==
189 189  
190 190  Maybe you get into problems when using KiCo. The following list should give you hints to solve these. If you have a problem not considered here please write us an e-mail (see above for contact information of the persons in charge of KiCo).
... ... @@ -229,9 +229,20 @@
229 229  with the ID "abort2".
230 230  )))
231 231  |(((
232 -
328 +You get the following error:
329 +
330 +{{{!ENTRY de.cau.cs.kieler.kico 2 2 2014-03-17 11:26:13.818}}}
331 +
332 +\\
333 +
334 +{{{!MESSAGE Extension 'TERMINATION' from component: de.cau.cs.kieler.sccharts cannot beloaded becaus this ID is already taken. (de.cau.cs.kieler.kico)}}}
233 233  )))|(((
234 -
336 +The trasformation with ID "TERMINATION" is already
337 + registered and this ID cannot be used a second time.
338 +The component "de.cau...sccharts" tries to register
339 +a transformation with this ID while this ID is already
340 +taken.
235 235  )))|(((
236 -
342 +Rename one of the IDs or form a group of
343 + transformations.
237 237  )))
Confluence.Code.ConfluencePageClass[0]
Id
... ... @@ -1,1 +1,1 @@
1 -9470081
1 +9470116
URL
... ... @@ -1,1 +1,1 @@
1 -https://rtsys.informatik.uni-kiel.de/confluence//wiki/spaces/KIELER/pages/9470081/Kieler Compiler
1 +https://rtsys.informatik.uni-kiel.de/confluence//wiki/spaces/KIELER/pages/9470116/Kieler Compiler