Browse Source

Share project "org.yakindu.sct.model.sgen" into "https://svn.codespot.com/a/eclipselabs.org/yakindu"

Andreas Mülder 13 years ago
parent
commit
24ac5bcd68

+ 2 - 0
plugins/org.yakindu.sct.model.sgen/META-INF/MANIFEST.MF

@@ -11,3 +11,5 @@ Require-Bundle: org.eclipse.core.runtime,
  org.eclipse.emf.ecore;visibility:=reexport,
  org.yakindu.sct.model.sgraph;visibility:=reexport
 Bundle-ActivationPolicy: lazy
+Export-Package: org.yakindu.sct.model.sgen,
+ org.yakindu.sct.model.sgen.impl

+ 12 - 4
plugins/org.yakindu.sct.model.sgen/model/emf/sgen.ecore

@@ -4,14 +4,22 @@
     xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="sgen"
     nsURI="http://www.yakindu.org/sct/statechart/SGen" nsPrefix="sgen">
   <eClassifiers xsi:type="ecore:EClass" name="GeneratorModel">
-    <eStructuralFeatures xsi:type="ecore:EReference" name="configurations" upperBound="-1"
-        eType="#//Configuration" containment="true"/>
-    <eStructuralFeatures xsi:type="ecore:EReference" name="statecharts" upperBound="-1"
-        eType="ecore:EClass ../../../org.yakindu.sct.model.sgraph/model/emf/sgraph.ecore#//Statechart"/>
+    <eStructuralFeatures xsi:type="ecore:EReference" name="configuration" eType="#//GeneratorConfiguration"
+        containment="true"/>
+    <eStructuralFeatures xsi:type="ecore:EReference" name="statechartReferences" eType="#//StatechartReferences"
+        containment="true"/>
   </eClassifiers>
   <eClassifiers xsi:type="ecore:EClass" name="Configuration"/>
   <eClassifiers xsi:type="ecore:EClass" name="OutletConfiguration" eSuperTypes="#//Configuration">
     <eStructuralFeatures xsi:type="ecore:EAttribute" name="path" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
     <eStructuralFeatures xsi:type="ecore:EAttribute" name="override" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
   </eClassifiers>
+  <eClassifiers xsi:type="ecore:EClass" name="GeneratorConfiguration">
+    <eStructuralFeatures xsi:type="ecore:EReference" name="configurations" upperBound="-1"
+        eType="#//Configuration" containment="true"/>
+  </eClassifiers>
+  <eClassifiers xsi:type="ecore:EClass" name="StatechartReferences">
+    <eStructuralFeatures xsi:type="ecore:EReference" name="statecharts" upperBound="-1"
+        eType="ecore:EClass ../../../org.yakindu.sct.model.sgraph/model/emf/sgraph.ecore#//Statechart"/>
+  </eClassifiers>
 </ecore:EPackage>

+ 10 - 11
plugins/org.yakindu.sct.model.sgen/model/emf/sgen.genmodel

@@ -8,20 +8,19 @@
   <genPackages prefix="SGen" basePackage="org.yakindu.sct.model" disposableProviderFactory="true"
       ecorePackage="sgen.ecore#/">
     <genClasses ecoreClass="sgen.ecore#//GeneratorModel">
-      <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference sgen.ecore#//GeneratorModel/entries"/>
+      <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference sgen.ecore#//GeneratorModel/configuration"/>
+      <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference sgen.ecore#//GeneratorModel/statechartReferences"/>
     </genClasses>
-    <genClasses ecoreClass="sgen.ecore#//GeneratorEntry">
-      <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference sgen.ecore#//GeneratorEntry/outlet"/>
-      <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference sgen.ecore#//GeneratorEntry/propertyGroups"/>
-      <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference sgen.ecore#//GeneratorEntry/statechart"/>
+    <genClasses ecoreClass="sgen.ecore#//Configuration"/>
+    <genClasses ecoreClass="sgen.ecore#//OutletConfiguration">
+      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute sgen.ecore#//OutletConfiguration/path"/>
+      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute sgen.ecore#//OutletConfiguration/override"/>
     </genClasses>
-    <genClasses ecoreClass="sgen.ecore#//Outlet">
-      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute sgen.ecore#//Outlet/directory"/>
-      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute sgen.ecore#//Outlet/override"/>
+    <genClasses ecoreClass="sgen.ecore#//GeneratorConfiguration">
+      <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference sgen.ecore#//GeneratorConfiguration/configurations"/>
     </genClasses>
-    <genClasses ecoreClass="sgen.ecore#//GeneratorProperty"/>
-    <genClasses ecoreClass="sgen.ecore#//GeneratorPropertyGroup">
-      <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference sgen.ecore#//GeneratorPropertyGroup/properties"/>
+    <genClasses ecoreClass="sgen.ecore#//StatechartReferences">
+      <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference sgen.ecore#//StatechartReferences/statecharts"/>
     </genClasses>
   </genPackages>
 </genmodel:GenModel>

+ 46 - 0
plugins/org.yakindu.sct.model.sgen/src/org/yakindu/sct/model/sgen/GeneratorConfiguration.java

