Skip to content

Commit 3d86f69

Browse files
author
Software Visualization in 3D and VR
authored
Merge pull request #12 from Valekta/feature/famix2db
famix2db
2 parents ab19a12 + 9416394 commit 3d86f69

19 files changed

Lines changed: 1026 additions & 340 deletions

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/Famix2JQA.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/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: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
module org.svis.generator.run.rd
2+
3+
var projectName = "org.svis.generator.run"
4+
var inputPath = "./input/famix"
5+
var runtimeProject = "../${projectName}"
6+
7+
Workflow {
8+
9+
bean = org.eclipse.emf.mwe.utils.StandaloneSetup {
10+
platformUri = "${runtimeProject}/.."
11+
registerGeneratedEPackage = "org.svis.xtext.famix.FamixPackage"
12+
}
13+
14+
component = org.svis.generator.ReaderWithConfig {
15+
path = "${inputPath}"
16+
register = org.svis.xtext.FamixStandaloneSetupGenerated {}
17+
loadResource = {
18+
slot = "famix"
19+
}
20+
}
21+
22+
// support lazy loading of textual models
23+
component = org.svis.generator.ResolveLazyComponent {}
24+
25+
// delete unnecessary objects
26+
component = org.svis.generator.famix.Famix2Famix {
27+
modelSlot = "famix"
28+
}
29+
}
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+
}

0 commit comments

Comments
 (0)