-
Notifications
You must be signed in to change notification settings - Fork 0
/
generate_pycapella.py
35 lines (31 loc) · 1.78 KB
/
generate_pycapella.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# manual setting of sys.path, for testing purpose only, please setup your virtual env as desired
# import os
# import sys
#
# sys.path.append("../pyecoregen")
# sys.path.append("../pyecore")
from capellagenerator import CapellaGenerator
mm_list = (
'./mm/org.polarsys.capella.common.data.def/model/Behavior.ecore',
'./mm/org.polarsys.capella.common.data.def/model/ModellingCore.ecore',
'./mm/org.polarsys.capella.common.data.def/model/Activity.ecore',
'./mm/org.polarsys.capella.core.data.def/model/CapellaCommon.ecore',
'./mm/org.polarsys.capella.core.data.def/model/CapellaCore.ecore',
'./mm/org.polarsys.capella.core.data.def/model/CapellaModeller.ecore',
'./mm/org.polarsys.capella.core.data.def/model/CompositeStructure.ecore',
'./mm/org.polarsys.capella.core.data.def/model/ContextArchitecture.ecore',
'./mm/org.polarsys.capella.core.data.def/model/EPBSArchitecture.ecore',
'./mm/org.polarsys.capella.core.data.def/model/FunctionalAnalysis.ecore',
'./mm/org.polarsys.capella.core.data.def/model/Information.ecore',
'./mm/org.polarsys.capella.core.data.def/model/Interaction.ecore',
'./mm/org.polarsys.capella.core.data.def/model/LogicalArchitecture.ecore',
'./mm/org.polarsys.capella.core.data.def/model/OperationalAnalysis.ecore',
'./mm/org.polarsys.capella.core.data.def/model/PhysicalArchitecture.ecore',
'./mm/org.polarsys.capella.core.data.def/model/Requirement.ecore',
'./mm/org.polarsys.capella.core.data.def/model/SharedModel.ecore',
'./mm/org.polarsys.capella.common.libraries.gen/model/libraries.ecore',
'./mm/org.polarsys.capella.common.re.gen/model/re.ecore',
'./mm/org.polarsys.kitalpha.emde/model/eMDE.ecore',
)
generator = CapellaGenerator("pycapella2", mm_list)
generator.generate(outfolder='.', version="0.0.1")