@@ -0,0 +1,46 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.yakindu.sct.model.sgen;
+
+import org.eclipse.emf.common.util.EList;
+
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Generator Configuration</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * <ul>
+ *   <li>{@link org.yakindu.sct.model.sgen.GeneratorConfiguration#getConfigurations <em>Configurations</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.yakindu.sct.model.sgen.SGenPackage#getGeneratorConfiguration()
+ * @model
+ * @generated
+ */
+public interface GeneratorConfiguration extends EObject {
+	/**
+	 * Returns the value of the '<em><b>Configurations</b></em>' containment reference list.
+	 * The list contents are of type {@link org.yakindu.sct.model.sgen.Configuration}.
+	 * <!-- begin-user-doc -->
+	 * <p>
+	 * If the meaning of the '<em>Configurations</em>' containment reference list isn't clear,
+	 * there really should be more of a description here...
+	 * </p>
+	 * <!-- end-user-doc -->
+	 * @return the value of the '<em>Configurations</em>' containment reference list.
+	 * @see org.yakindu.sct.model.sgen.SGenPackage#getGeneratorConfiguration_Configurations()
+	 * @model containment="true"
+	 * @generated
+	 */
+	EList<Configuration> getConfigurations();
+
+} // GeneratorConfiguration

+ 35 - 19
plugins/org.yakindu.sct.model.sgen/src/org/yakindu/sct/model/sgen/GeneratorModel.java

@@ -6,12 +6,8 @@
  */
 package org.yakindu.sct.model.sgen;
 
-import org.eclipse.emf.common.util.EList;
-
 import org.eclipse.emf.ecore.EObject;
 
-import org.yakindu.sct.model.sgraph.Statechart;
-
 /**
  * <!-- begin-user-doc -->
  * A representation of the model object '<em><b>Generator Model</b></em>'.
@@ -20,8 +16,8 @@ import org.yakindu.sct.model.sgraph.Statechart;
  * <p>
  * The following features are supported:
  * <ul>
- *   <li>{@link org.yakindu.sct.model.sgen.GeneratorModel#getConfigurations <em>Configurations</em>}</li>
- *   <li>{@link org.yakindu.sct.model.sgen.GeneratorModel#getStatecharts <em>Statecharts</em>}</li>
+ *   <li>{@link org.yakindu.sct.model.sgen.GeneratorModel#getConfiguration <em>Configuration</em>}</li>
+ *   <li>{@link org.yakindu.sct.model.sgen.GeneratorModel#getStatechartReferences <em>Statechart References</em>}</li>
  * </ul>
  * </p>
  *
@@ -31,35 +27,55 @@ import org.yakindu.sct.model.sgraph.Statechart;
  */
 public interface GeneratorModel extends EObject {
 	/**
-	 * Returns the value of the '<em><b>Configurations</b></em>' containment reference list.
-	 * The list contents are of type {@link org.yakindu.sct.model.sgen.Configuration}.
+	 * Returns the value of the '<em><b>Configuration</b></em>' containment reference.
 	 * <!-- begin-user-doc -->
 	 * <p>
-	 * If the meaning of the '<em>Configurations</em>' containment reference list isn't clear,
+	 * If the meaning of the '<em>Configuration</em>' containment reference isn't clear,
 	 * there really should be more of a description here...
 	 * </p>
 	 * <!-- end-user-doc -->
-	 * @return the value of the '<em>Configurations</em>' containment reference list.
-	 * @see org.yakindu.sct.model.sgen.SGenPackage#getGeneratorModel_Configurations()
+	 * @return the value of the '<em>Configuration</em>' containment reference.
+	 * @see #setConfiguration(GeneratorConfiguration)
+	 * @see org.yakindu.sct.model.sgen.SGenPackage#getGeneratorModel_Configuration()
 	 * @model containment="true"
 	 * @generated
 	 */
-	EList<Configuration> getConfigurations();
+	GeneratorConfiguration getConfiguration();
+
+	/**
+	 * Sets the value of the '{@link org.yakindu.sct.model.sgen.GeneratorModel#getConfiguration <em>Configuration</em>}' containment reference.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @param value the new value of the '<em>Configuration</em>' containment reference.
+	 * @see #getConfiguration()
+	 * @generated
+	 */
+	void setConfiguration(GeneratorConfiguration value);
 
 	/**
-	 * Returns the value of the '<em><b>Statecharts</b></em>' reference list.
-	 * The list contents are of type {@link org.yakindu.sct.model.sgraph.Statechart}.
+	 * Returns the value of the '<em><b>Statechart References</b></em>' containment reference.
 	 * <!-- begin-user-doc -->
 	 * <p>
-	 * If the meaning of the '<em>Statecharts</em>' reference list isn't clear,
+	 * If the meaning of the '<em>Statechart References</em>' containment reference isn't clear,
 	 * there really should be more of a description here...
 	 * </p>
 	 * <!-- end-user-doc -->
-	 * @return the value of the '<em>Statecharts</em>' reference list.
-	 * @see org.yakindu.sct.model.sgen.SGenPackage#getGeneratorModel_Statecharts()
-	 * @model
+	 * @return the value of the '<em>Statechart References</em>' containment reference.
+	 * @see #setStatechartReferences(StatechartReferences)
+	 * @see org.yakindu.sct.model.sgen.SGenPackage#getGeneratorModel_StatechartReferences()
+	 * @model containment="true"
+	 * @generated
+	 */
+	StatechartReferences getStatechartReferences();
+
+	/**
+	 * Sets the value of the '{@link org.yakindu.sct.model.sgen.GeneratorModel#getStatechartReferences <em>Statechart References</em>}' containment reference.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @param value the new value of the '<em>Statechart References</em>' containment reference.
+	 * @see #getStatechartReferences()
 	 * @generated
 	 */
-	EList<Statechart> getStatecharts();
+	void setStatechartReferences(StatechartReferences value);
 
 } // GeneratorModel

+ 18 - 0
plugins/org.yakindu.sct.model.sgen/src/org/yakindu/sct/model/sgen/SGenFactory.java

@@ -52,6 +52,24 @@ public interface SGenFactory extends EFactory {
 	 */
 	OutletConfiguration createOutletConfiguration();
 
+	/**
+	 * Returns a new object of class '<em>Generator Configuration</em>'.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @return a new object of class '<em>Generator Configuration</em>'.
+	 * @generated
+	 */
+	GeneratorConfiguration createGeneratorConfiguration();
+
+	/**
+	 * Returns a new object of class '<em>Statechart References</em>'.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @return a new object of class '<em>Statechart References</em>'.
+	 * @generated
+	 */
+	StatechartReferences createStatechartReferences();
+
 	/**
 	 * Returns the package supported by this factory.
 	 * <!-- begin-user-doc -->

+ 150 - 16
plugins/org.yakindu.sct.model.sgen/src/org/yakindu/sct/model/sgen/SGenPackage.java

@@ -70,22 +70,22 @@ public interface SGenPackage extends EPackage {
 	int GENERATOR_MODEL = 0;
 
 	/**
-	 * The feature id for the '<em><b>Configurations</b></em>' containment reference list.
+	 * The feature id for the '<em><b>Configuration</b></em>' containment reference.
 	 * <!-- begin-user-doc -->
 	 * <!-- end-user-doc -->
 	 * @generated
 	 * @ordered
 	 */
-	int GENERATOR_MODEL__CONFIGURATIONS = 0;
+	int GENERATOR_MODEL__CONFIGURATION = 0;
 
 	/**
-	 * The feature id for the '<em><b>Statecharts</b></em>' reference list.
+	 * The feature id for the '<em><b>Statechart References</b></em>' containment reference.
 	 * <!-- begin-user-doc -->
 	 * <!-- end-user-doc -->
 	 * @generated
 	 * @ordered
 	 */
-	int GENERATOR_MODEL__STATECHARTS = 1;
+	int GENERATOR_MODEL__STATECHART_REFERENCES = 1;
 
 	/**
 	 * The number of structural features of the '<em>Generator Model</em>' class.
@@ -152,6 +152,62 @@ public interface SGenPackage extends EPackage {
 	 */
 	int OUTLET_CONFIGURATION_FEATURE_COUNT = CONFIGURATION_FEATURE_COUNT + 2;
 
+	/**
+	 * The meta object id for the '{@link org.yakindu.sct.model.sgen.impl.GeneratorConfigurationImpl <em>Generator Configuration</em>}' class.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @see org.yakindu.sct.model.sgen.impl.GeneratorConfigurationImpl
+	 * @see org.yakindu.sct.model.sgen.impl.SGenPackageImpl#getGeneratorConfiguration()
+	 * @generated
+	 */
+	int GENERATOR_CONFIGURATION = 3;
+
+	/**
+	 * The feature id for the '<em><b>Configurations</b></em>' containment reference list.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 * @ordered
+	 */
+	int GENERATOR_CONFIGURATION__CONFIGURATIONS = 0;
+
+	/**
+	 * The number of structural features of the '<em>Generator Configuration</em>' class.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 * @ordered
+	 */
+	int GENERATOR_CONFIGURATION_FEATURE_COUNT = 1;
+
+	/**
+	 * The meta object id for the '{@link org.yakindu.sct.model.sgen.impl.StatechartReferencesImpl <em>Statechart References</em>}' class.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @see org.yakindu.sct.model.sgen.impl.StatechartReferencesImpl
+	 * @see org.yakindu.sct.model.sgen.impl.SGenPackageImpl#getStatechartReferences()
+	 * @generated
+	 */
+	int STATECHART_REFERENCES = 4;
+
+	/**
+	 * The feature id for the '<em><b>Statecharts</b></em>' reference list.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 * @ordered
+	 */
+	int STATECHART_REFERENCES__STATECHARTS = 0;
+
+	/**
+	 * The number of structural features of the '<em>Statechart References</em>' class.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 * @ordered
+	 */
+	int STATECHART_REFERENCES_FEATURE_COUNT = 1;
+
 
 	/**
 	 * Returns the meta object for class '{@link org.yakindu.sct.model.sgen.GeneratorModel <em>Generator Model</em>}'.
@@ -164,26 +220,26 @@ public interface SGenPackage extends EPackage {
 	EClass getGeneratorModel();
 
 	/**
-	 * Returns the meta object for the containment reference list '{@link org.yakindu.sct.model.sgen.GeneratorModel#getConfigurations <em>Configurations</em>}'.
+	 * Returns the meta object for the containment reference '{@link org.yakindu.sct.model.sgen.GeneratorModel#getConfiguration <em>Configuration</em>}'.
 	 * <!-- begin-user-doc -->
 	 * <!-- end-user-doc -->
-	 * @return the meta object for the containment reference list '<em>Configurations</em>'.
-	 * @see org.yakindu.sct.model.sgen.GeneratorModel#getConfigurations()
+	 * @return the meta object for the containment reference '<em>Configuration</em>'.
+	 * @see org.yakindu.sct.model.sgen.GeneratorModel#getConfiguration()
 	 * @see #getGeneratorModel()
 	 * @generated
 	 */
-	EReference getGeneratorModel_Configurations();
+	EReference getGeneratorModel_Configuration();
 
 	/**
-	 * Returns the meta object for the reference list '{@link org.yakindu.sct.model.sgen.GeneratorModel#getStatecharts <em>Statecharts</em>}'.
+	 * Returns the meta object for the containment reference '{@link org.yakindu.sct.model.sgen.GeneratorModel#getStatechartReferences <em>Statechart References</em>}'.
 	 * <!-- begin-user-doc -->
 	 * <!-- end-user-doc -->
-	 * @return the meta object for the reference list '<em>Statecharts</em>'.
-	 * @see org.yakindu.sct.model.sgen.GeneratorModel#getStatecharts()
+	 * @return the meta object for the containment reference '<em>Statechart References</em>'.
+	 * @see org.yakindu.sct.model.sgen.GeneratorModel#getStatechartReferences()
 	 * @see #getGeneratorModel()
 	 * @generated
 	 */
-	EReference getGeneratorModel_Statecharts();
+	EReference getGeneratorModel_StatechartReferences();
 
 	/**
 	 * Returns the meta object for class '{@link org.yakindu.sct.model.sgen.Configuration <em>Configuration</em>}'.
@@ -227,6 +283,48 @@ public interface SGenPackage extends EPackage {
 	 */
 	EAttribute getOutletConfiguration_Override();
 
+	/**
+	 * Returns the meta object for class '{@link org.yakindu.sct.model.sgen.GeneratorConfiguration <em>Generator Configuration</em>}'.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @return the meta object for class '<em>Generator Configuration</em>'.
+	 * @see org.yakindu.sct.model.sgen.GeneratorConfiguration
+	 * @generated
+	 */
+	EClass getGeneratorConfiguration();
+
+	/**
+	 * Returns the meta object for the containment reference list '{@link org.yakindu.sct.model.sgen.GeneratorConfiguration#getConfigurations <em>Configurations</em>}'.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @return the meta object for the containment reference list '<em>Configurations</em>'.
+	 * @see org.yakindu.sct.model.sgen.GeneratorConfiguration#getConfigurations()
+	 * @see #getGeneratorConfiguration()
+	 * @generated
+	 */
+	EReference getGeneratorConfiguration_Configurations();
+
+	/**
+	 * Returns the meta object for class '{@link org.yakindu.sct.model.sgen.StatechartReferences <em>Statechart References</em>}'.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @return the meta object for class '<em>Statechart References</em>'.
+	 * @see org.yakindu.sct.model.sgen.StatechartReferences
+	 * @generated
+	 */
+	EClass getStatechartReferences();
+
+	/**
+	 * Returns the meta object for the reference list '{@link org.yakindu.sct.model.sgen.StatechartReferences#getStatecharts <em>Statecharts</em>}'.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @return the meta object for the reference list '<em>Statecharts</em>'.
+	 * @see org.yakindu.sct.model.sgen.StatechartReferences#getStatecharts()
+	 * @see #getStatechartReferences()
+	 * @generated
+	 */
+	EReference getStatechartReferences_Statecharts();
+
 	/**
 	 * Returns the factory that creates the instances of the model.
 	 * <!-- begin-user-doc -->
@@ -260,20 +358,20 @@ public interface SGenPackage extends EPackage {
 		EClass GENERATOR_MODEL = eINSTANCE.getGeneratorModel();
 
 		/**
-		 * The meta object literal for the '<em><b>Configurations</b></em>' containment reference list feature.
+		 * The meta object literal for the '<em><b>Configuration</b></em>' containment reference feature.
 		 * <!-- begin-user-doc -->
 		 * <!-- end-user-doc -->
 		 * @generated
 		 */
-		EReference GENERATOR_MODEL__CONFIGURATIONS = eINSTANCE.getGeneratorModel_Configurations();
+		EReference GENERATOR_MODEL__CONFIGURATION = eINSTANCE.getGeneratorModel_Configuration();
 
 		/**
-		 * The meta object literal for the '<em><b>Statecharts</b></em>' reference list feature.
+		 * The meta object literal for the '<em><b>Statechart References</b></em>' containment reference feature.
 		 * <!-- begin-user-doc -->
 		 * <!-- end-user-doc -->
 		 * @generated
 		 */
-		EReference GENERATOR_MODEL__STATECHARTS = eINSTANCE.getGeneratorModel_Statecharts();
+		EReference GENERATOR_MODEL__STATECHART_REFERENCES = eINSTANCE.getGeneratorModel_StatechartReferences();
 
 		/**
 		 * The meta object literal for the '{@link org.yakindu.sct.model.sgen.impl.ConfigurationImpl <em>Configuration</em>}' class.
@@ -311,6 +409,42 @@ public interface SGenPackage extends EPackage {
 		 */
 		EAttribute OUTLET_CONFIGURATION__OVERRIDE = eINSTANCE.getOutletConfiguration_Override();
 
+		/**
+		 * The meta object literal for the '{@link org.yakindu.sct.model.sgen.impl.GeneratorConfigurationImpl <em>Generator Configuration</em>}' class.
+		 * <!-- begin-user-doc -->
+		 * <!-- end-user-doc -->
+		 * @see org.yakindu.sct.model.sgen.impl.GeneratorConfigurationImpl
+		 * @see org.yakindu.sct.model.sgen.impl.SGenPackageImpl#getGeneratorConfiguration()
+		 * @generated
+		 */
+		EClass GENERATOR_CONFIGURATION = eINSTANCE.getGeneratorConfiguration();
+
+		/**
+		 * The meta object literal for the '<em><b>Configurations</b></em>' containment reference list feature.
+		 * <!-- begin-user-doc -->
+		 * <!-- end-user-doc -->
+		 * @generated
+		 */
+		EReference GENERATOR_CONFIGURATION__CONFIGURATIONS = eINSTANCE.getGeneratorConfiguration_Configurations();
+
+		/**
+		 * The meta object literal for the '{@link org.yakindu.sct.model.sgen.impl.StatechartReferencesImpl <em>Statechart References</em>}' class.
+		 * <!-- begin-user-doc -->
+		 * <!-- end-user-doc -->
+		 * @see org.yakindu.sct.model.sgen.impl.StatechartReferencesImpl
+		 * @see org.yakindu.sct.model.sgen.impl.SGenPackageImpl#getStatechartReferences()
+		 * @generated
+		 */
+		EClass STATECHART_REFERENCES = eINSTANCE.getStatechartReferences();
+
+		/**
+		 * The meta object literal for the '<em><b>Statecharts</b></em>' reference list feature.
+		 * <!-- begin-user-doc -->
+		 * <!-- end-user-doc -->
+		 * @generated
+		 */
+		EReference STATECHART_REFERENCES__STATECHARTS = eINSTANCE.getStatechartReferences_Statecharts();
+
 	}
 
 } //SGenPackage

