Changes for page Transformation Mapping (KTM)
Last modified by Richard Kreissig on 2023/09/14 11:14
<
>
edited by Alexander Schulz-Rosengarten
on 2015/10/08 10:35
on 2015/10/08 10:35
edited by Alexander Schulz-Rosengarten
on 2018/11/22 14:53
on 2018/11/22 14:53
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,10 +1,12 @@ 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. The documentation will be updated eventually. 3 +{{panel bgColor="orange" title="Deprecated since 0.11"}} 4 +This article is deprecated. The described features are no longer available in current releases. 5 + 6 +KTM was redesigned is now available as KiTT included in KiCool. 5 5 {{/panel}} 6 6 7 - 9 +\\ 8 8 9 9 === Topics === 10 10 ... ... @@ -20,7 +20,7 @@ 20 20 21 21 == Transformation Tree Model == 22 22 23 - 25 +\\ 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 - 39 +\\ 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 - 93 +\\ 92 92 93 -{{code title="transformTriggerEffect CodeSnipped" theme="Eclipse" linenumbers="true"language="java" firstline="1"collapse="true"}}95 +{{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 - 163 +\\ 162 162 163 -{{code title="Transform and create TranformationTree" theme="Eclipse" linenumbers="true"language="java" firstline="1"collapse="true"}}165 +{{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 - 184 +\\ 183 183 184 184 The resulting TransformationTree has following structure and representing each step and model of the transformation. 185 185 186 - 188 +\\ 187 187 188 -|=(% colspan="4" style="text-align: center;" %)(% colspan="4" style="text-align: center;" %) 190 +(% class="wrapped" %) 191 +|=(% style="text-align: center;" colspan="4" %)(% style="text-align: center;" colspan="4" %) 189 189 ((( 193 +(% class="content-wrapper" %) 194 +((( 190 190 [[image:attach:example_tree.jpeg]] 191 191 ))) 192 -|(% colspan="1" style="text-align: center;" %)(% colspan="1" style="text-align: center;" %) 197 +))) 198 +|(% style="text-align: center;" colspan="1" %)(% style="text-align: center;" colspan="1" %) 193 193 ((( 200 +(% class="content-wrapper" %) 201 +((( 194 194 [[image:attach:example_abo.jpeg]] 195 -)))|(% colspan="1" style="text-align: center;" %)(% colspan="1" style="text-align: center;" %) 203 +))) 204 +)))|(% style="text-align: center;" colspan="1" %)(% style="text-align: center;" colspan="1" %) 196 196 ((( 206 +(% class="content-wrapper" %) 207 +((( 197 197 [[image:attach:example_abo_splitTE.jpeg]] 198 -)))|(% colspan="1" style="text-align: center;" %)(% colspan="1" style="text-align: center;" %) 209 +))) 210 +)))|(% style="text-align: center;" colspan="1" %)(% style="text-align: center;" colspan="1" %) 199 199 ((( 212 +(% class="content-wrapper" %) 213 +((( 200 200 [[image:attach:example_abo_norm.jpeg]] 201 -)))|(% colspan="1" style="text-align: center;" %)(% colspan="1" style="text-align: center;" %) 215 +))) 216 +)))|(% style="text-align: center;" colspan="1" %)(% style="text-align: center;" colspan="1" %) 202 202 ((( 218 +(% class="content-wrapper" %) 219 +((( 203 203 [[image:attach:example_abo_scg.jpeg]] 204 204 ))) 222 +))) 205 205 206 - 224 +\\ 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 - 232 +\\ 215 215 216 -{{code title="resolveMapping" theme="Eclipse" linenumbers="true" language="java"firstline="1" collapse="true"}}234 +{{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 - 246 +\\ 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 - 254 +\\ 237 237 238 238 Also a more detailed view is available, showing all EObjects relation. 239 239 240 - 258 +\\ 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 - 282 +\\
- Confluence.Code.ConfluencePageClass[0]
-
- Id
-
... ... @@ -1,1 +1,1 @@ 1 -508232 151 +50823277 - URL
-
... ... @@ -1,1 +1,1 @@ 1 -https://rtsys.informatik.uni-kiel.de/confluence//wiki/spaces/KIELER/pages/508232 15/Transformation Mapping (KTM)1 +https://rtsys.informatik.uni-kiel.de/confluence//wiki/spaces/KIELER/pages/50823277/Transformation Mapping (KTM)