<
From version < 17.1 >
edited by Alexander Schulz-Rosengarten
on 2015/10/08 10:35
To version < 18.1 >
edited by Alexander Schulz-Rosengarten
on 2018/11/22 14:44
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1,10 +1,10 @@
1 1  = KTM - KIELER Transformation Mapping =
2 2  
3 3  {{panel bgColor="orange" title="DEPRECATED"}}
4 -This article is deprecated. KTM was redesigned is now available as KiTT. The documentation will be updated eventually.
4 +This article is deprecated. KTM was redesigned is now available as KiTT.
5 5  {{/panel}}
6 6  
7 -
7 +\\
8 8  
9 9  === Topics ===
10 10  
... ... @@ -20,7 +20,7 @@
20 20  
21 21  == Transformation Tree Model ==
22 22  
23 -
23 +\\
24 24  
25 25  To offer a mapping between model-elements during multiple transformations KTM introduces a model called TransformationTree to represent these relations.
26 26  
... ... @@ -34,7 +34,7 @@
34 34  
35 35  **Second part** (lower half) is object-mapping. Instances of models contain EObjects as their elements, which are represented by EObjectWrapper-class in this metamodel. The EObjectWrapper of two models are connected with EObjectTransformations-class to express their origination relationship in corresponding model transformation.
36 36  
37 -
37 +\\
38 38  
39 39  An abstract example of an instance of this model:
40 40  
... ... @@ -88,9 +88,9 @@
88 88  
89 89  The codeblock blow show a snipped of SCChartCoreTransformation with additional mapping registration.
90 90  
91 -
91 +\\
92 92  
93 -{{code title="transformTriggerEffect CodeSnipped" theme="Eclipse" linenumbers="true" language="java" firstline="1" collapse="true"}}
93 +{{code language="java" theme="Eclipse" firstline="1" title="transformTriggerEffect CodeSnipped" linenumbers="true" collapse="true"}}
94 94  ...
95 95    @Inject
96 96   extension TransformationMapping
... ... @@ -158,9 +158,9 @@
158 158  
159 159  The following code will now perform each transformation stepwise and updates a transformation tree each step.
160 160  
161 -
161 +\\
162 162  
163 -{{code title="Transform and create TranformationTree" theme="Eclipse" linenumbers="true" language="java" firstline="1" collapse="true"}}
163 +{{code language="java" theme="Eclipse" firstline="1" title="Transform and create TranformationTree" linenumbers="true" collapse="true"}}
164 164  aboSplitTE = SCCtransformation.transformTriggerEffect(abo);
165 165  
166 166  ModelWrapper aboSplitTEModel =
... ... @@ -179,31 +179,47 @@
179 179  tree = transformationTree.root(aboSCGModel);
180 180  {{/code}}
181 181  
182 -
182 +\\
183 183  
184 184  The resulting TransformationTree has following structure and representing each step and model of the transformation.
185 185  
186 -
186 +\\
187 187  
188 -|=(% colspan="4" style="text-align: center;" %)(% colspan="4" style="text-align: center;" %)
188 +(% class="wrapped" %)
189 +|=(% style="text-align: center;" colspan="4" %)(% style="text-align: center;" colspan="4" %)
189 189  (((
191 +(% class="content-wrapper" %)
192 +(((
190 190  [[image:attach:example_tree.jpeg]]
191 191  )))
192 -|(% colspan="1" style="text-align: center;" %)(% colspan="1" style="text-align: center;" %)
195 +)))
196 +|(% style="text-align: center;" colspan="1" %)(% style="text-align: center;" colspan="1" %)
193 193  (((
198 +(% class="content-wrapper" %)
199 +(((
194 194  [[image:attach:example_abo.jpeg]]
195 -)))|(% colspan="1" style="text-align: center;" %)(% colspan="1" style="text-align: center;" %)
201 +)))
202 +)))|(% style="text-align: center;" colspan="1" %)(% style="text-align: center;" colspan="1" %)
196 196  (((
204 +(% class="content-wrapper" %)
205 +(((
197 197  [[image:attach:example_abo_splitTE.jpeg]]
198 -)))|(% colspan="1" style="text-align: center;" %)(% colspan="1" style="text-align: center;" %)
207 +)))
208 +)))|(% style="text-align: center;" colspan="1" %)(% style="text-align: center;" colspan="1" %)
199 199  (((
210 +(% class="content-wrapper" %)
211 +(((
200 200  [[image:attach:example_abo_norm.jpeg]]
201 -)))|(% colspan="1" style="text-align: center;" %)(% colspan="1" style="text-align: center;" %)
213 +)))
214 +)))|(% style="text-align: center;" colspan="1" %)(% style="text-align: center;" colspan="1" %)
202 202  (((
216 +(% class="content-wrapper" %)
217 +(((
203 203  [[image:attach:example_abo_scg.jpeg]]
204 204  )))
220 +)))
205 205  
206 -
222 +\\
207 207  
208 208  Furthermore the TransformationTree now contains mapping information for the whole transformation chain.
209 209  
... ... @@ -211,9 +211,9 @@
211 211  
212 212  The following code has starts with an instance of the initial ABO SCChart and SCG, along with the TranformationTree above.
213 213  
214 -
230 +\\
215 215  
216 -{{code title="resolveMapping" theme="Eclipse" linenumbers="true" language="java" firstline="1" collapse="true"}}
232 +{{code language="java" theme="Eclipse" firstline="1" title="resolveMapping" linenumbers="true" collapse="true"}}
217 217  @Inject
218 218  extension TransformationTreeExtensions
219 219  
... ... @@ -225,7 +225,7 @@
225 225  val mapping = resolvemapping(aboSCCModelWrapper, aboSCC, aboSCGModelWrapper, aboSCG);
226 226  {{/code}}
227 227  
228 -
244 +\\
229 229  
230 230  The returned mapping is a multi mapping between all object in aboSCC and their resulting objects in aboSCG.
231 231  
... ... @@ -233,11 +233,11 @@
233 233  
234 234  [[image:attach:example_abo_resolved.jpeg]]
235 235  
236 -
252 +\\
237 237  
238 238  Also a more detailed view is available, showing all EObjects relation.
239 239  
240 -
256 +\\
241 241  
242 242  [[image:attach:example_abo_resolved_elements.jpeg]]
243 243  
... ... @@ -261,4 +261,4 @@
261 261  
262 262  If Selective selective mapping edge is enabled no mapping edges are displayed. If you select (//CLICK//) an element in one of the two model its relation to corresponding element is displayed. You can multi-select with //CTRL+CLICK// or deselect by clicking on an edge.
263 263  
264 -
280 +\\
Confluence.Code.ConfluencePageClass[0]
Id
... ... @@ -1,1 +1,1 @@
1 -50823215
1 +50823216
URL
... ... @@ -1,1 +1,1 @@
1 -https://rtsys.informatik.uni-kiel.de/confluence//wiki/spaces/KIELER/pages/50823215/Transformation Mapping (KTM)
1 +https://rtsys.informatik.uni-kiel.de/confluence//wiki/spaces/KIELER/pages/50823216/Transformation Mapping (KTM)