Skip to content

Commit 4c2f42b

Browse files
committed
Add workflows for transformations from db to metaphors
1 parent 9df1ea9 commit 4c2f42b

12 files changed

Lines changed: 464 additions & 1 deletion

File tree

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2+
<launchConfiguration type="org.eclipse.m2e.Maven2LaunchConfigurationType">
3+
<booleanAttribute key="M2_DEBUG_OUTPUT" value="false"/>
4+
<stringAttribute key="M2_GOALS" value="-pl ../org.svis.generator.run validate exec:exec@run"/>
5+
<booleanAttribute key="M2_NON_RECURSIVE" value="false"/>
6+
<booleanAttribute key="M2_OFFLINE" value="false"/>
7+
<stringAttribute key="M2_PROFILES" value=""/>
8+
<listAttribute key="M2_PROPERTIES">
9+
<listEntry value="workflow=org/svis/generator/run/city/JQA2City.mwe2"/>
10+
</listAttribute>
11+
<stringAttribute key="M2_RUNTIME" value="EMBEDDED"/>
12+
<booleanAttribute key="M2_SKIP_TESTS" value="false"/>
13+
<intAttribute key="M2_THREADS" value="1"/>
14+
<booleanAttribute key="M2_UPDATE_SNAPSHOTS" value="false"/>
15+
<stringAttribute key="M2_USER_SETTINGS" value=""/>
16+
<booleanAttribute key="M2_WORKSPACE_RESOLUTION" value="true"/>
17+
<listAttribute key="org.eclipse.debug.ui.favoriteGroups">
18+
<listEntry value="org.eclipse.debug.ui.launchGroup.run"/>
19+
</listAttribute>
20+
<stringAttribute key="org.eclipse.jdt.launching.WORKING_DIRECTORY" value="${workspace_loc:/org.svis.generator.releng}"/>
21+
</launchConfiguration>
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2+
<launchConfiguration type="org.eclipse.m2e.Maven2LaunchConfigurationType">
3+
<booleanAttribute key="M2_DEBUG_OUTPUT" value="false"/>
4+
<stringAttribute key="M2_GOALS" value="-pl ../org.svis.generator.run validate exec:exec@run"/>
5+
<booleanAttribute key="M2_NON_RECURSIVE" value="false"/>
6+
<booleanAttribute key="M2_OFFLINE" value="false"/>
7+
<stringAttribute key="M2_PROFILES" value=""/>
8+
<listAttribute key="M2_PROPERTIES">
9+
<listEntry value="workflow=org/svis/generator/run/multisphere/JQA2MultiSphere.mwe2"/>
10+
</listAttribute>
11+
<stringAttribute key="M2_RUNTIME" value="EMBEDDED"/>
12+
<booleanAttribute key="M2_SKIP_TESTS" value="false"/>
13+
<intAttribute key="M2_THREADS" value="1"/>
14+
<booleanAttribute key="M2_UPDATE_SNAPSHOTS" value="false"/>
15+
<stringAttribute key="M2_USER_SETTINGS" value=""/>
16+
<booleanAttribute key="M2_WORKSPACE_RESOLUTION" value="true"/>
17+
<listAttribute key="org.eclipse.debug.ui.favoriteGroups">
18+
<listEntry value="org.eclipse.debug.ui.launchGroup.run"/>
19+
</listAttribute>
20+
<stringAttribute key="org.eclipse.jdt.launching.WORKING_DIRECTORY" value="${workspace_loc:/org.svis.generator.releng}"/>
21+
</launchConfiguration>
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2+
<launchConfiguration type="org.eclipse.m2e.Maven2LaunchConfigurationType">
3+
<booleanAttribute key="M2_DEBUG_OUTPUT" value="false"/>
4+
<stringAttribute key="M2_GOALS" value="-pl ../org.svis.generator.run validate exec:exec@run"/>
5+
<booleanAttribute key="M2_NON_RECURSIVE" value="false"/>
6+
<booleanAttribute key="M2_OFFLINE" value="false"/>
7+
<stringAttribute key="M2_PROFILES" value=""/>
8+
<listAttribute key="M2_PROPERTIES">
9+
<listEntry value="workflow=org/svis/generator/run/multisphere/JQA2MultiSphereBU.mwe2"/>
10+
</listAttribute>
11+
<stringAttribute key="M2_RUNTIME" value="EMBEDDED"/>
12+
<booleanAttribute key="M2_SKIP_TESTS" value="false"/>
13+
<intAttribute key="M2_THREADS" value="1"/>
14+
<booleanAttribute key="M2_UPDATE_SNAPSHOTS" value="false"/>
15+
<stringAttribute key="M2_USER_SETTINGS" value=""/>
16+
<booleanAttribute key="M2_WORKSPACE_RESOLUTION" value="true"/>
17+
<listAttribute key="org.eclipse.debug.ui.favoriteGroups">
18+
<listEntry value="org.eclipse.debug.ui.launchGroup.run"/>
19+
</listAttribute>
20+
<stringAttribute key="org.eclipse.jdt.launching.WORKING_DIRECTORY" value="${workspace_loc:/org.svis.generator.releng}"/>
21+
</launchConfiguration>
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2+
<launchConfiguration type="org.eclipse.m2e.Maven2LaunchConfigurationType">
3+
<booleanAttribute key="M2_DEBUG_OUTPUT" value="false"/>
4+
<stringAttribute key="M2_GOALS" value="-pl ../org.svis.generator.run validate exec:exec@run"/>
5+
<booleanAttribute key="M2_NON_RECURSIVE" value="false"/>
6+
<booleanAttribute key="M2_OFFLINE" value="false"/>
7+
<stringAttribute key="M2_PROFILES" value=""/>
8+
<listAttribute key="M2_PROPERTIES">
9+
<listEntry value="workflow=org/svis/generator/run/multisphere/JQA2MultiSphereTD.mwe2"/>
10+
</listAttribute>
11+
<stringAttribute key="M2_RUNTIME" value="EMBEDDED"/>
12+
<booleanAttribute key="M2_SKIP_TESTS" value="false"/>
13+
<intAttribute key="M2_THREADS" value="1"/>
14+
<booleanAttribute key="M2_UPDATE_SNAPSHOTS" value="false"/>
15+
<stringAttribute key="M2_USER_SETTINGS" value=""/>
16+
<booleanAttribute key="M2_WORKSPACE_RESOLUTION" value="true"/>
17+
<listAttribute key="org.eclipse.debug.ui.favoriteGroups">
18+
<listEntry value="org.eclipse.debug.ui.launchGroup.run"/>
19+
</listAttribute>
20+
<stringAttribute key="org.eclipse.jdt.launching.WORKING_DIRECTORY" value="${workspace_loc:/org.svis.generator.releng}"/>
21+
</launchConfiguration>
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2+
<launchConfiguration type="org.eclipse.m2e.Maven2LaunchConfigurationType">
3+
<booleanAttribute key="M2_DEBUG_OUTPUT" value="false"/>
4+
<stringAttribute key="M2_GOALS" value="-pl ../org.svis.generator.run validate exec:exec@run"/>
5+
<booleanAttribute key="M2_NON_RECURSIVE" value="false"/>
6+
<booleanAttribute key="M2_OFFLINE" value="false"/>
7+
<stringAttribute key="M2_PROFILES" value=""/>
8+
<listAttribute key="M2_PROPERTIES">
9+
<listEntry value="workflow=org/svis/generator/run/plant/JQA2Plant.mwe2"/>
10+
</listAttribute>
11+
<stringAttribute key="M2_RUNTIME" value="EMBEDDED"/>
12+
<booleanAttribute key="M2_SKIP_TESTS" value="false"/>
13+
<intAttribute key="M2_THREADS" value="1"/>
14+
<booleanAttribute key="M2_UPDATE_SNAPSHOTS" value="false"/>
15+
<stringAttribute key="M2_USER_SETTINGS" value=""/>
16+
<booleanAttribute key="M2_WORKSPACE_RESOLUTION" value="true"/>
17+
<listAttribute key="org.eclipse.debug.ui.favoriteGroups">
18+
<listEntry value="org.eclipse.debug.ui.launchGroup.run"/>
19+
</listAttribute>
20+
<stringAttribute key="org.eclipse.jdt.launching.WORKING_DIRECTORY" value="${workspace_loc:/org.svis.generator.releng}"/>
21+
</launchConfiguration>
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2+
<launchConfiguration type="org.eclipse.m2e.Maven2LaunchConfigurationType">
3+
<booleanAttribute key="M2_DEBUG_OUTPUT" value="false"/>
4+
<stringAttribute key="M2_GOALS" value="-pl ../org.svis.generator.run validate exec:exec@run"/>
5+
<booleanAttribute key="M2_NON_RECURSIVE" value="false"/>
6+
<booleanAttribute key="M2_OFFLINE" value="false"/>
7+
<stringAttribute key="M2_PROFILES" value=""/>
8+
<listAttribute key="M2_PROPERTIES">
9+
<listEntry value="workflow=org/svis/generator/run/rd/JQA2RD.mwe2"/>
10+
</listAttribute>
11+
<stringAttribute key="M2_RUNTIME" value="EMBEDDED"/>
12+
<booleanAttribute key="M2_SKIP_TESTS" value="false"/>
13+
<intAttribute key="M2_THREADS" value="1"/>
14+
<booleanAttribute key="M2_UPDATE_SNAPSHOTS" value="false"/>
15+
<stringAttribute key="M2_USER_SETTINGS" value=""/>
16+
<booleanAttribute key="M2_WORKSPACE_RESOLUTION" value="true"/>
17+
<listAttribute key="org.eclipse.debug.ui.favoriteGroups">
18+
<listEntry value="org.eclipse.debug.ui.launchGroup.run"/>
19+
</listAttribute>
20+
<stringAttribute key="org.eclipse.jdt.launching.WORKING_DIRECTORY" value="${workspace_loc:/org.svis.generator.releng}"/>
21+
</launchConfiguration>
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
module org.svis.generator.run.city
2+
3+
var outputPath = "./output/city/famix"
4+
//var projectName = "org.svis.generator.run"
5+
//var runtimeProject = "../${projectName}"
6+
7+
Workflow {
8+
9+
bean = org.eclipse.emf.mwe.utils.StandaloneSetup {
10+
platformUri = "../org.svis.generator.run/.."
11+
registerGeneratedEPackage = "org.svis.xtext.famix.FamixPackage"
12+
}
13+
14+
//lazy loading for model
15+
component = org.svis.generator.ResolveLazyComponent {}
16+
17+
// delete unnecessary objects
18+
component = org.svis.generator.famix.JQA2Famix {
19+
modelSlot = "famix"
20+
}
21+
22+
//transformation 1: from FAMIX to CITY
23+
component = org.svis.generator.city.s2m.Famix2City {
24+
modelSlot = "famix"
25+
}
26+
27+
// write metaData
28+
component = org.eclipse.xtext.generator.GeneratorComponent {
29+
register = org.svis.generator.famix.Famix2JSONStandaloneSetup {}
30+
slot = 'metadata'
31+
outlet = {
32+
path = "${outputPath}"
33+
}
34+
}
35+
36+
//output 1b: model as *.xml
37+
component = org.eclipse.emf.mwe.utils.Writer {
38+
modelSlot = "CITYwriter"
39+
uri = "${outputPath}/city1.xml"
40+
//cloneSlotContents = true //see http://www.openarchitectureware.org/forum/viewtopic.php?showtopic=5677
41+
}
42+
43+
//transformation 2: from City to City
44+
component = org.svis.generator.city.m2m.City2City {
45+
modelSlot = "CITY"
46+
}
47+
48+
//output 2: model as *.xml
49+
component = org.eclipse.emf.mwe.utils.Writer {
50+
modelSlot = "CITYv2writer"
51+
uri = "${outputPath}/city2.xml"
52+
cloneSlotContents = true //see http://www.openarchitectureware.org/forum/viewtopic.php?showtopic=5677
53+
}
54+
55+
//transformation 3: from City to X3D
56+
component = org.eclipse.xtext.generator.GeneratorComponent {
57+
register = org.svis.generator.city.m2t.CityOutputStandaloneSetup {}
58+
slot = 'CITYv2'
59+
outlet = {
60+
path = "${outputPath}"
61+
}
62+
}
63+
}
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
module org.svis.generator.run.multisphere
2+
3+
var projectName = "org.svis.generator.run"
4+
var runtimeProject = "../${projectName}"
5+
var outputPath = "./output/multisphere/plain"
6+
7+
Workflow {
8+
9+
10+
bean = org.eclipse.emf.mwe.utils.StandaloneSetup {
11+
platformUri = "${runtimeProject}/.."
12+
registerGeneratedEPackage = "org.svis.xtext.famix.FamixPackage"
13+
14+
}
15+
16+
// support lazy loading of textual models
17+
component = org.svis.generator.ResolveLazyComponent {}
18+
19+
// delete unnecessary objects
20+
component = org.svis.generator.famix.JQA2Famix {
21+
modelSlot = "famix"
22+
}
23+
24+
// transform famix (m2m) Famix2Graph
25+
component = org.svis.generator.multisphere.s2m.Famix2Graph {
26+
modelSlot = "famixModel"
27+
}
28+
29+
// transform famix (m2m) Graph2SphereLayout
30+
component = org.svis.generator.multisphere.m2m.Graph2MultiSphere {
31+
modelSlot = "famixModel"
32+
}
33+
34+
// graph x3d
35+
component = org.eclipse.xtext.generator.GeneratorComponent {
36+
register = org.svis.generator.multisphere.m2t.MultiSphere2X3DStandaloneSetup {}
37+
slot = 'graphwriter'
38+
outlet = {
39+
path = "${outputPath}"
40+
}
41+
}
42+
}
Lines changed: 142 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,142 @@
1+
module org.svis.generator.run.plant
2+
3+
var projectName = "org.svis.generator.run"
4+
var outputPath = "./output/plant/famix"
5+
//var runtimeProject = "../${projectName}"
6+
var texturSourcePath = "org.svis.generator/src/org/svis/generator/plant/m2t/textures"
7+
var texturDestinyPath = "org.svis.generator.run/output/plant/famix/pics"
8+
var configPath = "./input/famix/plantConfig.json"
9+
10+
Workflow {
11+
12+
bean = org.eclipse.emf.mwe.utils.StandaloneSetup {
13+
// platformUri = "${runtimeProject}/.."
14+
platformUri = "../org.svis.generator.run/.."
15+
registerGeneratedEPackage = "org.svis.xtext.famix.FamixPackage"
16+
}
17+
18+
// support lazy loading of textual models
19+
component = org.svis.generator.ResolveLazyComponent {}
20+
21+
// delete unnecessary objects
22+
component = org.svis.generator.famix.JQA2Famix {
23+
modelSlot = "famix"
24+
// config = configPath
25+
}
26+
27+
// transform famix into disks (s2m)
28+
component = org.svis.generator.plant.s2m.Famix2Plant {
29+
modelSlot = "famix"
30+
config = configPath
31+
}
32+
33+
// write metaData
34+
component = org.eclipse.xtext.generator.GeneratorComponent {
35+
register = org.svis.generator.famix.Famix2JSONStandaloneSetup {}
36+
slot = 'metadata'
37+
outlet = {
38+
path = "${outputPath}"
39+
}
40+
}
41+
42+
// write out resulting model
43+
component = org.eclipse.emf.mwe.utils.Writer {
44+
modelSlot = "plantwriter"
45+
uri = "${outputPath}/plant.xml"
46+
}
47+
48+
// calculate layout (m2m)
49+
component = org.svis.generator.plant.m2m.Plant2Plant {
50+
modelSlot = "plant"
51+
config = configPath
52+
}
53+
54+
component = org.eclipse.emf.mwe.utils.Writer {
55+
modelSlot = "plantextendedwriter"
56+
uri = "${outputPath}/plantextended.xml"
57+
cloneSlotContents = true
58+
}
59+
60+
// model2X3D (m2t)
61+
component = org.eclipse.xtext.generator.GeneratorComponent {
62+
register = org.svis.generator.plant.m2t.Plant2X3DStandaloneSetup {}
63+
slot = 'plantextended'
64+
outlet = {
65+
path = "${outputPath}"
66+
}
67+
}
68+
// copy textures: -----------------------------------------------------------
69+
// ToDo: copy just used textures.
70+
// ToDo: read all files automatically
71+
// copy textures in output path:
72+
component = org.svis.generator.plant.m2t.FileManager{
73+
trash = projectName
74+
source = "${texturSourcePath}/bloom.png"
75+
destiny = "${texturDestinyPath}/bloom.png"
76+
}
77+
component = org.svis.generator.plant.m2t.FileManager{
78+
trash = projectName
79+
source = "${texturSourcePath}/grassTexture.png"
80+
destiny = "${texturDestinyPath}/grassTexture.png"
81+
}
82+
component = org.svis.generator.plant.m2t.FileManager{
83+
trash = projectName
84+
source = "${texturSourcePath}/lilacPetal.png"
85+
destiny = "${texturDestinyPath}/lilacPetal.png"
86+
}
87+
component = org.svis.generator.plant.m2t.FileManager{
88+
trash = projectName
89+
source = "${texturSourcePath}/plant.png"
90+
destiny = "${texturDestinyPath}/plant.png"
91+
}
92+
component = org.svis.generator.plant.m2t.FileManager{
93+
trash = projectName
94+
source = "${texturSourcePath}/pollball.png"
95+
destiny = "${texturDestinyPath}/pollball.png"
96+
}
97+
component = org.svis.generator.plant.m2t.FileManager{
98+
trash = projectName
99+
source = "${texturSourcePath}/ground.png"
100+
destiny = "${texturDestinyPath}/ground.png"
101+
}
102+
component = org.svis.generator.plant.m2t.FileManager{
103+
trash = projectName
104+
source = "${texturSourcePath}/freeGrass.png"
105+
destiny = "${texturDestinyPath}/freeGrass.png"
106+
}
107+
component = org.svis.generator.plant.m2t.FileManager{
108+
trash = projectName
109+
source = "${texturSourcePath}/freeGrass.png"
110+
destiny = "${texturDestinyPath}/freeGrass.png"
111+
}
112+
component = org.svis.generator.plant.m2t.FileManager{
113+
trash = projectName
114+
source = "${texturSourcePath}/whitePetal.png"
115+
destiny = "${texturDestinyPath}/whitePetal.png"
116+
}
117+
component = org.svis.generator.plant.m2t.FileManager{
118+
trash = projectName
119+
source = "${texturSourcePath}/redPetal.png"
120+
destiny = "${texturDestinyPath}/redPetal.png"
121+
}
122+
component = org.svis.generator.plant.m2t.FileManager{
123+
trash = projectName
124+
source = "${texturSourcePath}/bluePetal.png"
125+
destiny = "${texturDestinyPath}/bluePetal.png"
126+
}
127+
component = org.svis.generator.plant.m2t.FileManager{
128+
trash = projectName
129+
source = "${texturSourcePath}/plantHeadBrown.png"
130+
destiny = "${texturDestinyPath}/plantHeadBrown.png"
131+
}
132+
component = org.svis.generator.plant.m2t.FileManager{
133+
trash = projectName
134+
source = "${texturSourcePath}/junctionGreen.png"
135+
destiny = "${texturDestinyPath}/junctionGreen.png"
136+
}
137+
component = org.svis.generator.plant.m2t.FileManager{
138+
trash = projectName
139+
source = "${texturSourcePath}/junctionHeadTopPart.png"
140+
destiny = "${texturDestinyPath}/junctionHeadTopPart.png"
141+
}
142+
}

0 commit comments

Comments
 (0)