<
From version < 18.1 >
edited by Alexander Schulz-Rosengarten
on 2018/11/22 14:44
To version < 16.1 >
edited by Alexander Schulz-Rosengarten
on 2014/02/18 13:12
>
Change comment: added visualisation doc

Summary

Details

Page properties
Content
... ... @@ -1,11 +1,7 @@
1 1  = KTM - KIELER Transformation Mapping =
2 2  
3 -{{panel bgColor="orange" title="DEPRECATED"}}
4 -This article is deprecated. KTM was redesigned is now available as KiTT.
5 -{{/panel}}
3 +
6 6  
7 -\\
8 -
9 9  === Topics ===
10 10  
11 11  
... ... @@ -20,7 +20,7 @@
20 20  
21 21  == Transformation Tree Model ==
22 22  
23 -\\
19 +
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 -\\
33 +
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 -\\
87 +
92 92  
93 -{{code language="java" theme="Eclipse" firstline="1" title="transformTriggerEffect CodeSnipped" linenumbers="true" collapse="true"}}
89 +{{code title="transformTriggerEffect CodeSnipped" theme="Eclipse" linenumbers="true" language="java" firstline="1" 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 -\\
157 +
162 162  
163 -{{code language="java" theme="Eclipse" firstline="1" title="Transform and create TranformationTree" linenumbers="true" collapse="true"}}
159 +{{code title="Transform and create TranformationTree" theme="Eclipse" linenumbers="true" language="java" firstline="1" collapse="true"}}
164 164  aboSplitTE = SCCtransformation.transformTriggerEffect(abo);
165 165  
166 166  ModelWrapper aboSplitTEModel =
... ... @@ -179,47 +179,31 @@
179 179  tree = transformationTree.root(aboSCGModel);
180 180  {{/code}}
181 181  
182 -\\
178 +
183 183  
184 184  The resulting TransformationTree has following structure and representing each step and model of the transformation.
185 185  
186 -\\
182 +
187 187  
188 -(% class="wrapped" %)
189 -|=(% style="text-align: center;" colspan="4" %)(% style="text-align: center;" colspan="4" %)
184 +|=(% colspan="4" style="text-align: center;" %)(% colspan="4" style="text-align: center;" %)
190 190  (((
191 -(% class="content-wrapper" %)
192 -(((
193 193  [[image:attach:example_tree.jpeg]]
194 194  )))
195 -)))
196 -|(% style="text-align: center;" colspan="1" %)(% style="text-align: center;" colspan="1" %)
188 +|(% colspan="1" style="text-align: center;" %)(% colspan="1" style="text-align: center;" %)
197 197  (((
198 -(% class="content-wrapper" %)
199 -(((
200 200  [[image:attach:example_abo.jpeg]]
201 -)))
202 -)))|(% style="text-align: center;" colspan="1" %)(% style="text-align: center;" colspan="1" %)
191 +)))|(% colspan="1" style="text-align: center;" %)(% colspan="1" style="text-align: center;" %)
203 203  (((
204 -(% class="content-wrapper" %)
205 -(((
206 206  [[image:attach:example_abo_splitTE.jpeg]]
207 -)))
208 -)))|(% style="text-align: center;" colspan="1" %)(% style="text-align: center;" colspan="1" %)
194 +)))|(% colspan="1" style="text-align: center;" %)(% colspan="1" style="text-align: center;" %)
209 209  (((
210 -(% class="content-wrapper" %)
211 -(((
212 212  [[image:attach:example_abo_norm.jpeg]]
213 -)))
214 -)))|(% style="text-align: center;" colspan="1" %)(% style="text-align: center;" colspan="1" %)
197 +)))|(% colspan="1" style="text-align: center;" %)(% colspan="1" style="text-align: center;" %)
215 215  (((
216 -(% class="content-wrapper" %)
217 -(((
218 218  [[image:attach:example_abo_scg.jpeg]]
219 219  )))
220 -)))
221 221  
222 -\\
202 +
223 223  
224 224  Furthermore the TransformationTree now contains mapping information for the whole transformation chain.
225 225  
... ... @@ -227,9 +227,9 @@
227 227  
228 228  The following code has starts with an instance of the initial ABO SCChart and SCG, along with the TranformationTree above.
229 229  
230 -\\
210 +
231 231  
232 -{{code language="java" theme="Eclipse" firstline="1" title="resolveMapping" linenumbers="true" collapse="true"}}
212 +{{code title="resolveMapping" theme="Eclipse" linenumbers="true" language="java" firstline="1" collapse="true"}}
233 233  @Inject
234 234  extension TransformationTreeExtensions
235 235  
... ... @@ -241,7 +241,7 @@
241 241  val mapping = resolvemapping(aboSCCModelWrapper, aboSCC, aboSCGModelWrapper, aboSCG);
242 242  {{/code}}
243 243  
244 -\\
224 +
245 245  
246 246  The returned mapping is a multi mapping between all object in aboSCC and their resulting objects in aboSCG.
247 247  
... ... @@ -249,11 +249,11 @@
249 249  
250 250  [[image:attach:example_abo_resolved.jpeg]]
251 251  
252 -\\
232 +
253 253  
254 254  Also a more detailed view is available, showing all EObjects relation.
255 255  
256 -\\
236 +
257 257  
258 258  [[image:attach:example_abo_resolved_elements.jpeg]]
259 259  
... ... @@ -277,4 +277,4 @@
277 277  
278 278  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.
279 279  
280 -\\
260 +
Confluence.Code.ConfluencePageClass[0]
Id
... ... @@ -1,1 +1,1 @@
1 -50823216
1 +13762915
URL
... ... @@ -1,1 +1,1 @@
1 -https://rtsys.informatik.uni-kiel.de/confluence//wiki/spaces/KIELER/pages/50823216/Transformation Mapping (KTM)
1 +https://rtsys.informatik.uni-kiel.de/confluence//wiki/spaces/KIELER/pages/13762915/Transformation Mapping (KTM)