-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding SimuLink and AutoSAR Metamodels (#23)
- Loading branch information
1 parent
06a9958
commit 0c2d0a1
Showing
27 changed files
with
1,900 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
bundles/edu.kit.ipd.sdq.metamodels.autosar/META-INF/MANIFEST.MF
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
Manifest-Version: 1.0 | ||
Bundle-ManifestVersion: 2 | ||
Bundle-Name: %pluginName | ||
Bundle-SymbolicName: edu.kit.ipd.sdq.metamodels.autosar;singleton:=true | ||
Automatic-Module-Name: edu.kit.ipd.sdq.metamodels.autosar | ||
Bundle-Version: 1.8.0.qualifier | ||
Bundle-ClassPath: . | ||
Bundle-Vendor: %providerName | ||
Bundle-Localization: plugin | ||
Bundle-RequiredExecutionEnvironment: JavaSE-17 | ||
Export-Package: autosar, | ||
autosar.impl, | ||
autosar.util | ||
Require-Bundle: org.eclipse.emf.ecore;visibility:=reexport, | ||
org.eclipse.core.runtime | ||
Bundle-ActivationPolicy: lazy |
10 changes: 10 additions & 0 deletions
10
bundles/edu.kit.ipd.sdq.metamodels.autosar/build.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# | ||
|
||
bin.includes = .,\ | ||
model/,\ | ||
META-INF/,\ | ||
plugin.xml,\ | ||
plugin.properties | ||
jars.compile.order = . | ||
source.. = src-gen/ | ||
output.. = target/classes/ |
53 changes: 53 additions & 0 deletions
53
bundles/edu.kit.ipd.sdq.metamodels.autosar/model/autoSAR.ecore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ecore:EPackage xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="autosar" nsURI="edu.kit.ipd.sdq.metamodels.autosar" nsPrefix="autosar"> | ||
<eClassifiers xsi:type="ecore:EClass" name="SwComponent" abstract="true" eSuperTypes="#//AutoSARElement"> | ||
<eStructuralFeatures xsi:type="ecore:EReference" name="port" upperBound="-1" eType="#//Port" | ||
containment="true"/> | ||
</eClassifiers> | ||
<eClassifiers xsi:type="ecore:EClass" name="CompositeSwComponent" eSuperTypes="#//SwComponent"> | ||
<eStructuralFeatures xsi:type="ecore:EReference" name="atomicswcomponent" upperBound="-1" | ||
eType="#//AtomicSwComponent" containment="true"/> | ||
<eStructuralFeatures xsi:type="ecore:EReference" name="swconnector" upperBound="-1" | ||
eType="#//SwConnector" containment="true"/> | ||
</eClassifiers> | ||
<eClassifiers xsi:type="ecore:EClass" name="AtomicSwComponent" eSuperTypes="#//SwComponent"> | ||
<eStructuralFeatures xsi:type="ecore:EReference" name="compositeswcomponent" eType="#//CompositeSwComponent"/> | ||
</eClassifiers> | ||
<eClassifiers xsi:type="ecore:EClass" name="SwConnector" eSuperTypes="#//AutoSARElement"/> | ||
<eClassifiers xsi:type="ecore:EClass" name="DelegationSwConnector" eSuperTypes="#//SwConnector #//AutoSARElement"> | ||
<eStructuralFeatures xsi:type="ecore:EReference" name="InnerPort" lowerBound="1" | ||
eType="#//Port"/> | ||
<eStructuralFeatures xsi:type="ecore:EReference" name="OuterPort" lowerBound="1" | ||
eType="#//Port"/> | ||
</eClassifiers> | ||
<eClassifiers xsi:type="ecore:EClass" name="AssemblySwConnector" eSuperTypes="#//SwConnector"> | ||
<eStructuralFeatures xsi:type="ecore:EReference" name="providedport" upperBound="-1" | ||
eType="#//ProvidedPort"/> | ||
<eStructuralFeatures xsi:type="ecore:EReference" name="requiredport" upperBound="-1" | ||
eType="#//RequiredPort"/> | ||
</eClassifiers> | ||
<eClassifiers xsi:type="ecore:EClass" name="Port" abstract="true" eSuperTypes="#//AutoSARElement"/> | ||
<eClassifiers xsi:type="ecore:EClass" name="ProvidedPort" eSuperTypes="#//Port"> | ||
<eStructuralFeatures xsi:type="ecore:EReference" name="portinterface" upperBound="-1" | ||
eType="#//PortInterface"/> | ||
</eClassifiers> | ||
<eClassifiers xsi:type="ecore:EClass" name="RequiredPort" eSuperTypes="#//Port"> | ||
<eStructuralFeatures xsi:type="ecore:EReference" name="portinterface" upperBound="-1" | ||
eType="#//PortInterface"/> | ||
</eClassifiers> | ||
<eClassifiers xsi:type="ecore:EClass" name="PortInterface" abstract="true" interface="true"/> | ||
<eClassifiers xsi:type="ecore:EClass" name="ClientServerInterface" abstract="true" | ||
interface="true" eSuperTypes="#//PortInterface"/> | ||
<eClassifiers xsi:type="ecore:EClass" name="SenderReceiverInterface" abstract="true" | ||
interface="true" eSuperTypes="#//DataInterface"/> | ||
<eClassifiers xsi:type="ecore:EClass" name="DataInterface" abstract="true" interface="true" | ||
eSuperTypes="#//PortInterface"/> | ||
<eClassifiers xsi:type="ecore:EClass" name="AutoSARModel" eSuperTypes="#//AutoSARElement"> | ||
<eStructuralFeatures xsi:type="ecore:EReference" name="swcomponent" upperBound="-1" | ||
eType="#//SwComponent" containment="true"/> | ||
</eClassifiers> | ||
<eClassifiers xsi:type="ecore:EClass" name="AutoSARElement" abstract="true"> | ||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> | ||
</eClassifiers> | ||
</ecore:EPackage> |
49 changes: 49 additions & 0 deletions
49
bundles/edu.kit.ipd.sdq.metamodels.autosar/model/autoSAR.genmodel
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<genmodel:GenModel xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" | ||
modelDirectory="/AutoSAR/src-gen" creationIcons="false" editDirectory="/AutoSAR.edit/src-gen" | ||
editorDirectory="/AutoSAR.editor/src-gen" modelPluginID="AutoSAR" modelName="AutoSAR" | ||
rootExtendsClass="org.eclipse.emf.ecore.impl.MinimalEObjectImpl$Container" codeFormatting="true" | ||
importerID="org.eclipse.emf.importer.ecore" complianceLevel="5.0" copyrightFields="false" | ||
operationReflection="true" importOrganizing="true"> | ||
<foreignModel>autoSAR.ecore</foreignModel> | ||
<testsDirectory xsi:nil="true"/> | ||
<genPackages prefix="AutoSAR" disposableProviderFactory="true" ecorePackage="autoSAR.ecore#/"> | ||
<genClasses ecoreClass="autoSAR.ecore#//SwComponent"> | ||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference autoSAR.ecore#//SwComponent/port"/> | ||
</genClasses> | ||
<genClasses ecoreClass="autoSAR.ecore#//CompositeSwComponent"> | ||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference autoSAR.ecore#//CompositeSwComponent/atomicswcomponent"/> | ||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference autoSAR.ecore#//CompositeSwComponent/swconnector"/> | ||
</genClasses> | ||
<genClasses ecoreClass="autoSAR.ecore#//AtomicSwComponent"> | ||
<genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference autoSAR.ecore#//AtomicSwComponent/compositeswcomponent"/> | ||
</genClasses> | ||
<genClasses ecoreClass="autoSAR.ecore#//SwConnector"/> | ||
<genClasses ecoreClass="autoSAR.ecore#//DelegationSwConnector"> | ||
<genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference autoSAR.ecore#//DelegationSwConnector/InnerPort"/> | ||
<genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference autoSAR.ecore#//DelegationSwConnector/OuterPort"/> | ||
</genClasses> | ||
<genClasses ecoreClass="autoSAR.ecore#//AssemblySwConnector"> | ||
<genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference autoSAR.ecore#//AssemblySwConnector/providedport"/> | ||
<genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference autoSAR.ecore#//AssemblySwConnector/requiredport"/> | ||
</genClasses> | ||
<genClasses ecoreClass="autoSAR.ecore#//Port"/> | ||
<genClasses ecoreClass="autoSAR.ecore#//ProvidedPort"> | ||
<genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference autoSAR.ecore#//ProvidedPort/portinterface"/> | ||
</genClasses> | ||
<genClasses ecoreClass="autoSAR.ecore#//RequiredPort"> | ||
<genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference autoSAR.ecore#//RequiredPort/portinterface"/> | ||
</genClasses> | ||
<genClasses ecoreClass="autoSAR.ecore#//PortInterface"/> | ||
<genClasses ecoreClass="autoSAR.ecore#//ClientServerInterface"/> | ||
<genClasses ecoreClass="autoSAR.ecore#//SenderReceiverInterface"/> | ||
<genClasses ecoreClass="autoSAR.ecore#//DataInterface"/> | ||
<genClasses ecoreClass="autoSAR.ecore#//AutoSARModel"> | ||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference autoSAR.ecore#//AutoSARModel/swcomponent"/> | ||
</genClasses> | ||
<genClasses ecoreClass="autoSAR.ecore#//AutoSARElement"> | ||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute autoSAR.ecore#//AutoSARElement/name"/> | ||
</genClasses> | ||
</genPackages> | ||
</genmodel:GenModel> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# | ||
|
||
pluginName = AutoSAR Metamodel | ||
providerName = KIT SDQ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<?eclipse version="3.0"?> | ||
|
||
<!-- | ||
--> | ||
|
||
<plugin> | ||
|
||
<extension point="org.eclipse.emf.ecore.generated_package"> | ||
<!-- @generated autoSAR --> | ||
<package | ||
uri="edu.kit.ipd.sdq.metamodels.autosar" | ||
class="edu.kit.ipd.sdq.metamodels.autosar.AutoSARPackage" | ||
|
||
genModel="model/autoSAR.genmodel"/> | ||
</extension> | ||
|
||
</plugin> |
16 changes: 16 additions & 0 deletions
16
bundles/edu.kit.ipd.sdq.metamodels.simulink/META-INF/MANIFEST.MF
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
Manifest-Version: 1.0 | ||
Bundle-ManifestVersion: 2 | ||
Bundle-Name: %pluginName | ||
Bundle-SymbolicName: edu.kit.ipd.sdq.metamodels.simulink;singleton:=true | ||
Automatic-Module-Name: edu.kit.ipd.sdq.metamodels.simulink | ||
Bundle-Version: 1.8.0.qualifier | ||
Bundle-ClassPath: . | ||
Bundle-Vendor: %providerName | ||
Bundle-Localization: plugin | ||
Bundle-RequiredExecutionEnvironment: JavaSE-17 | ||
Export-Package: simulink, | ||
simulink.impl, | ||
simulink.util | ||
Require-Bundle: org.eclipse.emf.ecore;visibility:=reexport, | ||
org.eclipse.core.runtime | ||
Bundle-ActivationPolicy: lazy |
10 changes: 10 additions & 0 deletions
10
bundles/edu.kit.ipd.sdq.metamodels.simulink/build.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# | ||
|
||
bin.includes = .,\ | ||
model/,\ | ||
META-INF/,\ | ||
plugin.xml,\ | ||
plugin.properties | ||
jars.compile.order = . | ||
source.. = src-gen/ | ||
output.. = target/classes/ |
Oops, something went wrong.