Changes for page Transformation Mapping (KTM)
Last modified by Richard Kreissig on 2023/09/14 11:14
<
>
edited by Alexander Schulz-Rosengarten
on 2014/02/18 13:12
on 2014/02/18 13:12
edited by Alexander Schulz-Rosengarten
on 2018/11/22 14:46
on 2018/11/22 14:46
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Objects (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1,7 +1,11 @@ 1 1 = KTM - KIELER Transformation Mapping = 2 2 3 - 3 +{{panel bgColor="orange" title="Deprecated since 0.11"}} 4 +This article is deprecated. KTM was redesigned is now available as KiTT included in KiCool. 5 +{{/panel}} 4 4 7 +\\ 8 + 5 5 === Topics === 6 6 7 7 ... ... @@ -16,7 +16,7 @@ 16 16 17 17 == Transformation Tree Model == 18 18 19 - 23 +\\ 20 20 21 21 To offer a mapping between model-elements during multiple transformations KTM introduces a model called TransformationTree to represent these relations. 22 22 ... ... @@ -30,7 +30,7 @@ 30 30 31 31 **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. 32 32 33 - 37 +\\ 34 34 35 35 An abstract example of an instance of this model: 36 36 ... ... @@ -84,9 +84,9 @@ 84 84 85 85 The codeblock blow show a snipped of SCChartCoreTransformation with additional mapping registration. 86 86 87 - 91 +\\ 88 88 89 -{{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"}} 90 90 ... 91 91 @Inject 92 92 extension TransformationMapping ... ... @@ -154,9 +154,9 @@ 154 154 155 155 The following code will now perform each transformation stepwise and updates a transformation tree each step. 156 156 157 - 161 +\\ 158 158 159 -{{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"}} 160 160 aboSplitTE = SCCtransformation.transformTriggerEffect(abo); 161 161 162 162 ModelWrapper aboSplitTEModel = ... ... @@ -175,31 +175,47 @@ 175 175 tree = transformationTree.root(aboSCGModel); 176 176 {{/code}} 177 177 178 - 182 +\\ 179 179 180 180 The resulting TransformationTree has following structure and representing each step and model of the transformation. 181 181 182 - 186 +\\ 183 183 184 -|=(% 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" %) 185 185 ((( 191 +(% class="content-wrapper" %) 192 +((( 186 186 [[image:attach:example_tree.jpeg]] 187 187 ))) 188 -|(% 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" %) 189 189 ((( 198 +(% class="content-wrapper" %) 199 +((( 190 190 [[image:attach:example_abo.jpeg]] 191 -)))|(% 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" %) 192 192 ((( 204 +(% class="content-wrapper" %) 205 +((( 193 193 [[image:attach:example_abo_splitTE.jpeg]] 194 -)))|(% 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" %) 195 195 ((( 210 +(% class="content-wrapper" %) 211 +((( 196 196 [[image:attach:example_abo_norm.jpeg]] 197 -)))|(% 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" %) 198 198 ((( 216 +(% class="content-wrapper" %) 217 +((( 199 199 [[image:attach:example_abo_scg.jpeg]] 200 200 ))) 220 +))) 201 201 202 - 222 +\\ 203 203 204 204 Furthermore the TransformationTree now contains mapping information for the whole transformation chain. 205 205 ... ... @@ -207,9 +207,9 @@ 207 207 208 208 The following code has starts with an instance of the initial ABO SCChart and SCG, along with the TranformationTree above. 209 209 210 - 230 +\\ 211 211 212 -{{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"}} 213 213 @Inject 214 214 extension TransformationTreeExtensions 215 215 ... ... @@ -221,7 +221,7 @@ 221 221 val mapping = resolvemapping(aboSCCModelWrapper, aboSCC, aboSCGModelWrapper, aboSCG); 222 222 {{/code}} 223 223 224 - 244 +\\ 225 225 226 226 The returned mapping is a multi mapping between all object in aboSCC and their resulting objects in aboSCG. 227 227 ... ... @@ -229,11 +229,11 @@ 229 229 230 230 [[image:attach:example_abo_resolved.jpeg]] 231 231 232 - 252 +\\ 233 233 234 234 Also a more detailed view is available, showing all EObjects relation. 235 235 236 - 256 +\\ 237 237 238 238 [[image:attach:example_abo_resolved_elements.jpeg]] 239 239 ... ... @@ -257,4 +257,4 @@ 257 257 258 258 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. 259 259 260 - 280 +\\
- Confluence.Code.ConfluencePageClass[0]
-
- Id
-
... ... @@ -1,1 +1,1 @@ 1 - 137629151 +50823223 - URL
-
... ... @@ -1,1 +1,1 @@ 1 -https://rtsys.informatik.uni-kiel.de/confluence//wiki/spaces/KIELER/pages/ 13762915/Transformation Mapping (KTM)1 +https://rtsys.informatik.uni-kiel.de/confluence//wiki/spaces/KIELER/pages/50823223/Transformation Mapping (KTM)