Changes for page SCCharts Development
Last modified by Richard Kreissig on 2023/09/14 10:04
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Objects (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -332,7 +332,28 @@ 332 332 1111. preferred: (leave it blank) 333 333 11. If you start your KIELER instance now, you should get a new compilation chain which has only one transformation: yours, which doesn't do anything. 334 334 1. If you want to rename your feature in the Compiler Selection (without changing its Id), override the getName method and return a new name. Rename your feature appropriately. 335 +1. Now, fill your transformation with life: 336 +11. Inside your transformation class, add a new method with the following signature: def State transform(State rootState, KielerCompilerContext context). This transformation will be executed if the feature is selected in the Compiler Selection. 337 +11. ((( 338 +Add thew following body to the function and try to understand the Xtend code. 335 335 340 +{{code language="java" title="transform"}} 341 + def State transform(State rootState, KielerCompilerContext context) { 342 + val newState = SCChartsFactory.eINSTANCE.createState => [ 343 + id = "ololo" 344 + label = "ololo" 345 + ] 346 + 347 + rootState.regions.filter(ControlflowRegion).head.states += newState 348 + 349 + rootState 350 + } 351 +{{/code}} 352 +))) 353 +11. When selecting your transformation, the SCChart gets transformed and looks like the version on the right. 354 +1. Extend the transformation so that each transition is split up in two and connected via a transient state meaning that the original transformation should point to the new state and a new immediate transformation then points to the original target state. 355 +1. Try your new transformation with ABO. The result should look like the example on the right. 356 + 336 336 337 337 {{/layout-cell}} 338 338
- Confluence.Code.ConfluencePageClass[0]
-
- Id
-
... ... @@ -1,1 +1,1 @@ 1 -168103 681 +16810372 - URL
-
... ... @@ -1,1 +1,1 @@ 1 -https://rtsys.informatik.uni-kiel.de/confluence//wiki/spaces/TUT/pages/168103 68/SCCharts Development1 +https://rtsys.informatik.uni-kiel.de/confluence//wiki/spaces/TUT/pages/16810372/SCCharts Development