+ 48 - 0
plugins/org.yakindu.sct.model.sgen/src/org/yakindu/sct/model/sgen/StatechartReferences.java

@@ -0,0 +1,48 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.yakindu.sct.model.sgen;
+
+import org.eclipse.emf.common.util.EList;
+
+import org.eclipse.emf.ecore.EObject;
+
+import org.yakindu.sct.model.sgraph.Statechart;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Statechart References</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * <ul>
+ *   <li>{@link org.yakindu.sct.model.sgen.StatechartReferences#getStatecharts <em>Statecharts</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.yakindu.sct.model.sgen.SGenPackage#getStatechartReferences()
+ * @model
+ * @generated
+ */
+public interface StatechartReferences extends EObject {
+	/**
+	 * Returns the value of the '<em><b>Statecharts</b></em>' reference list.
+	 * The list contents are of type {@link org.yakindu.sct.model.sgraph.Statechart}.
+	 * <!-- begin-user-doc -->
+	 * <p>
+	 * If the meaning of the '<em>Statecharts</em>' reference list isn't clear,
+	 * there really should be more of a description here...
+	 * </p>
+	 * <!-- end-user-doc -->
+	 * @return the value of the '<em>Statecharts</em>' reference list.
+	 * @see org.yakindu.sct.model.sgen.SGenPackage#getStatechartReferences_Statecharts()
+	 * @model
+	 * @generated
+	 */
+	EList<Statechart> getStatecharts();
+
+} // StatechartReferences

+ 0 - 45
plugins/org.yakindu.sct.model.sgen/src/org/yakindu/sct/model/sgen/impl/ConfigurationImpl.java

@@ -1,45 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.yakindu.sct.model.sgen.impl;
-
-import org.eclipse.emf.ecore.EClass;
-
-import org.eclipse.emf.ecore.impl.EObjectImpl;
-
-import org.yakindu.sct.model.sgen.Configuration;
-import org.yakindu.sct.model.sgen.SGenPackage;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Configuration</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * </p>
- *
- * @generated
- */
-public class ConfigurationImpl extends EObjectImpl implements Configuration {
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	protected ConfigurationImpl() {
-		super();
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	@Override
-	protected EClass eStaticClass() {
-		return SGenPackage.Literals.CONFIGURATION;
-	}
-
-} //ConfigurationImpl

+ 0 - 193
plugins/org.yakindu.sct.model.sgen/src/org/yakindu/sct/model/sgen/impl/GeneratorModelImpl.java

@@ -1,193 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.yakindu.sct.model.sgen.impl;
-
-import java.util.Collection;
-
-import org.eclipse.emf.common.notify.NotificationChain;
-
-import org.eclipse.emf.common.util.EList;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.InternalEObject;
-
-import org.eclipse.emf.ecore.impl.EObjectImpl;
-
-import org.eclipse.emf.ecore.util.EObjectContainmentEList;
-import org.eclipse.emf.ecore.util.EObjectResolvingEList;
-import org.eclipse.emf.ecore.util.InternalEList;
-
-import org.yakindu.sct.model.sgen.Configuration;
-import org.yakindu.sct.model.sgen.GeneratorModel;
-import org.yakindu.sct.model.sgen.SGenPackage;
-
-import org.yakindu.sct.model.sgraph.Statechart;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Generator Model</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- *   <li>{@link org.yakindu.sct.model.sgen.impl.GeneratorModelImpl#getConfigurations <em>Configurations</em>}</li>
- *   <li>{@link org.yakindu.sct.model.sgen.impl.GeneratorModelImpl#getStatecharts <em>Statecharts</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class GeneratorModelImpl extends EObjectImpl implements GeneratorModel {
-	/**
-	 * The cached value of the '{@link #getConfigurations() <em>Configurations</em>}' containment reference list.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @see #getConfigurations()
-	 * @generated
-	 * @ordered
-	 */
-	protected EList<Configuration> configurations;
-
-	/**
-	 * The cached value of the '{@link #getStatecharts() <em>Statecharts</em>}' reference list.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @see #getStatecharts()
-	 * @generated
-	 * @ordered
-	 */
-	protected EList<Statechart> statecharts;
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	protected GeneratorModelImpl() {
-		super();
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	@Override
-	protected EClass eStaticClass() {
-		return SGenPackage.Literals.GENERATOR_MODEL;
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public EList<Configuration> getConfigurations() {
-		if (configurations == null) {
-			configurations = new EObjectContainmentEList<Configuration>(Configuration.class, this, SGenPackage.GENERATOR_MODEL__CONFIGURATIONS);
-		}
-		return configurations;
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public EList<Statechart> getStatecharts() {
-		if (statecharts == null) {
-			statecharts = new EObjectResolvingEList<Statechart>(Statechart.class, this, SGenPackage.GENERATOR_MODEL__STATECHARTS);
-		}
-		return statecharts;
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	@Override
-	public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
-		switch (featureID) {
-			case SGenPackage.GENERATOR_MODEL__CONFIGURATIONS:
-				return ((InternalEList<?>)getConfigurations()).basicRemove(otherEnd, msgs);
-		}
-		return super.eInverseRemove(otherEnd, featureID, msgs);
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	@Override
-	public Object eGet(int featureID, boolean resolve, boolean coreType) {
-		switch (featureID) {
-			case SGenPackage.GENERATOR_MODEL__CONFIGURATIONS:
-				return getConfigurations();
-			case SGenPackage.GENERATOR_MODEL__STATECHARTS:
-				return getStatecharts();
-		}
-		return super.eGet(featureID, resolve, coreType);
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	@SuppressWarnings("unchecked")
-	@Override
-	public void eSet(int featureID, Object newValue) {
-		switch (featureID) {
-			case SGenPackage.GENERATOR_MODEL__CONFIGURATIONS:
-				getConfigurations().clear();
-				getConfigurations().addAll((Collection<? extends Configuration>)newValue);
-				return;
-			case SGenPackage.GENERATOR_MODEL__STATECHARTS:
-				getStatecharts().clear();
-				getStatecharts().addAll((Collection<? extends Statechart>)newValue);
-				return;
-		}
-		super.eSet(featureID, newValue);
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	@Override
-	public void eUnset(int featureID) {
-		switch (featureID) {
-			case SGenPackage.GENERATOR_MODEL__CONFIGURATIONS:
-				getConfigurations().clear();
-				return;
-			case SGenPackage.GENERATOR_MODEL__STATECHARTS:
-				getStatecharts().clear();
-				return;
-		}
-		super.eUnset(featureID);
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	@Override
-	public boolean eIsSet(int featureID) {
-		switch (featureID) {
-			case SGenPackage.GENERATOR_MODEL__CONFIGURATIONS:
-				return configurations != null && !configurations.isEmpty();
-			case SGenPackage.GENERATOR_MODEL__STATECHARTS:
-				return statecharts != null && !statecharts.isEmpty();
-		}
-		return super.eIsSet(featureID);
-	}
-
-} //GeneratorModelImpl

+ 0 - 220
plugins/org.yakindu.sct.model.sgen/src/org/yakindu/sct/model/sgen/impl/OutletConfigurationImpl.java

@@ -1,220 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.yakindu.sct.model.sgen.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-
-import org.eclipse.emf.ecore.EClass;
-
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-
-import org.yakindu.sct.model.sgen.OutletConfiguration;
-import org.yakindu.sct.model.sgen.SGenPackage;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Outlet Configuration</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- *   <li>{@link org.yakindu.sct.model.sgen.impl.OutletConfigurationImpl#getPath <em>Path</em>}</li>
- *   <li>{@link org.yakindu.sct.model.sgen.impl.OutletConfigurationImpl#isOverride <em>Override</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class OutletConfigurationImpl extends ConfigurationImpl implements OutletConfiguration {
-	/**
-	 * The default value of the '{@link #getPath() <em>Path</em>}' attribute.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @see #getPath()
-	 * @generated
-	 * @ordered
-	 */
-	protected static final String PATH_EDEFAULT = null;
-
-	/**
-	 * The cached value of the '{@link #getPath() <em>Path</em>}' attribute.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @see #getPath()
-	 * @generated
-	 * @ordered
-	 */
-	protected String path = PATH_EDEFAULT;
-
-	/**
-	 * The default value of the '{@link #isOverride() <em>Override</em>}' attribute.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @see #isOverride()
-	 * @generated
-	 * @ordered
-	 */
-	protected static final boolean OVERRIDE_EDEFAULT = false;
-
-	/**
-	 * The cached value of the '{@link #isOverride() <em>Override</em>}' attribute.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @see #isOverride()
-	 * @generated
-	 * @ordered
-	 */
-	protected boolean override = OVERRIDE_EDEFAULT;
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	protected OutletConfigurationImpl() {
-		super();
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	@Override
-	protected EClass eStaticClass() {
-		return SGenPackage.Literals.OUTLET_CONFIGURATION;
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public String getPath() {
-		return path;
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public void setPath(String newPath) {
-		String oldPath = path;
-		path = newPath;
-		if (eNotificationRequired())
-			eNotify(new ENotificationImpl(this, Notification.SET, SGenPackage.OUTLET_CONFIGURATION__PATH, oldPath, path));
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public boolean isOverride() {
-		return override;
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public void setOverride(boolean newOverride) {
-		boolean oldOverride = override;
-		override = newOverride;
-		if (eNotificationRequired())
-			eNotify(new ENotificationImpl(this, Notification.SET, SGenPackage.OUTLET_CONFIGURATION__OVERRIDE, oldOverride, override));
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	@Override
-	public Object eGet(int featureID, boolean resolve, boolean coreType) {
-		switch (featureID) {
-			case SGenPackage.OUTLET_CONFIGURATION__PATH:
-				return getPath();
-			case SGenPackage.OUTLET_CONFIGURATION__OVERRIDE:
-				return isOverride();
-		}
-		return super.eGet(featureID, resolve, coreType);
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	@Override
-	public void eSet(int featureID, Object newValue) {
-		switch (featureID) {
-			case SGenPackage.OUTLET_CONFIGURATION__PATH:
-				setPath((String)newValue);
-				return;
-			case SGenPackage.OUTLET_CONFIGURATION__OVERRIDE:
-				setOverride((Boolean)newValue);
-				return;
-		}
-		super.eSet(featureID, newValue);
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	@Override
-	public void eUnset(int featureID) {
-		switch (featureID) {
-			case SGenPackage.OUTLET_CONFIGURATION__PATH:
-				setPath(PATH_EDEFAULT);
-				return;
-			case SGenPackage.OUTLET_CONFIGURATION__OVERRIDE:
-				setOverride(OVERRIDE_EDEFAULT);
-				return;
-		}
-		super.eUnset(featureID);
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	@Override
-	public boolean eIsSet(int featureID) {
-		switch (featureID) {
-			case SGenPackage.OUTLET_CONFIGURATION__PATH:
-				return PATH_EDEFAULT == null ? path != null : !PATH_EDEFAULT.equals(path);
-			case SGenPackage.OUTLET_CONFIGURATION__OVERRIDE:
-				return override != OVERRIDE_EDEFAULT;
-		}
-		return super.eIsSet(featureID);
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	@Override
-	public String toString() {
-		if (eIsProxy()) return super.toString();
-
-		StringBuffer result = new StringBuffer(super.toString());
-		result.append(" (path: ");
-		result.append(path);
-		result.append(", override: ");
-		result.append(override);
-		result.append(')');
-		return result.toString();
-	}
-
-} //OutletConfigurationImpl

+ 0 - 121
plugins/org.yakindu.sct.model.sgen/src/org/yakindu/sct/model/sgen/impl/SGenFactoryImpl.java

@@ -1,121 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.yakindu.sct.model.sgen.impl;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EPackage;
-
-import org.eclipse.emf.ecore.impl.EFactoryImpl;
-
-import org.eclipse.emf.ecore.plugin.EcorePlugin;
-
-import org.yakindu.sct.model.sgen.*;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model <b>Factory</b>.
- * <!-- end-user-doc -->
- * @generated
- */
-public class SGenFactoryImpl extends EFactoryImpl implements SGenFactory {
-	/**
-	 * Creates the default factory implementation.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public static SGenFactory init() {
-		try {
-			SGenFactory theSGenFactory = (SGenFactory)EPackage.Registry.INSTANCE.getEFactory("http://www.yakindu.org/sct/statechart/SGen"); 
-			if (theSGenFactory != null) {
-				return theSGenFactory;
-			}
-		}
-		catch (Exception exception) {
-			EcorePlugin.INSTANCE.log(exception);
-		}
-		return new SGenFactoryImpl();
-	}
-
-	/**
-	 * Creates an instance of the factory.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public SGenFactoryImpl() {
-		super();
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	@Override
-	public EObject create(EClass eClass) {
-		switch (eClass.getClassifierID()) {
-			case SGenPackage.GENERATOR_MODEL: return createGeneratorModel();
-			case SGenPackage.CONFIGURATION: return createConfiguration();
-			case SGenPackage.OUTLET_CONFIGURATION: return createOutletConfiguration();
-			default:
-				throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
-		}
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public GeneratorModel createGeneratorModel() {
-		GeneratorModelImpl generatorModel = new GeneratorModelImpl();
-		return generatorModel;
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public Configuration createConfiguration() {
-		ConfigurationImpl configuration = new ConfigurationImpl();
-		return configuration;
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public OutletConfiguration createOutletConfiguration() {
-		OutletConfigurationImpl outletConfiguration = new OutletConfigurationImpl();
-		return outletConfiguration;
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public SGenPackage getSGenPackage() {
-		return (SGenPackage)getEPackage();
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @deprecated
-	 * @generated
-	 */
-	@Deprecated
-	public static SGenPackage getPackage() {
-		return SGenPackage.eINSTANCE;
-	}
-
-} //SGenFactoryImpl

+ 0 - 266
plugins/org.yakindu.sct.model.sgen/src/org/yakindu/sct/model/sgen/impl/SGenPackageImpl.java

@@ -1,266 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.yakindu.sct.model.sgen.impl;
-
-import org.eclipse.emf.ecore.EAttribute;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EPackage;
-import org.eclipse.emf.ecore.EReference;
-
-import org.eclipse.emf.ecore.impl.EPackageImpl;
-
-import org.yakindu.sct.model.sgen.Configuration;
-import org.yakindu.sct.model.sgen.GeneratorModel;
-import org.yakindu.sct.model.sgen.OutletConfiguration;
-import org.yakindu.sct.model.sgen.SGenFactory;
-import org.yakindu.sct.model.sgen.SGenPackage;
-
-import org.yakindu.sct.model.sgraph.SGraphPackage;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model <b>Package</b>.
- * <!-- end-user-doc -->
- * @generated
- */
-public class SGenPackageImpl extends EPackageImpl implements SGenPackage {
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	private EClass generatorModelEClass = null;
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	private EClass configurationEClass = null;
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	private EClass outletConfigurationEClass = null;
-
-	/**
-	 * Creates an instance of the model <b>Package</b>, registered with
-	 * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
-	 * package URI value.
-	 * <p>Note: the correct way to create the package is via the static
-	 * factory method {@link #init init()}, which also performs
-	 * initialization of the package, or returns the registered package,
-	 * if one already exists.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @see org.eclipse.emf.ecore.EPackage.Registry
-	 * @see org.yakindu.sct.model.sgen.SGenPackage#eNS_URI
-	 * @see #init()
-	 * @generated
-	 */
-	private SGenPackageImpl() {
-		super(eNS_URI, SGenFactory.eINSTANCE);
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	private static boolean isInited = false;
-
-	/**
-	 * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
-	 * 
-	 * <p>This method is used to initialize {@link SGenPackage#eINSTANCE} when that field is accessed.
-	 * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @see #eNS_URI
-	 * @see #createPackageContents()
-	 * @see #initializePackageContents()
-	 * @generated
-	 */
-	public static SGenPackage init() {
-		if (isInited) return (SGenPackage)EPackage.Registry.INSTANCE.getEPackage(SGenPackage.eNS_URI);
-
-		// Obtain or create and register package
-		SGenPackageImpl theSGenPackage = (SGenPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof SGenPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new SGenPackageImpl());
-
-		isInited = true;
-
-		// Initialize simple dependencies
-		SGraphPackage.eINSTANCE.eClass();
-
-		// Create package meta-data objects
-		theSGenPackage.createPackageContents();
-
-		// Initialize created meta-data
-		theSGenPackage.initializePackageContents();
-
-		// Mark meta-data to indicate it can't be changed
-		theSGenPackage.freeze();
-
-  
-		// Update the registry and return the package
-		EPackage.Registry.INSTANCE.put(SGenPackage.eNS_URI, theSGenPackage);
-		return theSGenPackage;
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public EClass getGeneratorModel() {
-		return generatorModelEClass;
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public EReference getGeneratorModel_Configurations() {
-		return (EReference)generatorModelEClass.getEStructuralFeatures().get(0);
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public EReference getGeneratorModel_Statecharts() {
-		return (EReference)generatorModelEClass.getEStructuralFeatures().get(1);
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public EClass getConfiguration() {
-		return configurationEClass;
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public EClass getOutletConfiguration() {
-		return outletConfigurationEClass;
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public EAttribute getOutletConfiguration_Path() {
-		return (EAttribute)outletConfigurationEClass.getEStructuralFeatures().get(0);
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public EAttribute getOutletConfiguration_Override() {
-		return (EAttribute)outletConfigurationEClass.getEStructuralFeatures().get(1);
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public SGenFactory getSGenFactory() {
-		return (SGenFactory)getEFactoryInstance();
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	private boolean isCreated = false;
-
-	/**
-	 * Creates the meta-model objects for the package.  This method is
-	 * guarded to have no affect on any invocation but its first.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public void createPackageContents() {
-		if (isCreated) return;
-		isCreated = true;
-
-		// Create classes and their features
-		generatorModelEClass = createEClass(GENERATOR_MODEL);
-		createEReference(generatorModelEClass, GENERATOR_MODEL__CONFIGURATIONS);
-		createEReference(generatorModelEClass, GENERATOR_MODEL__STATECHARTS);
-
-		configurationEClass = createEClass(CONFIGURATION);
-
-		outletConfigurationEClass = createEClass(OUTLET_CONFIGURATION);
-		createEAttribute(outletConfigurationEClass, OUTLET_CONFIGURATION__PATH);
-		createEAttribute(outletConfigurationEClass, OUTLET_CONFIGURATION__OVERRIDE);
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	private boolean isInitialized = false;
-
-	/**
-	 * Complete the initialization of the package and its meta-model.  This
-	 * method is guarded to have no affect on any invocation but its first.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public void initializePackageContents() {
-		if (isInitialized) return;
-		isInitialized = true;
-
-		// Initialize package
-		setName(eNAME);
-		setNsPrefix(eNS_PREFIX);
-		setNsURI(eNS_URI);
-
-		// Obtain other dependent packages
-		SGraphPackage theSGraphPackage = (SGraphPackage)EPackage.Registry.INSTANCE.getEPackage(SGraphPackage.eNS_URI);
-
-		// Create type parameters
-
-		// Set bounds for type parameters
-
-		// Add supertypes to classes
-		outletConfigurationEClass.getESuperTypes().add(this.getConfiguration());
-
-		// Initialize classes and features; add operations and parameters
-		initEClass(generatorModelEClass, GeneratorModel.class, "GeneratorModel", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
-		initEReference(getGeneratorModel_Configurations(), this.getConfiguration(), null, "configurations", null, 0, -1, GeneratorModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-		initEReference(getGeneratorModel_Statecharts(), theSGraphPackage.getStatechart(), null, "statecharts", null, 0, -1, GeneratorModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
-		initEClass(configurationEClass, Configuration.class, "Configuration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
-
-		initEClass(outletConfigurationEClass, OutletConfiguration.class, "OutletConfiguration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
-		initEAttribute(getOutletConfiguration_Path(), ecorePackage.getEString(), "path", null, 0, 1, OutletConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-		initEAttribute(getOutletConfiguration_Override(), ecorePackage.getEBoolean(), "override", null, 0, 1, OutletConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
-		// Create resource
-		createResource(eNS_URI);
-	}
-
-} //SGenPackageImpl

+ 0 - 160
plugins/org.yakindu.sct.model.sgen/src/org/yakindu/sct/model/sgen/util/SGenAdapterFactory.java

@@ -1,160 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.yakindu.sct.model.sgen.util;
-
-import org.eclipse.emf.common.notify.Adapter;
-import org.eclipse.emf.common.notify.Notifier;
-
-import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
-
-import org.eclipse.emf.ecore.EObject;
-
-import org.yakindu.sct.model.sgen.*;
-
-/**
- * <!-- begin-user-doc -->
- * The <b>Adapter Factory</b> for the model.
- * It provides an adapter <code>createXXX</code> method for each class of the model.
- * <!-- end-user-doc -->
- * @see org.yakindu.sct.model.sgen.SGenPackage
- * @generated
- */
-public class SGenAdapterFactory extends AdapterFactoryImpl {
-	/**
-	 * The cached model package.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	protected static SGenPackage modelPackage;
-
-	/**
-	 * Creates an instance of the adapter factory.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public SGenAdapterFactory() {
-		if (modelPackage == null) {
-			modelPackage = SGenPackage.eINSTANCE;
-		}
-	}
-
-	/**
-	 * Returns whether this factory is applicable for the type of the object.
-	 * <!-- begin-user-doc -->
-	 * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model.
-	 * <!-- end-user-doc -->
-	 * @return whether this factory is applicable for the type of the object.
-	 * @generated
-	 */
-	@Override
-	public boolean isFactoryForType(Object object) {
-		if (object == modelPackage) {
-			return true;
-		}
-		if (object instanceof EObject) {
-			return ((EObject)object).eClass().getEPackage() == modelPackage;
-		}
-		return false;
-	}
-
-	/**
-	 * The switch that delegates to the <code>createXXX</code> methods.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	protected SGenSwitch<Adapter> modelSwitch =
-		new SGenSwitch<Adapter>() {
-			@Override
-			public Adapter caseGeneratorModel(GeneratorModel object) {
-				return createGeneratorModelAdapter();
-			}
-			@Override
-			public Adapter caseConfiguration(Configuration object) {
-				return createConfigurationAdapter();
-			}
-			@Override
-			public Adapter caseOutletConfiguration(OutletConfiguration object) {
-				return createOutletConfigurationAdapter();
-			}
-			@Override
-			public Adapter defaultCase(EObject object) {
-				return createEObjectAdapter();
-			}
-		};
-
-	/**
-	 * Creates an adapter for the <code>target</code>.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @param target the object to adapt.
-	 * @return the adapter for the <code>target</code>.
-	 * @generated
-	 */
-	@Override
-	public Adapter createAdapter(Notifier target) {
-		return modelSwitch.doSwitch((EObject)target);
-	}
-
-
-	/**
-	 * Creates a new adapter for an object of class '{@link org.yakindu.sct.model.sgen.GeneratorModel <em>Generator Model</em>}'.
-	 * <!-- begin-user-doc -->
-	 * This default implementation returns null so that we can easily ignore cases;
-	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
-	 * <!-- end-user-doc -->
-	 * @return the new adapter.
-	 * @see org.yakindu.sct.model.sgen.GeneratorModel
-	 * @generated
-	 */
-	public Adapter createGeneratorModelAdapter() {
-		return null;
-	}
-
-	/**
-	 * Creates a new adapter for an object of class '{@link org.yakindu.sct.model.sgen.Configuration <em>Configuration</em>}'.
-	 * <!-- begin-user-doc -->
-	 * This default implementation returns null so that we can easily ignore cases;
-	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
-	 * <!-- end-user-doc -->
-	 * @return the new adapter.
-	 * @see org.yakindu.sct.model.sgen.Configuration
-	 * @generated
-	 */
-	public Adapter createConfigurationAdapter() {
-		return null;
-	}
-
-	/**
-	 * Creates a new adapter for an object of class '{@link org.yakindu.sct.model.sgen.OutletConfiguration <em>Outlet Configuration</em>}'.
-	 * <!-- begin-user-doc -->
-	 * This default implementation returns null so that we can easily ignore cases;
-	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
-	 * <!-- end-user-doc -->
-	 * @return the new adapter.
-	 * @see org.yakindu.sct.model.sgen.OutletConfiguration
-	 * @generated
-	 */
-	public Adapter createOutletConfigurationAdapter() {
-		return null;
-	}
-
-	/**
-	 * Creates a new adapter for the default case.
-	 * <!-- begin-user-doc -->
-	 * This default implementation returns null.
-	 * <!-- end-user-doc -->
-	 * @return the new adapter.
-	 * @generated
-	 */
-	public Adapter createEObjectAdapter() {
-		return null;
-	}
-
-} //SGenAdapterFactory

+ 0 - 157
plugins/org.yakindu.sct.model.sgen/src/org/yakindu/sct/model/sgen/util/SGenSwitch.java

@@ -1,157 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.yakindu.sct.model.sgen.util;
-
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EPackage;
-
-import org.eclipse.emf.ecore.util.Switch;
-
-import org.yakindu.sct.model.sgen.*;
-
-/**
- * <!-- begin-user-doc -->
- * The <b>Switch</b> for the model's inheritance hierarchy.
- * It supports the call {@link #doSwitch(EObject) doSwitch(object)}
- * to invoke the <code>caseXXX</code> method for each class of the model,
- * starting with the actual class of the object
- * and proceeding up the inheritance hierarchy
- * until a non-null result is returned,
- * which is the result of the switch.
- * <!-- end-user-doc -->
- * @see org.yakindu.sct.model.sgen.SGenPackage
- * @generated
- */
-public class SGenSwitch<T> extends Switch<T> {
-	/**
-	 * The cached model package
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	protected static SGenPackage modelPackage;
-
-	/**
-	 * Creates an instance of the switch.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public SGenSwitch() {
-		if (modelPackage == null) {
-			modelPackage = SGenPackage.eINSTANCE;
-		}
-	}
-
-	/**
-	 * Checks whether this is a switch for the given package.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @parameter ePackage the package in question.
-	 * @return whether this is a switch for the given package.
-	 * @generated
-	 */
-	@Override
-	protected boolean isSwitchFor(EPackage ePackage) {
-		return ePackage == modelPackage;
-	}
-
-	/**
-	 * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @return the first non-null result returned by a <code>caseXXX</code> call.
-	 * @generated
-	 */
-	@Override
-	protected T doSwitch(int classifierID, EObject theEObject) {
-		switch (classifierID) {
-			case SGenPackage.GENERATOR_MODEL: {
-				GeneratorModel generatorModel = (GeneratorModel)theEObject;
-				T result = caseGeneratorModel(generatorModel);
-				if (result == null) result = defaultCase(theEObject);
-				return result;
-			}
-			case SGenPackage.CONFIGURATION: {
-				Configuration configuration = (Configuration)theEObject;
-				T result = caseConfiguration(configuration);
-				if (result == null) result = defaultCase(theEObject);
-				return result;
-			}
-			case SGenPackage.OUTLET_CONFIGURATION: {
-				OutletConfiguration outletConfiguration = (OutletConfiguration)theEObject;
-				T result = caseOutletConfiguration(outletConfiguration);
-				if (result == null) result = caseConfiguration(outletConfiguration);
-				if (result == null) result = defaultCase(theEObject);
-				return result;
-			}
-			default: return defaultCase(theEObject);
-		}
-	}
-
-	/**
-	 * Returns the result of interpreting the object as an instance of '<em>Generator Model</em>'.
-	 * <!-- begin-user-doc -->
-	 * This implementation returns null;
-	 * returning a non-null result will terminate the switch.
-	 * <!-- end-user-doc -->
-	 * @param object the target of the switch.
-	 * @return the result of interpreting the object as an instance of '<em>Generator Model</em>'.
-	 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
-	 * @generated
-	 */
-	public T caseGeneratorModel(GeneratorModel object) {
-		return null;
-	}
-
-	/**
-	 * Returns the result of interpreting the object as an instance of '<em>Configuration</em>'.
-	 * <!-- begin-user-doc -->
-	 * This implementation returns null;
-	 * returning a non-null result will terminate the switch.
-	 * <!-- end-user-doc -->
-	 * @param object the target of the switch.
-	 * @return the result of interpreting the object as an instance of '<em>Configuration</em>'.
-	 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
-	 * @generated
-	 */
-	public T caseConfiguration(Configuration object) {
-		return null;
-	}
-
-	/**
-	 * Returns the result of interpreting the object as an instance of '<em>Outlet Configuration</em>'.
-	 * <!-- begin-user-doc -->
-	 * This implementation returns null;
-	 * returning a non-null result will terminate the switch.
-	 * <!-- end-user-doc -->
-	 * @param object the target of the switch.
-	 * @return the result of interpreting the object as an instance of '<em>Outlet Configuration</em>'.
-	 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
-	 * @generated
-	 */
-	public T caseOutletConfiguration(OutletConfiguration object) {
-		return null;
-	}
-
-	/**
-	 * Returns the result of interpreting the object as an instance of '<em>EObject</em>'.
-	 * <!-- begin-user-doc -->
-	 * This implementation returns null;
-	 * returning a non-null result will terminate the switch, but this is the last case anyway.
-	 * <!-- end-user-doc -->
-	 * @param object the target of the switch.
-	 * @return the result of interpreting the object as an instance of '<em>EObject</em>'.
-	 * @see #doSwitch(org.eclipse.emf.ecore.EObject)
-	 * @generated
-	 */
-	@Override
-	public T defaultCase(EObject object) {
-		return null;
-	}
-
-} //SGenSwitch