Преглед изворни кода

migration of sruntime to xcore (#2007)

Andreas Mülder пре 7 година
родитељ
комит
a1c3935a77
37 измењених фајлова са 337 додато и 4913 уклоњено
  1. 8 7
      plugins/org.yakindu.sct.model.sruntime/.classpath
  2. 1 0
      plugins/org.yakindu.sct.model.sruntime/.gitignore
  3. 34 28
      plugins/org.yakindu.sct.model.sruntime/.project
  4. 4 1
      plugins/org.yakindu.sct.model.sruntime/META-INF/MANIFEST.MF
  5. 18 17
      plugins/org.yakindu.sct.model.sruntime/build.properties
  6. 91 0
      plugins/org.yakindu.sct.model.sruntime/model/SRuntime.xcore
  7. 0 48
      plugins/org.yakindu.sct.model.sruntime/model/sruntime.ecore
  8. 0 56
      plugins/org.yakindu.sct.model.sruntime/model/sruntime.genmodel
  9. 25 25
      plugins/org.yakindu.sct.model.sruntime/plugin.xml
  10. 52 1
      plugins/org.yakindu.sct.model.sruntime/pom.xml
  11. 0 48
      plugins/org.yakindu.sct.model.sruntime/src/org/yakindu/sct/model/sruntime/CompositeSlot.java
  12. 1 1
      plugins/org.yakindu.sct.model.sruntime/src/org/yakindu/sct/model/sruntime/util/CrossDocumentContentAdapter.java
  13. 0 168
      plugins/org.yakindu.sct.model.sruntime/src/org/yakindu/sct/model/sruntime/ExecutionContext.java
  14. 0 89
      plugins/org.yakindu.sct.model.sruntime/src/org/yakindu/sct/model/sruntime/ExecutionEvent.java
  15. 0 25
      plugins/org.yakindu.sct.model.sruntime/src/org/yakindu/sct/model/sruntime/ExecutionOperation.java
  16. 0 141
      plugins/org.yakindu.sct.model.sruntime/src/org/yakindu/sct/model/sruntime/ExecutionSlot.java
  17. 0 25
      plugins/org.yakindu.sct.model.sruntime/src/org/yakindu/sct/model/sruntime/ExecutionVariable.java
  18. 0 57
      plugins/org.yakindu.sct.model.sruntime/src/org/yakindu/sct/model/sruntime/ReferenceSlot.java
  19. 0 95
      plugins/org.yakindu.sct.model.sruntime/src/org/yakindu/sct/model/sruntime/SRuntimeFactory.java
  20. 0 1031
      plugins/org.yakindu.sct.model.sruntime/src/org/yakindu/sct/model/sruntime/SRuntimePackage.java
  21. 0 145
      plugins/org.yakindu.sct.model.sruntime/src/org/yakindu/sct/model/sruntime/impl/CompositeSlotImpl.java
  22. 0 713
      plugins/org.yakindu.sct.model.sruntime/src/org/yakindu/sct/model/sruntime/impl/ExecutionContextImpl.java
  23. 0 222
      plugins/org.yakindu.sct.model.sruntime/src/org/yakindu/sct/model/sruntime/impl/ExecutionEventImpl.java
  24. 0 44
      plugins/org.yakindu.sct.model.sruntime/src/org/yakindu/sct/model/sruntime/impl/ExecutionOperationImpl.java
  25. 0 331
      plugins/org.yakindu.sct.model.sruntime/src/org/yakindu/sct/model/sruntime/impl/ExecutionSlotImpl.java
  26. 0 44
      plugins/org.yakindu.sct.model.sruntime/src/org/yakindu/sct/model/sruntime/impl/ExecutionVariableImpl.java
  27. 0 186
      plugins/org.yakindu.sct.model.sruntime/src/org/yakindu/sct/model/sruntime/impl/ReferenceSlotImpl.java
  28. 0 213
      plugins/org.yakindu.sct.model.sruntime/src/org/yakindu/sct/model/sruntime/impl/SRuntimeFactoryImpl.java
  29. 0 490
      plugins/org.yakindu.sct.model.sruntime/src/org/yakindu/sct/model/sruntime/impl/SRuntimePackageImpl.java
  30. 0 255
      plugins/org.yakindu.sct.model.sruntime/src/org/yakindu/sct/model/sruntime/util/SRuntimeAdapterFactory.java
  31. 0 276
      plugins/org.yakindu.sct.model.sruntime/src/org/yakindu/sct/model/sruntime/util/SRuntimeSwitch.java
  32. 1 0
      plugins/org.yakindu.sct.model.stext/.classpath
  33. 1 1
      plugins/org.yakindu.sct.simulation.ui/src/org/yakindu/sct/simulation/ui/model/presenter/ExecutionContextVisualizer.java
  34. 41 40
      releng/org.yakindu.base.target/Mars.target
  35. 41 40
      releng/org.yakindu.base.target/Neon.target
  36. 7 6
      releng/org.yakindu.base.target/Oxygen.target
  37. 12 44
      releng/org.yakindu.sct.releng/pom.xml

+ 8 - 7
plugins/org.yakindu.sct.model.sruntime/.classpath

@@ -1,7 +1,8 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
-	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
-	<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
-	<classpathentry kind="src" path="src"/>
-	<classpathentry kind="output" path="bin"/>
-</classpath>
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+	<classpathentry kind="src" path="emf-gen"/>
+	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
+	<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+	<classpathentry kind="src" path="src"/>
+	<classpathentry kind="output" path="bin"/>
+</classpath>

+ 1 - 0
plugins/org.yakindu.sct.model.sruntime/.gitignore

@@ -1,3 +1,4 @@
 /bin/
 /target/
 /xtend-gen/
+/emf-gen/

+ 34 - 28
plugins/org.yakindu.sct.model.sruntime/.project

@@ -1,28 +1,34 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
-	<name>org.yakindu.sct.model.sruntime</name>
-	<comment></comment>
-	<projects>
-	</projects>
-	<buildSpec>
-		<buildCommand>
-			<name>org.eclipse.jdt.core.javabuilder</name>
-			<arguments>
-			</arguments>
-		</buildCommand>
-		<buildCommand>
-			<name>org.eclipse.pde.ManifestBuilder</name>
-			<arguments>
-			</arguments>
-		</buildCommand>
-		<buildCommand>
-			<name>org.eclipse.pde.SchemaBuilder</name>
-			<arguments>
-			</arguments>
-		</buildCommand>
-	</buildSpec>
-	<natures>
-		<nature>org.eclipse.pde.PluginNature</nature>
-		<nature>org.eclipse.jdt.core.javanature</nature>
-	</natures>
-</projectDescription>
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+	<name>org.yakindu.sct.model.sruntime</name>
+	<comment></comment>
+	<projects>
+	</projects>
+	<buildSpec>
+		<buildCommand>
+			<name>org.eclipse.xtext.ui.shared.xtextBuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>org.eclipse.jdt.core.javabuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>org.eclipse.pde.ManifestBuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>org.eclipse.pde.SchemaBuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+	</buildSpec>
+	<natures>
+		<nature>org.eclipse.pde.PluginNature</nature>
+		<nature>org.eclipse.jdt.core.javanature</nature>
+		<nature>org.eclipse.xtext.ui.shared.xtextNature</nature>
+	</natures>
+</projectDescription>

+ 4 - 1
plugins/org.yakindu.sct.model.sruntime/META-INF/MANIFEST.MF

@@ -13,5 +13,8 @@ Export-Package: org.yakindu.sct.model.sruntime,
 Require-Bundle: org.eclipse.core.runtime,
  org.eclipse.emf.ecore;visibility:=reexport,
  org.yakindu.base.types;visibility:=reexport,
- com.google.guava
+ com.google.guava,
+ org.eclipse.xtext.xbase.lib,
+ org.eclipse.emf.ecore.xcore.lib
 Bundle-ActivationPolicy: lazy
+

+ 18 - 17
plugins/org.yakindu.sct.model.sruntime/build.properties

@@ -1,17 +1,18 @@
-# Copyright (c) 2013 committers of YAKINDU and others.
-# All rights reserved. This program and the accompanying materials
-# are made available under the terms of the Eclipse Public License v1.0
-# which accompanies this distribution, and is available at
-# http://www.eclipse.org/legal/epl-v10.html
-# Contributors:
-# committers of YAKINDU - initial API and implementation
-# 
-
-bin.includes = .,\
-               model/,\
-               META-INF/,\
-               plugin.xml,\
-               plugin.properties
-jars.compile.order = .
-source.. = src/
-output.. = bin/
+# Copyright (c) 2013 committers of YAKINDU and others.
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Eclipse Public License v1.0
+# which accompanies this distribution, and is available at
+# http://www.eclipse.org/legal/epl-v10.html
+# Contributors:
+# committers of YAKINDU - initial API and implementation
+# 
+
+bin.includes = .,\
+               model/,\
+               META-INF/,\
+               plugin.xml,\
+               plugin.properties
+jars.compile.order = .
+source.. = src/,\
+           emf-gen/
+output.. = bin/

+ 91 - 0
plugins/org.yakindu.sct.model.sruntime/model/SRuntime.xcore

@@ -0,0 +1,91 @@
+@GenModel(copyrightText="Copyright (c) 2018 committers of YAKINDU and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\nContributors:\r\ncommitters of YAKINDU - initial API and implementation\r\n",
+	operationReflection="false", prefix="SRuntime", modelDirectory="/org.yakindu.sct.model.sruntime/emf-gen",
+	suppressEMFTypes="true", importerID="org.eclipse.emf.importer.ecore", publicConstructors="true",
+	interfaceNamePattern="")
+@Ecore(nsURI="http://www.yakindu.org/sct/sruntime/2.0.0")
+package org.yakindu.sct.model.sruntime
+
+import com.google.common.collect.Lists
+import org.eclipse.core.runtime.Assert
+import org.eclipse.emf.common.util.BasicEList
+import org.eclipse.emf.ecore.EObject
+import org.yakindu.base.base.NamedElement
+import org.yakindu.base.types.Direction
+import org.yakindu.base.types.Type
+
+/**
+ * 
+ * @author andreas muelder - Initial contribution and API
+ * 
+ */
+class ExecutionContext extends NamedElement, CompositeSlot {
+	refers EObject[] activeStates
+	refers EObject[] executedElements
+	refers EObject[] suspendedElements
+	boolean snapshot
+	op unique ExecutionEvent[] getRaisedEvents() {
+		return allEvents.filter[raised].toList
+	}
+	op ExecutionVariable getVariable(String qualifiedName) {
+		Assert.isNotNull(qualifiedName);
+		allVariables.findFirst[qualifiedName == it.fqName]
+	}
+	op ExecutionEvent getEvent(String qualifiedName) {
+		Assert.isNotNull(qualifiedName);
+		allEvents.findFirst[qualifiedName == it.fqName]
+	}
+	op ExecutionSlot getSlot(String qualifiedName) {
+		Assert.isNotNull(qualifiedName);
+		allSlots.findFirst[qualifiedName == it.fqName]
+	}
+	op unique ExecutionEvent[] getAllEvents() {
+		allSlots.filter(ExecutionEvent).toList
+	}
+	op unique ExecutionVariable[] getAllVariables() {
+		allSlots.filter(ExecutionVariable).toList
+	}
+	op unique ExecutionSlot[] getAllSlots() {
+		var result = new BasicEList<ExecutionSlot>
+		addSlots(result, slots, Lists.newArrayList)
+		result
+	}
+	op void addSlots(ExecutionSlot[] result, ExecutionSlot[] slots, unique ExecutionSlot[] visited) {
+		slots.forEach [
+			if (visited.add(it)) {
+				result.add(it)
+				if (it instanceof CompositeSlot) {
+					addSlots(result, it.slots, visited)
+				}
+
+			}
+		]
+	}
+}
+
+class ExecutionEvent extends ExecutionSlot {
+	boolean raised
+	Direction direction
+}
+
+abstract class ExecutionSlot extends NamedElement {
+	JavaObject value
+	String fqName
+	boolean writable = "true"
+	refers Type ^type
+}
+
+class ExecutionVariable extends ExecutionSlot {
+}
+
+class CompositeSlot extends ExecutionSlot {
+	contains ExecutionSlot[] slots
+}
+
+class ReferenceSlot extends CompositeSlot {
+	refers ExecutionSlot reference
+}
+
+class ExecutionOperation extends ExecutionVariable {
+}
+
+type JavaObject wraps Object

+ 0 - 48
plugins/org.yakindu.sct.model.sruntime/model/sruntime.ecore

@@ -1,48 +0,0 @@
-<?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="sruntime" nsURI="http://www.yakindu.org/sct/sruntime/2.0.0"
-    nsPrefix="sruntime">
-  <eClassifiers xsi:type="ecore:EClass" name="ExecutionContext" eSuperTypes="../../org.yakindu.base.types/model/base.ecore#//NamedElement #//CompositeSlot">
-    <eOperations name="getRaisedEvents" upperBound="-1" eType="#//ExecutionEvent"/>
-    <eOperations name="getVariable" eType="#//ExecutionVariable">
-      <eParameters name="qualifiedName" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
-    </eOperations>
-    <eOperations name="getEvent" eType="#//ExecutionEvent">
-      <eParameters name="qualifiedName" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
-    </eOperations>
-    <eOperations name="getAllEvents" upperBound="-1" eType="#//ExecutionEvent"/>
-    <eOperations name="getAllVariables" upperBound="-1" eType="#//ExecutionVariable"/>
-    <eOperations name="getAllSlots" upperBound="-1" eType="#//ExecutionSlot"/>
-    <eOperations name="getSlot" eType="#//ExecutionSlot">
-      <eParameters name="qualifiedName" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
-    </eOperations>
-    <eStructuralFeatures xsi:type="ecore:EReference" name="activeStates" upperBound="-1"
-        eType="ecore:EClass http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
-    <eStructuralFeatures xsi:type="ecore:EReference" name="executedElements" upperBound="-1"
-        eType="ecore:EClass http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
-    <eStructuralFeatures xsi:type="ecore:EReference" name="suspendedElements" upperBound="-1"
-        eType="ecore:EClass http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
-    <eStructuralFeatures xsi:type="ecore:EAttribute" name="snapshot" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
-  </eClassifiers>
-  <eClassifiers xsi:type="ecore:EClass" name="ExecutionEvent" eSuperTypes="#//ExecutionSlot">
-    <eStructuralFeatures xsi:type="ecore:EAttribute" name="raised" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
-    <eStructuralFeatures xsi:type="ecore:EAttribute" name="direction" eType="ecore:EEnum ../../org.yakindu.base.types/model/types.ecore#//Direction"/>
-  </eClassifiers>
-  <eClassifiers xsi:type="ecore:EClass" name="ExecutionSlot" abstract="true" eSuperTypes="../../org.yakindu.base.types/model/base.ecore#//NamedElement">
-    <eStructuralFeatures xsi:type="ecore:EAttribute" name="value" eType="#//JavaObject"/>
-    <eStructuralFeatures xsi:type="ecore:EAttribute" name="fqName" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
-    <eStructuralFeatures xsi:type="ecore:EAttribute" name="writable" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"
-        defaultValueLiteral="true"/>
-    <eStructuralFeatures xsi:type="ecore:EReference" name="type" eType="ecore:EClass ../../org.yakindu.base.types/model/types.ecore#//Type"/>
-  </eClassifiers>
-  <eClassifiers xsi:type="ecore:EClass" name="ExecutionVariable" eSuperTypes="#//ExecutionSlot"/>
-  <eClassifiers xsi:type="ecore:EClass" name="CompositeSlot" eSuperTypes="#//ExecutionSlot">
-    <eStructuralFeatures xsi:type="ecore:EReference" name="slots" upperBound="-1"
-        eType="#//ExecutionSlot" containment="true"/>
-  </eClassifiers>
-  <eClassifiers xsi:type="ecore:EDataType" name="JavaObject" instanceClassName="java.lang.Object"/>
-  <eClassifiers xsi:type="ecore:EClass" name="ReferenceSlot" eSuperTypes="#//CompositeSlot">
-    <eStructuralFeatures xsi:type="ecore:EReference" name="reference" eType="#//ExecutionSlot"/>
-  </eClassifiers>
-  <eClassifiers xsi:type="ecore:EClass" name="ExecutionOperation" eSuperTypes="#//ExecutionVariable"/>
-</ecore:EPackage>

+ 0 - 56
plugins/org.yakindu.sct.model.sruntime/model/sruntime.genmodel

@@ -1,56 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<genmodel:GenModel xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
-    xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" copyrightText="Copyright (c) 2013 committers of YAKINDU and others.&#xD;&#xA;All rights reserved. This program and the accompanying materials&#xD;&#xA;are made available under the terms of the Eclipse Public License v1.0&#xD;&#xA;which accompanies this distribution, and is available at&#xD;&#xA;http://www.eclipse.org/legal/epl-v10.html&#xD;&#xA;Contributors:&#xD;&#xA;committers of YAKINDU - initial API and implementation&#xD;&#xA;"
-    modelDirectory="/org.yakindu.sct.model.sruntime/src" modelPluginID="org.yakindu.sct.model.sruntime"
-    modelName="Sruntime" rootExtendsClass="org.eclipse.emf.ecore.impl.MinimalEObjectImpl$Container"
-    suppressEMFTypes="true" importerID="org.eclipse.emf.importer.ecore" complianceLevel="8.0"
-    copyrightFields="false" publicConstructors="true" usedGenPackages="../../org.yakindu.base.types/model/base.genmodel#//base ../../org.yakindu.base.types/model/types.genmodel#//types"
-    interfaceNamePattern="" importOrganizing="true">
-  <foreignModel>sruntime.ecore</foreignModel>
-  <genPackages prefix="SRuntime" basePackage="org.yakindu.sct.model" disposableProviderFactory="true"
-      ecorePackage="sruntime.ecore#/">
-    <genEnums typeSafeEnumCompatible="false" ecoreEnum="sruntime.ecore#//EventDirection">
-      <genEnumLiterals ecoreEnumLiteral="sruntime.ecore#//EventDirection/LOCAL"/>
-      <genEnumLiterals ecoreEnumLiteral="sruntime.ecore#//EventDirection/IN"/>
-      <genEnumLiterals ecoreEnumLiteral="sruntime.ecore#//EventDirection/OUT"/>
-    </genEnums>
-    <genDataTypes ecoreDataType="sruntime.ecore#//JavaObject"/>
-    <genClasses ecoreClass="sruntime.ecore#//ExecutionContext">
-      <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference sruntime.ecore#//ExecutionContext/activeStates"/>
-      <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference sruntime.ecore#//ExecutionContext/executedElements"/>
-      <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference sruntime.ecore#//ExecutionContext/suspendedElements"/>
-      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute sruntime.ecore#//ExecutionContext/snapshot"/>
-      <genOperations ecoreOperation="sruntime.ecore#//ExecutionContext/getRaisedEvents"/>
-      <genOperations ecoreOperation="sruntime.ecore#//ExecutionContext/getVariable">
-        <genParameters ecoreParameter="sruntime.ecore#//ExecutionContext/getVariable/qualifiedName"/>
-      </genOperations>
-      <genOperations ecoreOperation="sruntime.ecore#//ExecutionContext/getEvent">
-        <genParameters ecoreParameter="sruntime.ecore#//ExecutionContext/getEvent/qualifiedName"/>
-      </genOperations>
-      <genOperations ecoreOperation="sruntime.ecore#//ExecutionContext/getAllEvents"/>
-      <genOperations ecoreOperation="sruntime.ecore#//ExecutionContext/getAllVariables"/>
-      <genOperations ecoreOperation="sruntime.ecore#//ExecutionContext/getAllSlots"/>
-      <genOperations ecoreOperation="sruntime.ecore#//ExecutionContext/getSlot">
-        <genParameters ecoreParameter="sruntime.ecore#//ExecutionContext/getSlot/qualifiedName"/>
-      </genOperations>
-    </genClasses>
-    <genClasses ecoreClass="sruntime.ecore#//ExecutionEvent">
-      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute sruntime.ecore#//ExecutionEvent/raised"/>
-      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute sruntime.ecore#//ExecutionEvent/direction"/>
-    </genClasses>
-    <genClasses image="false" ecoreClass="sruntime.ecore#//ExecutionSlot">
-      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute sruntime.ecore#//ExecutionSlot/value"/>
-      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute sruntime.ecore#//ExecutionSlot/fqName"/>
-      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute sruntime.ecore#//ExecutionSlot/writable"/>
-      <genFeatures createChild="false" ecoreFeature="ecore:EReference sruntime.ecore#//ExecutionSlot/type"/>
-    </genClasses>
-    <genClasses ecoreClass="sruntime.ecore#//ExecutionVariable"/>
-    <genClasses ecoreClass="sruntime.ecore#//CompositeSlot">
-      <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference sruntime.ecore#//CompositeSlot/slots"/>
-    </genClasses>
-    <genClasses ecoreClass="sruntime.ecore#//ReferenceSlot">
-      <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference sruntime.ecore#//ReferenceSlot/reference"/>
-    </genClasses>
-    <genClasses ecoreClass="sruntime.ecore#//ExecutionOperation"/>
-  </genPackages>
-</genmodel:GenModel>

+ 25 - 25
plugins/org.yakindu.sct.model.sruntime/plugin.xml

@@ -1,25 +1,25 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<?eclipse version="3.0"?>
-
-<!--
- Copyright (c) 2013 committers of YAKINDU and others.
- All rights reserved. This program and the accompanying materials
- are made available under the terms of the Eclipse Public License v1.0
- which accompanies this distribution, and is available at
- http://www.eclipse.org/legal/epl-v10.html
- Contributors:
- committers of YAKINDU - initial API and implementation
- 
--->
-
-<plugin>
-
-   <extension point="org.eclipse.emf.ecore.generated_package">
-      <!-- @generated sruntime -->
-      <package
-            uri="http://www.yakindu.org/sct/sruntime/2.0.0"
-            class="org.yakindu.sct.model.sruntime.SRuntimePackage"
-            genModel="model/sruntime.genmodel"/>
-   </extension>
-
-</plugin>
+<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse version="3.0"?>
+
+<!--
+ Copyright (c) 2013 committers of YAKINDU and others.
+ All rights reserved. This program and the accompanying materials
+ are made available under the terms of the Eclipse Public License v1.0
+ which accompanies this distribution, and is available at
+ http://www.eclipse.org/legal/epl-v10.html
+ Contributors:
+ committers of YAKINDU - initial API and implementation
+ 
+-->
+
+<plugin>
+
+   <extension point="org.eclipse.emf.ecore.generated_package">
+      <!-- @generated SRuntime -->
+      <package
+            uri="http://www.yakindu.org/sct/sruntime/2.0.0"
+            class="org.yakindu.sct.model.sruntime.SRuntimePackage"
+            genModel="model/SRuntime.xcore"/>
+   </extension>
+
+</plugin>

+ 52 - 1
plugins/org.yakindu.sct.model.sruntime/pom.xml

@@ -12,5 +12,56 @@
 	<artifactId>org.yakindu.sct.model.sruntime</artifactId>
 	<groupId>org.yakindu.sct.plugins</groupId>
 	<packaging>eclipse-plugin</packaging>
-	
+	<build>
+		<plugins>
+			<plugin>
+				<groupId>org.eclipse.xtext</groupId>
+				<artifactId>xtext-maven-plugin</artifactId>
+				<version>${xtext-version}</version>
+				<executions>
+					<execution>
+						<phase>generate-sources</phase>
+						<goals>
+							<goal>generate</goal>
+						</goals>
+					</execution>
+				</executions>
+				<configuration>
+					<languages>
+						<language>
+							<setup>org.eclipse.emf.codegen.ecore.xtext.GenModelSupport</setup>
+						</language>
+						<language>
+							<setup>org.eclipse.emf.ecore.xcore.XcoreStandaloneSetup</setup>
+							<outputConfigurations>
+								<outputConfiguration>
+									<outputDirectory>${project.basedir}/emf-gen</outputDirectory>
+								</outputConfiguration>
+							</outputConfigurations>
+						</language>
+					</languages>
+					<sourceRoots>
+						<root>${project.basedir}/model</root>
+					</sourceRoots>
+				</configuration>
+				<dependencies>
+					<dependency>
+						<groupId>org.eclipse.emf</groupId>
+						<artifactId>org.eclipse.emf.codegen.ecore.xtext</artifactId>
+						<version>${ecore-xtext-version}</version>
+					</dependency>
+					<dependency>
+						<groupId>org.eclipse.emf</groupId>
+						<artifactId>org.eclipse.emf.ecore.xcore</artifactId>
+						<version>${ecore-xcore-version}</version>
+					</dependency>
+					<dependency>
+						<groupId>org.eclipse.emf</groupId>
+						<artifactId>org.eclipse.emf.ecore.xcore.lib</artifactId>
+						<version>${ecore-xcore-lib-version}</version>
+					</dependency>
+				</dependencies>
+			</plugin>
+		</plugins>
+	</build>
 </project>

+ 0 - 48
plugins/org.yakindu.sct.model.sruntime/src/org/yakindu/sct/model/sruntime/CompositeSlot.java

@@ -1,48 +0,0 @@
-/**
- * Copyright (c) 2013 committers of YAKINDU and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- * Contributors:
- * committers of YAKINDU - initial API and implementation
- * 
- */
-package org.yakindu.sct.model.sruntime;
-
-import java.util.List;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Composite Slot</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * </p>
- * <ul>
- *   <li>{@link org.yakindu.sct.model.sruntime.CompositeSlot#getSlots <em>Slots</em>}</li>
- * </ul>
- *
- * @see org.yakindu.sct.model.sruntime.SRuntimePackage#getCompositeSlot()
- * @model
- * @generated
- */
-public interface CompositeSlot extends ExecutionSlot {
-	/**
-	 * Returns the value of the '<em><b>Slots</b></em>' containment reference list.
-	 * The list contents are of type {@link org.yakindu.sct.model.sruntime.ExecutionSlot}.
-	 * <!-- begin-user-doc -->
-	 * <p>
-	 * If the meaning of the '<em>Slots</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>Slots</em>' containment reference list.
-	 * @see org.yakindu.sct.model.sruntime.SRuntimePackage#getCompositeSlot_Slots()
-	 * @model containment="true"
-	 * @generated
-	 */
-	List<ExecutionSlot> getSlots();
-
-} // CompositeSlot

+ 1 - 1
plugins/org.yakindu.sct.model.sruntime/src/org/yakindu/sct/model/sruntime/util/CrossDocumentContentAdapter.java

@@ -8,7 +8,7 @@
  * committers of YAKINDU - initial API and implementation
  *
 */
-package org.yakindu.sct.model.sruntime.util;
+package org.yakindu.sct.model.sruntime;
 
 import org.eclipse.emf.common.notify.Notification;
 import org.eclipse.emf.common.notify.Notifier;

+ 0 - 168
plugins/org.yakindu.sct.model.sruntime/src/org/yakindu/sct/model/sruntime/ExecutionContext.java

@@ -1,168 +0,0 @@
-/**
- * Copyright (c) 2013 committers of YAKINDU and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- * Contributors:
- * committers of YAKINDU - initial API and implementation
- * 
- */
-package org.yakindu.sct.model.sruntime;
-
-import java.util.List;
-import org.eclipse.emf.ecore.EObject;
-
-import org.yakindu.base.base.NamedElement;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Execution Context</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * </p>
- * <ul>
- *   <li>{@link org.yakindu.sct.model.sruntime.ExecutionContext#getActiveStates <em>Active States</em>}</li>
- *   <li>{@link org.yakindu.sct.model.sruntime.ExecutionContext#getExecutedElements <em>Executed Elements</em>}</li>
- *   <li>{@link org.yakindu.sct.model.sruntime.ExecutionContext#getSuspendedElements <em>Suspended Elements</em>}</li>
- *   <li>{@link org.yakindu.sct.model.sruntime.ExecutionContext#isSnapshot <em>Snapshot</em>}</li>
- * </ul>
- *
- * @see org.yakindu.sct.model.sruntime.SRuntimePackage#getExecutionContext()
- * @model
- * @generated
- */
-public interface ExecutionContext extends NamedElement, CompositeSlot {
-	/**
-	 * Returns the value of the '<em><b>Active States</b></em>' reference list.
-	 * The list contents are of type {@link org.eclipse.emf.ecore.EObject}.
-	 * <!-- begin-user-doc -->
-	 * <p>
-	 * If the meaning of the '<em>Active States</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>Active States</em>' reference list.
-	 * @see org.yakindu.sct.model.sruntime.SRuntimePackage#getExecutionContext_ActiveStates()
-	 * @model
-	 * @generated
-	 */
-	List<EObject> getActiveStates();
-
-	/**
-	 * Returns the value of the '<em><b>Executed Elements</b></em>' reference list.
-	 * The list contents are of type {@link org.eclipse.emf.ecore.EObject}.
-	 * <!-- begin-user-doc -->
-	 * <p>
-	 * If the meaning of the '<em>Executed Elements</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>Executed Elements</em>' reference list.
-	 * @see org.yakindu.sct.model.sruntime.SRuntimePackage#getExecutionContext_ExecutedElements()
-	 * @model
-	 * @generated
-	 */
-	List<EObject> getExecutedElements();
-
-	/**
-	 * Returns the value of the '<em><b>Suspended Elements</b></em>' reference list.
-	 * The list contents are of type {@link org.eclipse.emf.ecore.EObject}.
-	 * <!-- begin-user-doc -->
-	 * <p>
-	 * If the meaning of the '<em>Suspended Elements</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>Suspended Elements</em>' reference list.
-	 * @see org.yakindu.sct.model.sruntime.SRuntimePackage#getExecutionContext_SuspendedElements()
-	 * @model
-	 * @generated
-	 */
-	List<EObject> getSuspendedElements();
-
-	/**
-	 * Returns the value of the '<em><b>Snapshot</b></em>' attribute.
-	 * <!-- begin-user-doc -->
-	 * <p>
-	 * If the meaning of the '<em>Snapshot</em>' attribute isn't clear,
-	 * there really should be more of a description here...
-	 * </p>
-	 * <!-- end-user-doc -->
-	 * @return the value of the '<em>Snapshot</em>' attribute.
-	 * @see #setSnapshot(boolean)
-	 * @see org.yakindu.sct.model.sruntime.SRuntimePackage#getExecutionContext_Snapshot()
-	 * @model
-	 * @generated
-	 */
-	boolean isSnapshot();
-
-	/**
-	 * Sets the value of the '{@link org.yakindu.sct.model.sruntime.ExecutionContext#isSnapshot <em>Snapshot</em>}' attribute.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @param value the new value of the '<em>Snapshot</em>' attribute.
-	 * @see #isSnapshot()
-	 * @generated
-	 */
-	void setSnapshot(boolean value);
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @model kind="operation"
-	 * @generated
-	 */
-	List<ExecutionEvent> getRaisedEvents();
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @model
-	 * @generated
-	 */
-	ExecutionVariable getVariable(String qualifiedName);
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @model
-	 * @generated
-	 */
-	ExecutionEvent getEvent(String qualifiedName);
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @model kind="operation"
-	 * @generated
-	 */
-	List<ExecutionEvent> getAllEvents();
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @model kind="operation"
-	 * @generated
-	 */
-	List<ExecutionVariable> getAllVariables();
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @model kind="operation"
-	 * @generated
-	 */
-	List<ExecutionSlot> getAllSlots();
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @model
-	 * @generated
-	 */
-	ExecutionSlot getSlot(String qualifiedName);
-
-} // ExecutionContext

+ 0 - 89
plugins/org.yakindu.sct.model.sruntime/src/org/yakindu/sct/model/sruntime/ExecutionEvent.java

@@ -1,89 +0,0 @@
-/**
- * Copyright (c) 2013 committers of YAKINDU and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- * Contributors:
- * committers of YAKINDU - initial API and implementation
- * 
- */
-package org.yakindu.sct.model.sruntime;
-
-import org.yakindu.base.types.Direction;
-
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Execution Event</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * </p>
- * <ul>
- *   <li>{@link org.yakindu.sct.model.sruntime.ExecutionEvent#isRaised <em>Raised</em>}</li>
- *   <li>{@link org.yakindu.sct.model.sruntime.ExecutionEvent#getDirection <em>Direction</em>}</li>
- * </ul>
- *
- * @see org.yakindu.sct.model.sruntime.SRuntimePackage#getExecutionEvent()
- * @model
- * @generated
- */
-public interface ExecutionEvent extends ExecutionSlot {
-	/**
-	 * Returns the value of the '<em><b>Raised</b></em>' attribute.
-	 * <!-- begin-user-doc -->
-	 * <p>
-	 * If the meaning of the '<em>Raised</em>' attribute isn't clear,
-	 * there really should be more of a description here...
-	 * </p>
-	 * <!-- end-user-doc -->
-	 * @return the value of the '<em>Raised</em>' attribute.
-	 * @see #setRaised(boolean)
-	 * @see org.yakindu.sct.model.sruntime.SRuntimePackage#getExecutionEvent_Raised()
-	 * @model
-	 * @generated
-	 */
-	boolean isRaised();
-
-	/**
-	 * Sets the value of the '{@link org.yakindu.sct.model.sruntime.ExecutionEvent#isRaised <em>Raised</em>}' attribute.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @param value the new value of the '<em>Raised</em>' attribute.
-	 * @see #isRaised()
-	 * @generated
-	 */
-	void setRaised(boolean value);
-
-	/**
-	 * Returns the value of the '<em><b>Direction</b></em>' attribute.
-	 * The literals are from the enumeration {@link org.yakindu.base.types.Direction}.
-	 * <!-- begin-user-doc -->
-	 * <p>
-	 * If the meaning of the '<em>Direction</em>' attribute isn't clear,
-	 * there really should be more of a description here...
-	 * </p>
-	 * <!-- end-user-doc -->
-	 * @return the value of the '<em>Direction</em>' attribute.
-	 * @see org.yakindu.base.types.Direction
-	 * @see #setDirection(Direction)
-	 * @see org.yakindu.sct.model.sruntime.SRuntimePackage#getExecutionEvent_Direction()
-	 * @model
-	 * @generated
-	 */
-	Direction getDirection();
-
-	/**
-	 * Sets the value of the '{@link org.yakindu.sct.model.sruntime.ExecutionEvent#getDirection <em>Direction</em>}' attribute.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @param value the new value of the '<em>Direction</em>' attribute.
-	 * @see org.yakindu.base.types.Direction
-	 * @see #getDirection()
-	 * @generated
-	 */
-	void setDirection(Direction value);
-
-} // ExecutionEvent

+ 0 - 25
plugins/org.yakindu.sct.model.sruntime/src/org/yakindu/sct/model/sruntime/ExecutionOperation.java

@@ -1,25 +0,0 @@
-/**
- * Copyright (c) 2013 committers of YAKINDU and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- * Contributors:
- * committers of YAKINDU - initial API and implementation
- * 
- */
-package org.yakindu.sct.model.sruntime;
-
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Execution Operation</b></em>'.
- * <!-- end-user-doc -->
- *
- *
- * @see org.yakindu.sct.model.sruntime.SRuntimePackage#getExecutionOperation()
- * @model
- * @generated
- */
-public interface ExecutionOperation extends ExecutionVariable {
-} // ExecutionOperation

+ 0 - 141
plugins/org.yakindu.sct.model.sruntime/src/org/yakindu/sct/model/sruntime/ExecutionSlot.java

@@ -1,141 +0,0 @@
-/**
- * Copyright (c) 2013 committers of YAKINDU and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- * Contributors:
- * committers of YAKINDU - initial API and implementation
- * 
- */
-package org.yakindu.sct.model.sruntime;
-
-import org.yakindu.base.base.NamedElement;
-import org.yakindu.base.types.Type;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Execution Slot</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * </p>
- * <ul>
- *   <li>{@link org.yakindu.sct.model.sruntime.ExecutionSlot#getValue <em>Value</em>}</li>
- *   <li>{@link org.yakindu.sct.model.sruntime.ExecutionSlot#getFqName <em>Fq Name</em>}</li>
- *   <li>{@link org.yakindu.sct.model.sruntime.ExecutionSlot#isWritable <em>Writable</em>}</li>
- *   <li>{@link org.yakindu.sct.model.sruntime.ExecutionSlot#getType <em>Type</em>}</li>
- * </ul>
- *
- * @see org.yakindu.sct.model.sruntime.SRuntimePackage#getExecutionSlot()
- * @model abstract="true"
- * @generated
- */
-public interface ExecutionSlot extends NamedElement {
-	/**
-	 * Returns the value of the '<em><b>Type</b></em>' reference.
-	 * <!-- begin-user-doc -->
-	 * <p>
-	 * If the meaning of the '<em>Type</em>' attribute isn't clear,
-	 * there really should be more of a description here...
-	 * </p>
-	 * <!-- end-user-doc -->
-	 * @return the value of the '<em>Type</em>' reference.
-	 * @see #setType(Type)
-	 * @see org.yakindu.sct.model.sruntime.SRuntimePackage#getExecutionSlot_Type()
-	 * @model
-	 * @generated
-	 */
-	Type getType();
-
-	/**
-	 * Sets the value of the '{@link org.yakindu.sct.model.sruntime.ExecutionSlot#getType <em>Type</em>}' reference.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @param value the new value of the '<em>Type</em>' reference.
-	 * @see #getType()
-	 * @generated
-	 */
-	void setType(Type value);
-
-	/**
-	 * Returns the value of the '<em><b>Value</b></em>' attribute.
-	 * <!-- begin-user-doc -->
-	 * <p>
-	 * If the meaning of the '<em>Value</em>' attribute isn't clear,
-	 * there really should be more of a description here...
-	 * </p>
-	 * <!-- end-user-doc -->
-	 * @return the value of the '<em>Value</em>' attribute.
-	 * @see #setValue(Object)
-	 * @see org.yakindu.sct.model.sruntime.SRuntimePackage#getExecutionSlot_Value()
-	 * @model dataType="org.yakindu.sct.model.sruntime.JavaObject"
-	 * @generated
-	 */
-	Object getValue();
-
-	/**
-	 * Sets the value of the '{@link org.yakindu.sct.model.sruntime.ExecutionSlot#getValue <em>Value</em>}' attribute.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @param value the new value of the '<em>Value</em>' attribute.
-	 * @see #getValue()
-	 * @generated
-	 */
-	void setValue(Object value);
-
-	/**
-	 * Returns the value of the '<em><b>Fq Name</b></em>' attribute.
-	 * <!-- begin-user-doc -->
-	 * <p>
-	 * If the meaning of the '<em>Fq Name</em>' attribute isn't clear,
-	 * there really should be more of a description here...
-	 * </p>
-	 * <!-- end-user-doc -->
-	 * @return the value of the '<em>Fq Name</em>' attribute.
-	 * @see #setFqName(String)
-	 * @see org.yakindu.sct.model.sruntime.SRuntimePackage#getExecutionSlot_FqName()
-	 * @model
-	 * @generated
-	 */
-	String getFqName();
-
-	/**
-	 * Sets the value of the '{@link org.yakindu.sct.model.sruntime.ExecutionSlot#getFqName <em>Fq Name</em>}' attribute.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @param value the new value of the '<em>Fq Name</em>' attribute.
-	 * @see #getFqName()
-	 * @generated
-	 */
-	void setFqName(String value);
-
-	/**
-	 * Returns the value of the '<em><b>Writable</b></em>' attribute.
-	 * The default value is <code>"true"</code>.
-	 * <!-- begin-user-doc -->
-	 * <p>
-	 * If the meaning of the '<em>Writable</em>' attribute isn't clear,
-	 * there really should be more of a description here...
-	 * </p>
-	 * <!-- end-user-doc -->
-	 * @return the value of the '<em>Writable</em>' attribute.
-	 * @see #setWritable(boolean)
-	 * @see org.yakindu.sct.model.sruntime.SRuntimePackage#getExecutionSlot_Writable()
-	 * @model default="true"
-	 * @generated
-	 */
-	boolean isWritable();
-
-	/**
-	 * Sets the value of the '{@link org.yakindu.sct.model.sruntime.ExecutionSlot#isWritable <em>Writable</em>}' attribute.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @param value the new value of the '<em>Writable</em>' attribute.
-	 * @see #isWritable()
-	 * @generated
-	 */
-	void setWritable(boolean value);
-
-} // ExecutionSlot

+ 0 - 25
plugins/org.yakindu.sct.model.sruntime/src/org/yakindu/sct/model/sruntime/ExecutionVariable.java

@@ -1,25 +0,0 @@
-/**
- * Copyright (c) 2013 committers of YAKINDU and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- * Contributors:
- * committers of YAKINDU - initial API and implementation
- * 
- */
-package org.yakindu.sct.model.sruntime;
-
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Execution Variable</b></em>'.
- * <!-- end-user-doc -->
- *
- *
- * @see org.yakindu.sct.model.sruntime.SRuntimePackage#getExecutionVariable()
- * @model
- * @generated
- */
-public interface ExecutionVariable extends ExecutionSlot {
-} // ExecutionVariable

+ 0 - 57
plugins/org.yakindu.sct.model.sruntime/src/org/yakindu/sct/model/sruntime/ReferenceSlot.java

@@ -1,57 +0,0 @@
-/**
- * Copyright (c) 2013 committers of YAKINDU and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- * Contributors:
- * committers of YAKINDU - initial API and implementation
- * 
- */
-package org.yakindu.sct.model.sruntime;
-
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Reference Slot</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * </p>
- * <ul>
- *   <li>{@link org.yakindu.sct.model.sruntime.ReferenceSlot#getReference <em>Reference</em>}</li>
- * </ul>
- *
- * @see org.yakindu.sct.model.sruntime.SRuntimePackage#getReferenceSlot()
- * @model
- * @generated
- */
-public interface ReferenceSlot extends CompositeSlot {
-	/**
-	 * Returns the value of the '<em><b>Reference</b></em>' reference.
-	 * <!-- begin-user-doc -->
-	 * <p>
-	 * If the meaning of the '<em>Reference</em>' reference isn't clear,
-	 * there really should be more of a description here...
-	 * </p>
-	 * <!-- end-user-doc -->
-	 * @return the value of the '<em>Reference</em>' reference.
-	 * @see #setReference(ExecutionSlot)
-	 * @see org.yakindu.sct.model.sruntime.SRuntimePackage#getReferenceSlot_Reference()
-	 * @model
-	 * @generated
-	 */
-	ExecutionSlot getReference();
-
-	/**
-	 * Sets the value of the '{@link org.yakindu.sct.model.sruntime.ReferenceSlot#getReference <em>Reference</em>}' reference.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @param value the new value of the '<em>Reference</em>' reference.
-	 * @see #getReference()
-	 * @generated
-	 */
-	void setReference(ExecutionSlot value);
-
-} // ReferenceSlot

+ 0 - 95
plugins/org.yakindu.sct.model.sruntime/src/org/yakindu/sct/model/sruntime/SRuntimeFactory.java

@@ -1,95 +0,0 @@
-/**
- * Copyright (c) 2013 committers of YAKINDU and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- * Contributors:
- * committers of YAKINDU - initial API and implementation
- * 
- */
-package org.yakindu.sct.model.sruntime;
-
-import org.eclipse.emf.ecore.EFactory;
-
-/**
- * <!-- begin-user-doc -->
- * The <b>Factory</b> for the model.
- * It provides a create method for each non-abstract class of the model.
- * <!-- end-user-doc -->
- * @see org.yakindu.sct.model.sruntime.SRuntimePackage
- * @generated
- */
-public interface SRuntimeFactory extends EFactory {
-	/**
-	 * The singleton instance of the factory.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	SRuntimeFactory eINSTANCE = org.yakindu.sct.model.sruntime.impl.SRuntimeFactoryImpl.init();
-
-	/**
-	 * Returns a new object of class '<em>Execution Context</em>'.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @return a new object of class '<em>Execution Context</em>'.
-	 * @generated
-	 */
-	ExecutionContext createExecutionContext();
-
-	/**
-	 * Returns a new object of class '<em>Execution Event</em>'.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @return a new object of class '<em>Execution Event</em>'.
-	 * @generated
-	 */
-	ExecutionEvent createExecutionEvent();
-
-	/**
-	 * Returns a new object of class '<em>Execution Variable</em>'.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @return a new object of class '<em>Execution Variable</em>'.
-	 * @generated
-	 */
-	ExecutionVariable createExecutionVariable();
-
-	/**
-	 * Returns a new object of class '<em>Composite Slot</em>'.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @return a new object of class '<em>Composite Slot</em>'.
-	 * @generated
-	 */
-	CompositeSlot createCompositeSlot();
-
-	/**
-	 * Returns a new object of class '<em>Reference Slot</em>'.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @return a new object of class '<em>Reference Slot</em>'.
-	 * @generated
-	 */
-	ReferenceSlot createReferenceSlot();
-
-	/**
-	 * Returns a new object of class '<em>Execution Operation</em>'.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @return a new object of class '<em>Execution Operation</em>'.
-	 * @generated
-	 */
-	ExecutionOperation createExecutionOperation();
-
-	/**
-	 * Returns the package supported by this factory.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @return the package supported by this factory.
-	 * @generated
-	 */
-	SRuntimePackage getSRuntimePackage();
-
-} //SRuntimeFactory

Разлика између датотеке није приказан због своје велике величине
+ 0 - 1031
plugins/org.yakindu.sct.model.sruntime/src/org/yakindu/sct/model/sruntime/SRuntimePackage.java


+ 0 - 145
plugins/org.yakindu.sct.model.sruntime/src/org/yakindu/sct/model/sruntime/impl/CompositeSlotImpl.java

@@ -1,145 +0,0 @@
-/**
- * Copyright (c) 2013 committers of YAKINDU and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- * Contributors:
- * committers of YAKINDU - initial API and implementation
- * 
- */
-package org.yakindu.sct.model.sruntime.impl;
-
-import java.util.Collection;
-import java.util.List;
-
-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.util.EObjectContainmentEList;
-import org.eclipse.emf.ecore.util.InternalEList;
-import org.yakindu.sct.model.sruntime.CompositeSlot;
-import org.yakindu.sct.model.sruntime.ExecutionSlot;
-import org.yakindu.sct.model.sruntime.SRuntimePackage;
-
-/**
- * <!-- begin-user-doc --> An implementation of the model object '
- * <em><b>Composite Slot</b></em>'. <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * </p>
- * <ul>
- *   <li>{@link org.yakindu.sct.model.sruntime.impl.CompositeSlotImpl#getSlots <em>Slots</em>}</li>
- * </ul>
- *
- * @generated
- */
-public class CompositeSlotImpl extends ExecutionSlotImpl implements CompositeSlot {
-	/**
-	 * The cached value of the '{@link #getSlots() <em>Slots</em>}' containment reference list.
-	 * <!-- begin-user-doc --> <!-- end-user-doc -->
-	 * @see #getSlots()
-	 * @generated
-	 * @ordered
-	 */
-	protected EList<ExecutionSlot> slots;
-
-	/**
-	 * <!-- begin-user-doc --> <!-- end-user-doc -->
-	 * @generated
-	 */
-	public CompositeSlotImpl() {
-		super();
-	}
-
-	/**
-	 * <!-- begin-user-doc --> <!-- end-user-doc -->
-	 * @generated
-	 */
-	@Override
-	protected EClass eStaticClass() {
-		return SRuntimePackage.Literals.COMPOSITE_SLOT;
-	}
-
-	/**
-	 * <!-- begin-user-doc --> <!-- end-user-doc -->
-	 * @generated
-	 */
-	public List<ExecutionSlot> getSlots() {
-		if (slots == null) {
-			slots = new EObjectContainmentEList<ExecutionSlot>(ExecutionSlot.class, this, SRuntimePackage.COMPOSITE_SLOT__SLOTS);
-		}
-		return slots;
-	}
-
-	/**
-	 * <!-- begin-user-doc --> <!-- end-user-doc -->
-	 * @generated
-	 */
-	@Override
-	public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
-		switch (featureID) {
-			case SRuntimePackage.COMPOSITE_SLOT__SLOTS:
-				return ((InternalEList<?>)getSlots()).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 SRuntimePackage.COMPOSITE_SLOT__SLOTS:
-				return getSlots();
-		}
-		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 SRuntimePackage.COMPOSITE_SLOT__SLOTS:
-				getSlots().clear();
-				getSlots().addAll((Collection<? extends ExecutionSlot>)newValue);
-				return;
-		}
-		super.eSet(featureID, newValue);
-	}
-
-	/**
-	 * <!-- begin-user-doc --> <!-- end-user-doc -->
-	 * @generated
-	 */
-	@Override
-	public void eUnset(int featureID) {
-		switch (featureID) {
-			case SRuntimePackage.COMPOSITE_SLOT__SLOTS:
-				getSlots().clear();
-				return;
-		}
-		super.eUnset(featureID);
-	}
-
-	/**
-	 * <!-- begin-user-doc --> <!-- end-user-doc -->
-	 * @generated
-	 */
-	@Override
-	public boolean eIsSet(int featureID) {
-		switch (featureID) {
-			case SRuntimePackage.COMPOSITE_SLOT__SLOTS:
-				return slots != null && !slots.isEmpty();
-		}
-		return super.eIsSet(featureID);
-	}
-
-} // CompositeSlotImpl

+ 0 - 713
plugins/org.yakindu.sct.model.sruntime/src/org/yakindu/sct/model/sruntime/impl/ExecutionContextImpl.java

@@ -1,713 +0,0 @@
-/**
- * Copyright (c) 2013 committers of YAKINDU and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- * Contributors:
- * committers of YAKINDU - initial API and implementation
- * 
- */
-package org.yakindu.sct.model.sruntime.impl;
-
-import java.util.Collection;
-import java.util.List;
-import java.util.Set;
-
-import org.eclipse.core.runtime.Assert;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.notify.NotificationChain;
-import org.eclipse.emf.common.util.BasicEList;
-import org.eclipse.emf.common.util.EList;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.InternalEObject;
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.util.EObjectContainmentEList;
-import org.eclipse.emf.ecore.util.EObjectResolvingEList;
-import org.eclipse.emf.ecore.util.InternalEList;
-import org.yakindu.base.base.impl.NamedElementImpl;
-import org.yakindu.base.types.Type;
-import org.yakindu.sct.model.sruntime.CompositeSlot;
-import org.yakindu.sct.model.sruntime.ExecutionContext;
-import org.yakindu.sct.model.sruntime.ExecutionEvent;
-import org.yakindu.sct.model.sruntime.ExecutionSlot;
-import org.yakindu.sct.model.sruntime.ExecutionVariable;
-import org.yakindu.sct.model.sruntime.SRuntimePackage;
-
-import com.google.common.base.Predicate;
-import com.google.common.collect.Iterables;
-import com.google.common.collect.Sets;
-
-/**
- * <!-- begin-user-doc --> An implementation of the model object '
- * <em><b>Execution Context</b></em>'. <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * </p>
- * <ul>
- *   <li>{@link org.yakindu.sct.model.sruntime.impl.ExecutionContextImpl#getValue <em>Value</em>}</li>
- *   <li>{@link org.yakindu.sct.model.sruntime.impl.ExecutionContextImpl#getFqName <em>Fq Name</em>}</li>
- *   <li>{@link org.yakindu.sct.model.sruntime.impl.ExecutionContextImpl#isWritable <em>Writable</em>}</li>
- *   <li>{@link org.yakindu.sct.model.sruntime.impl.ExecutionContextImpl#getType <em>Type</em>}</li>
- *   <li>{@link org.yakindu.sct.model.sruntime.impl.ExecutionContextImpl#getSlots <em>Slots</em>}</li>
- *   <li>{@link org.yakindu.sct.model.sruntime.impl.ExecutionContextImpl#getActiveStates <em>Active States</em>}</li>
- *   <li>{@link org.yakindu.sct.model.sruntime.impl.ExecutionContextImpl#getExecutedElements <em>Executed Elements</em>}</li>
- *   <li>{@link org.yakindu.sct.model.sruntime.impl.ExecutionContextImpl#getSuspendedElements <em>Suspended Elements</em>}</li>
- *   <li>{@link org.yakindu.sct.model.sruntime.impl.ExecutionContextImpl#isSnapshot <em>Snapshot</em>}</li>
- * </ul>
- *
- * @generated
- */
-public class ExecutionContextImpl extends NamedElementImpl implements ExecutionContext {
-	/**
-	 * The default value of the '{@link #getValue() <em>Value</em>}' attribute.
-	 * <!-- begin-user-doc --> <!-- end-user-doc -->
-	 * @see #getValue()
-	 * @generated
-	 * @ordered
-	 */
-	protected static final Object VALUE_EDEFAULT = null;
-
-	/**
-	 * The cached value of the '{@link #getValue() <em>Value</em>}' attribute.
-	 * <!-- begin-user-doc --> <!-- end-user-doc -->
-	 * @see #getValue()
-	 * @generated
-	 * @ordered
-	 */
-	protected Object value = VALUE_EDEFAULT;
-
-	/**
-	 * The default value of the '{@link #getFqName() <em>Fq Name</em>}' attribute.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @see #getFqName()
-	 * @generated
-	 * @ordered
-	 */
-	protected static final String FQ_NAME_EDEFAULT = null;
-
-	/**
-	 * The cached value of the '{@link #getFqName() <em>Fq Name</em>}' attribute.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @see #getFqName()
-	 * @generated
-	 * @ordered
-	 */
-	protected String fqName = FQ_NAME_EDEFAULT;
-
-	/**
-	 * The default value of the '{@link #isWritable() <em>Writable</em>}' attribute.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @see #isWritable()
-	 * @generated
-	 * @ordered
-	 */
-	protected static final boolean WRITABLE_EDEFAULT = true;
-
-	/**
-	 * The cached value of the '{@link #isWritable() <em>Writable</em>}' attribute.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @see #isWritable()
-	 * @generated
-	 * @ordered
-	 */
-	protected boolean writable = WRITABLE_EDEFAULT;
-
-	/**
-	 * The cached value of the '{@link #getType() <em>Type</em>}' reference.
-	 * <!-- begin-user-doc --> <!-- end-user-doc -->
-	 * @see #getType()
-	 * @generated
-	 * @ordered
-	 */
-	protected Type type;
-
-	/**
-	 * The cached value of the '{@link #getSlots() <em>Slots</em>}' containment reference list.
-	 * <!-- begin-user-doc --> <!-- end-user-doc -->
-	 * @see #getSlots()
-	 * @generated
-	 * @ordered
-	 */
-	protected EList<ExecutionSlot> slots;
-
-	/**
-	 * The cached value of the '{@link #getActiveStates() <em>Active States</em>}' reference list.
-	 * <!-- begin-user-doc --> <!--
-	 * end-user-doc -->
-	 * @see #getActiveStates()
-	 * @generated
-	 * @ordered
-	 */
-	protected EList<EObject> activeStates;
-
-	/**
-	 * The cached value of the '{@link #getExecutedElements() <em>Executed Elements</em>}' reference list.
-	 * <!-- begin-user-doc --> <!--
-	 * end-user-doc -->
-	 * @see #getExecutedElements()
-	 * @generated
-	 * @ordered
-	 */
-	protected EList<EObject> executedElements;
-
-	/**
-	 * The cached value of the '{@link #getSuspendedElements() <em>Suspended Elements</em>}' reference list.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @see #getSuspendedElements()
-	 * @generated
-	 * @ordered
-	 */
-	protected EList<EObject> suspendedElements;
-
-	/**
-	 * The default value of the '{@link #isSnapshot() <em>Snapshot</em>}' attribute.
-	 * <!-- begin-user-doc --> <!-- end-user-doc -->
-	 * @see #isSnapshot()
-	 * @generated
-	 * @ordered
-	 */
-	protected static final boolean SNAPSHOT_EDEFAULT = false;
-
-	/**
-	 * The cached value of the '{@link #isSnapshot() <em>Snapshot</em>}' attribute.
-	 * <!-- begin-user-doc --> <!-- end-user-doc -->
-	 * @see #isSnapshot()
-	 * @generated
-	 * @ordered
-	 */
-	protected boolean snapshot = SNAPSHOT_EDEFAULT;
-
-	/**
-	 * <!-- begin-user-doc --> <!-- end-user-doc -->
-	 * @generated
-	 */
-	public ExecutionContextImpl() {
-		super();
-	}
-
-	/**
-	 * <!-- begin-user-doc --> <!-- end-user-doc -->
-	 * @generated
-	 */
-	@Override
-	protected EClass eStaticClass() {
-		return SRuntimePackage.Literals.EXECUTION_CONTEXT;
-	}
-
-	/**
-	 * <!-- begin-user-doc --> <!-- end-user-doc -->
-	 * @generated
-	 */
-	public Type getType() {
-		if (type != null && type.eIsProxy()) {
-			InternalEObject oldType = (InternalEObject)type;
-			type = (Type)eResolveProxy(oldType);
-			if (type != oldType) {
-				if (eNotificationRequired())
-					eNotify(new ENotificationImpl(this, Notification.RESOLVE, SRuntimePackage.EXECUTION_CONTEXT__TYPE, oldType, type));
-			}
-		}
-		return type;
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public Type basicGetType() {
-		return type;
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public void setType(Type newType) {
-		Type oldType = type;
-		type = newType;
-		if (eNotificationRequired())
-			eNotify(new ENotificationImpl(this, Notification.SET, SRuntimePackage.EXECUTION_CONTEXT__TYPE, oldType, type));
-	}
-
-	/**
-	 * <!-- begin-user-doc --> <!-- end-user-doc -->
-	 * @generated
-	 */
-	public Object getValue() {
-		return value;
-	}
-
-	/**
-	 * <!-- begin-user-doc --> <!-- end-user-doc -->
-	 * @generated
-	 */
-	public void setValue(Object newValue) {
-		Object oldValue = value;
-		value = newValue;
-		if (eNotificationRequired())
-			eNotify(new ENotificationImpl(this, Notification.SET, SRuntimePackage.EXECUTION_CONTEXT__VALUE, oldValue, value));
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public String getFqName() {
-		return fqName;
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public void setFqName(String newFqName) {
-		String oldFqName = fqName;
-		fqName = newFqName;
-		if (eNotificationRequired())
-			eNotify(new ENotificationImpl(this, Notification.SET, SRuntimePackage.EXECUTION_CONTEXT__FQ_NAME, oldFqName, fqName));
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public boolean isWritable() {
-		return writable;
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public void setWritable(boolean newWritable) {
-		boolean oldWritable = writable;
-		writable = newWritable;
-		if (eNotificationRequired())
-			eNotify(new ENotificationImpl(this, Notification.SET, SRuntimePackage.EXECUTION_CONTEXT__WRITABLE, oldWritable, writable));
-	}
-
-	/**
-	 * <!-- begin-user-doc --> <!-- end-user-doc -->
-	 * @generated
-	 */
-	public List<EObject> getActiveStates() {
-		if (activeStates == null) {
-			activeStates = new EObjectResolvingEList<EObject>(EObject.class, this, SRuntimePackage.EXECUTION_CONTEXT__ACTIVE_STATES);
-		}
-		return activeStates;
-	}
-
-	/**
-	 * <!-- begin-user-doc --> <!-- end-user-doc -->
-	 * @generated
-	 */
-	public List<EObject> getExecutedElements() {
-		if (executedElements == null) {
-			executedElements = new EObjectResolvingEList<EObject>(EObject.class, this, SRuntimePackage.EXECUTION_CONTEXT__EXECUTED_ELEMENTS);
-		}
-		return executedElements;
-	}
-
-	/**
-	 * <!-- begin-user-doc --> <!-- end-user-doc -->
-	 * @generated
-	 */
-	public List<ExecutionSlot> getSlots() {
-		if (slots == null) {
-			slots = new EObjectContainmentEList<ExecutionSlot>(ExecutionSlot.class, this, SRuntimePackage.EXECUTION_CONTEXT__SLOTS);
-		}
-		return slots;
-	}
-
-	/**
-	 * <!-- begin-user-doc --> <!-- end-user-doc -->
-	 * @generated
-	 */
-	public List<EObject> getSuspendedElements() {
-		if (suspendedElements == null) {
-			suspendedElements = new EObjectResolvingEList<EObject>(EObject.class, this, SRuntimePackage.EXECUTION_CONTEXT__SUSPENDED_ELEMENTS);
-		}
-		return suspendedElements;
-	}
-
-	/**
-	 * <!-- begin-user-doc --> <!-- end-user-doc -->
-	 * @generated
-	 */
-	public boolean isSnapshot() {
-		return snapshot;
-	}
-
-	/**
-	 * <!-- begin-user-doc --> <!-- end-user-doc -->
-	 * @generated
-	 */
-	public void setSnapshot(boolean newSnapshot) {
-		boolean oldSnapshot = snapshot;
-		snapshot = newSnapshot;
-		if (eNotificationRequired())
-			eNotify(new ENotificationImpl(this, Notification.SET, SRuntimePackage.EXECUTION_CONTEXT__SNAPSHOT, oldSnapshot, snapshot));
-	}
-
-	/**
-	 * <!-- begin-user-doc --> <!-- end-user-doc -->
-	 * 
-	 * @generated NOT
-	 */
-	public List<ExecutionEvent> getRaisedEvents() {
-		Iterable<ExecutionEvent> raisedEvents = Iterables.filter(getAllEvents(), new Predicate<ExecutionEvent>() {
-			public boolean apply(ExecutionEvent input) {
-				return input.isRaised();
-			}
-		});
-		BasicEList<ExecutionEvent> result = new BasicEList<ExecutionEvent>();
-		Iterables.addAll(result, raisedEvents);
-		return result;
-	}
-
-	
-	/**
-	 * Returns the variable by its qualified name
-	 * 
-	 * @generated NOT
-	 */
-	public ExecutionVariable getVariable(final String fqName) {
-		Assert.isNotNull(fqName);
-		for (ExecutionVariable var : getAllVariables()) {
-			if (fqName.equals(var.getFqName()))
-				return var;
-		}
-		return null;
-	}
-
-	/**
-	 * Returns the event by its qualified name
-	 * 
-	 * @generated NOT
-	 */
-	public ExecutionEvent getEvent(final String fqName) {
-		Assert.isNotNull(fqName);
-		for (ExecutionEvent event : getAllEvents()) {
-			if (fqName.equals(event.getFqName()))
-				return event;
-		}
-		return null;
-	}
-	
-	/**
-	 * Returns the execution slot by its qualified name
-	 * @param name
-	 * @return
-	 */
-	public ExecutionSlot getSlot(final String fqName) {
-		Assert.isNotNull(fqName);
-		for (ExecutionSlot slot : getAllSlots()) {
-			if (fqName.equals(slot.getFqName())) {
-				return slot;
-			}
-		}
-		return null;
-	}
-
-	/**
-	 * <!-- begin-user-doc --> <!-- end-user-doc -->
-	 * @generated NOT
-	 */
-	public List<ExecutionEvent> getAllEvents() {
-		List<ExecutionEvent> result = new BasicEList<ExecutionEvent>();
-		addEvents(result, getSlots(), Sets.<ExecutionSlot>newHashSet());
-		return result;
-	}
-
-	protected void addEvents(List<ExecutionEvent> event, List<ExecutionSlot> slots, Set<ExecutionSlot> visitedSlots) {
-		for (ExecutionSlot slot : slots) {
-			if (visitedSlots.add(slot)) {
-				if (slot instanceof ExecutionEvent) {
-					event.add((ExecutionEvent) slot);
-				} else if (slot instanceof CompositeSlot) {
-					addEvents(event, ((CompositeSlot) slot).getSlots(), visitedSlots);
-				}
-			}
-		}
-	}
-
-	/**
-	 * <!-- begin-user-doc --> <!-- end-user-doc -->
-	 * 
-	 * @generated NOT
-	 */
-	public List<ExecutionVariable> getAllVariables() {
-		List<ExecutionVariable> result = new BasicEList<ExecutionVariable>();
-		addVariables(result, getSlots(), Sets.<ExecutionSlot>newHashSet());
-		return result;
-	}
-
-	protected void addVariables(List<ExecutionVariable> variables, List<ExecutionSlot> slots, Set<ExecutionSlot> visitedSlots) {
-		for (ExecutionSlot slot : slots) {
-			if (visitedSlots.add(slot)) {
-				if (slot instanceof ExecutionVariable) {
-					variables.add((ExecutionVariable) slot);
-				} else if (slot instanceof CompositeSlot) {
-					addVariables(variables, ((CompositeSlot) slot).getSlots(), visitedSlots);
-				}
-			}
-		}
-	}
-	
-	/**
-	 * <!-- begin-user-doc --> <!-- end-user-doc -->
-	 * @generated NOT
-	 */
-	public List<ExecutionSlot> getAllSlots() {
-		List<ExecutionSlot> result = new BasicEList<ExecutionSlot>();
-		addSlots(result, getSlots(), Sets.<ExecutionSlot>newHashSet());
-		return result;
-	}
-
-	protected void addSlots(List<ExecutionSlot> result, List<ExecutionSlot> slots, Set<ExecutionSlot> visitedSlots) {
-		for (ExecutionSlot slot : slots) {
-			if (visitedSlots.add(slot)) {
-				result.add(slot);
-				if (slot instanceof CompositeSlot) {
-					addSlots(result, ((CompositeSlot) slot).getSlots(), visitedSlots);
-				}
-			}
-		}
-	}
-
-	/**
-	 * <!-- begin-user-doc --> <!-- end-user-doc -->
-	 * @generated
-	 */
-	@Override
-	public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
-		switch (featureID) {
-			case SRuntimePackage.EXECUTION_CONTEXT__SLOTS:
-				return ((InternalEList<?>)getSlots()).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 SRuntimePackage.EXECUTION_CONTEXT__VALUE:
-				return getValue();
-			case SRuntimePackage.EXECUTION_CONTEXT__FQ_NAME:
-				return getFqName();
-			case SRuntimePackage.EXECUTION_CONTEXT__WRITABLE:
-				return isWritable();
-			case SRuntimePackage.EXECUTION_CONTEXT__TYPE:
-				if (resolve) return getType();
-				return basicGetType();
-			case SRuntimePackage.EXECUTION_CONTEXT__SLOTS:
-				return getSlots();
-			case SRuntimePackage.EXECUTION_CONTEXT__ACTIVE_STATES:
-				return getActiveStates();
-			case SRuntimePackage.EXECUTION_CONTEXT__EXECUTED_ELEMENTS:
-				return getExecutedElements();
-			case SRuntimePackage.EXECUTION_CONTEXT__SUSPENDED_ELEMENTS:
-				return getSuspendedElements();
-			case SRuntimePackage.EXECUTION_CONTEXT__SNAPSHOT:
-				return isSnapshot();
-		}
-		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 SRuntimePackage.EXECUTION_CONTEXT__VALUE:
-				setValue(newValue);
-				return;
-			case SRuntimePackage.EXECUTION_CONTEXT__FQ_NAME:
-				setFqName((String)newValue);
-				return;
-			case SRuntimePackage.EXECUTION_CONTEXT__WRITABLE:
-				setWritable((Boolean)newValue);
-				return;
-			case SRuntimePackage.EXECUTION_CONTEXT__TYPE:
-				setType((Type)newValue);
-				return;
-			case SRuntimePackage.EXECUTION_CONTEXT__SLOTS:
-				getSlots().clear();
-				getSlots().addAll((Collection<? extends ExecutionSlot>)newValue);
-				return;
-			case SRuntimePackage.EXECUTION_CONTEXT__ACTIVE_STATES:
-				getActiveStates().clear();
-				getActiveStates().addAll((Collection<? extends EObject>)newValue);
-				return;
-			case SRuntimePackage.EXECUTION_CONTEXT__EXECUTED_ELEMENTS:
-				getExecutedElements().clear();
-				getExecutedElements().addAll((Collection<? extends EObject>)newValue);
-				return;
-			case SRuntimePackage.EXECUTION_CONTEXT__SUSPENDED_ELEMENTS:
-				getSuspendedElements().clear();
-				getSuspendedElements().addAll((Collection<? extends EObject>)newValue);
-				return;
-			case SRuntimePackage.EXECUTION_CONTEXT__SNAPSHOT:
-				setSnapshot((Boolean)newValue);
-				return;
-		}
-		super.eSet(featureID, newValue);
-	}
-
-	/**
-	 * <!-- begin-user-doc --> <!-- end-user-doc -->
-	 * @generated
-	 */
-	@Override
-	public void eUnset(int featureID) {
-		switch (featureID) {
-			case SRuntimePackage.EXECUTION_CONTEXT__VALUE:
-				setValue(VALUE_EDEFAULT);
-				return;
-			case SRuntimePackage.EXECUTION_CONTEXT__FQ_NAME:
-				setFqName(FQ_NAME_EDEFAULT);
-				return;
-			case SRuntimePackage.EXECUTION_CONTEXT__WRITABLE:
-				setWritable(WRITABLE_EDEFAULT);
-				return;
-			case SRuntimePackage.EXECUTION_CONTEXT__TYPE:
-				setType((Type)null);
-				return;
-			case SRuntimePackage.EXECUTION_CONTEXT__SLOTS:
-				getSlots().clear();
-				return;
-			case SRuntimePackage.EXECUTION_CONTEXT__ACTIVE_STATES:
-				getActiveStates().clear();
-				return;
-			case SRuntimePackage.EXECUTION_CONTEXT__EXECUTED_ELEMENTS:
-				getExecutedElements().clear();
-				return;
-			case SRuntimePackage.EXECUTION_CONTEXT__SUSPENDED_ELEMENTS:
-				getSuspendedElements().clear();
-				return;
-			case SRuntimePackage.EXECUTION_CONTEXT__SNAPSHOT:
-				setSnapshot(SNAPSHOT_EDEFAULT);
-				return;
-		}
-		super.eUnset(featureID);
-	}
-
-	/**
-	 * <!-- begin-user-doc --> <!-- end-user-doc -->
-	 * @generated
-	 */
-	@Override
-	public boolean eIsSet(int featureID) {
-		switch (featureID) {
-			case SRuntimePackage.EXECUTION_CONTEXT__VALUE:
-				return VALUE_EDEFAULT == null ? value != null : !VALUE_EDEFAULT.equals(value);
-			case SRuntimePackage.EXECUTION_CONTEXT__FQ_NAME:
-				return FQ_NAME_EDEFAULT == null ? fqName != null : !FQ_NAME_EDEFAULT.equals(fqName);
-			case SRuntimePackage.EXECUTION_CONTEXT__WRITABLE:
-				return writable != WRITABLE_EDEFAULT;
-			case SRuntimePackage.EXECUTION_CONTEXT__TYPE:
-				return type != null;
-			case SRuntimePackage.EXECUTION_CONTEXT__SLOTS:
-				return slots != null && !slots.isEmpty();
-			case SRuntimePackage.EXECUTION_CONTEXT__ACTIVE_STATES:
-				return activeStates != null && !activeStates.isEmpty();
-			case SRuntimePackage.EXECUTION_CONTEXT__EXECUTED_ELEMENTS:
-				return executedElements != null && !executedElements.isEmpty();
-			case SRuntimePackage.EXECUTION_CONTEXT__SUSPENDED_ELEMENTS:
-				return suspendedElements != null && !suspendedElements.isEmpty();
-			case SRuntimePackage.EXECUTION_CONTEXT__SNAPSHOT:
-				return snapshot != SNAPSHOT_EDEFAULT;
-		}
-		return super.eIsSet(featureID);
-	}
-
-	/**
-	 * <!-- begin-user-doc --> <!-- end-user-doc -->
-	 * @generated
-	 */
-	@Override
-	public int eBaseStructuralFeatureID(int derivedFeatureID, Class<?> baseClass) {
-		if (baseClass == ExecutionSlot.class) {
-			switch (derivedFeatureID) {
-				case SRuntimePackage.EXECUTION_CONTEXT__VALUE: return SRuntimePackage.EXECUTION_SLOT__VALUE;
-				case SRuntimePackage.EXECUTION_CONTEXT__FQ_NAME: return SRuntimePackage.EXECUTION_SLOT__FQ_NAME;
-				case SRuntimePackage.EXECUTION_CONTEXT__WRITABLE: return SRuntimePackage.EXECUTION_SLOT__WRITABLE;
-				case SRuntimePackage.EXECUTION_CONTEXT__TYPE: return SRuntimePackage.EXECUTION_SLOT__TYPE;
-				default: return -1;
-			}
-		}
-		if (baseClass == CompositeSlot.class) {
-			switch (derivedFeatureID) {
-				case SRuntimePackage.EXECUTION_CONTEXT__SLOTS: return SRuntimePackage.COMPOSITE_SLOT__SLOTS;
-				default: return -1;
-			}
-		}
-		return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass);
-	}
-
-	/**
-	 * <!-- begin-user-doc --> <!-- end-user-doc -->
-	 * @generated
-	 */
-	@Override
-	public int eDerivedStructuralFeatureID(int baseFeatureID, Class<?> baseClass) {
-		if (baseClass == ExecutionSlot.class) {
-			switch (baseFeatureID) {
-				case SRuntimePackage.EXECUTION_SLOT__VALUE: return SRuntimePackage.EXECUTION_CONTEXT__VALUE;
-				case SRuntimePackage.EXECUTION_SLOT__FQ_NAME: return SRuntimePackage.EXECUTION_CONTEXT__FQ_NAME;
-				case SRuntimePackage.EXECUTION_SLOT__WRITABLE: return SRuntimePackage.EXECUTION_CONTEXT__WRITABLE;
-				case SRuntimePackage.EXECUTION_SLOT__TYPE: return SRuntimePackage.EXECUTION_CONTEXT__TYPE;
-				default: return -1;
-			}
-		}
-		if (baseClass == CompositeSlot.class) {
-			switch (baseFeatureID) {
-				case SRuntimePackage.COMPOSITE_SLOT__SLOTS: return SRuntimePackage.EXECUTION_CONTEXT__SLOTS;
-				default: return -1;
-			}
-		}
-		return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass);
-	}
-
-	/**
-	 * <!-- begin-user-doc --> <!-- end-user-doc -->
-	 * @generated
-	 */
-	@Override
-	public String toString() {
-		if (eIsProxy()) return super.toString();
-
-		StringBuffer result = new StringBuffer(super.toString());
-		result.append(" (value: ");
-		result.append(value);
-		result.append(", fqName: ");
-		result.append(fqName);
-		result.append(", writable: ");
-		result.append(writable);
-		result.append(", snapshot: ");
-		result.append(snapshot);
-		result.append(')');
-		return result.toString();
-	}
-
-} // ExecutionContextImpl

+ 0 - 222
plugins/org.yakindu.sct.model.sruntime/src/org/yakindu/sct/model/sruntime/impl/ExecutionEventImpl.java

@@ -1,222 +0,0 @@
-/**
- * Copyright (c) 2013 committers of YAKINDU and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- * Contributors:
- * committers of YAKINDU - initial API and implementation
- * 
- */
-package org.yakindu.sct.model.sruntime.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.yakindu.base.types.Direction;
-import org.yakindu.sct.model.sruntime.ExecutionEvent;
-import org.yakindu.sct.model.sruntime.SRuntimePackage;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Execution Event</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * </p>
- * <ul>
- *   <li>{@link org.yakindu.sct.model.sruntime.impl.ExecutionEventImpl#isRaised <em>Raised</em>}</li>
- *   <li>{@link org.yakindu.sct.model.sruntime.impl.ExecutionEventImpl#getDirection <em>Direction</em>}</li>
- * </ul>
- *
- * @generated
- */
-public class ExecutionEventImpl extends ExecutionSlotImpl implements ExecutionEvent {
-	/**
-	 * The default value of the '{@link #isRaised() <em>Raised</em>}' attribute.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @see #isRaised()
-	 * @generated
-	 * @ordered
-	 */
-	protected static final boolean RAISED_EDEFAULT = false;
-
-	/**
-	 * The cached value of the '{@link #isRaised() <em>Raised</em>}' attribute.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @see #isRaised()
-	 * @generated
-	 * @ordered
-	 */
-	protected boolean raised = RAISED_EDEFAULT;
-
-	/**
-	 * The default value of the '{@link #getDirection() <em>Direction</em>}' attribute.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @see #getDirection()
-	 * @generated
-	 * @ordered
-	 */
-	protected static final Direction DIRECTION_EDEFAULT = Direction.LOCAL;
-
-	/**
-	 * The cached value of the '{@link #getDirection() <em>Direction</em>}' attribute.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @see #getDirection()
-	 * @generated
-	 * @ordered
-	 */
-	protected Direction direction = DIRECTION_EDEFAULT;
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public ExecutionEventImpl() {
-		super();
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	@Override
-	protected EClass eStaticClass() {
-		return SRuntimePackage.Literals.EXECUTION_EVENT;
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public boolean isRaised() {
-		return raised;
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public void setRaised(boolean newRaised) {
-		boolean oldRaised = raised;
-		raised = newRaised;
-		if (eNotificationRequired())
-			eNotify(new ENotificationImpl(this, Notification.SET, SRuntimePackage.EXECUTION_EVENT__RAISED, oldRaised, raised));
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public Direction getDirection() {
-		return direction;
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public void setDirection(Direction newDirection) {
-		Direction oldDirection = direction;
-		direction = newDirection == null ? DIRECTION_EDEFAULT : newDirection;
-		if (eNotificationRequired())
-			eNotify(new ENotificationImpl(this, Notification.SET, SRuntimePackage.EXECUTION_EVENT__DIRECTION, oldDirection, direction));
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	@Override
-	public Object eGet(int featureID, boolean resolve, boolean coreType) {
-		switch (featureID) {
-			case SRuntimePackage.EXECUTION_EVENT__RAISED:
-				return isRaised();
-			case SRuntimePackage.EXECUTION_EVENT__DIRECTION:
-				return getDirection();
-		}
-		return super.eGet(featureID, resolve, coreType);
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	@Override
-	public void eSet(int featureID, Object newValue) {
-		switch (featureID) {
-			case SRuntimePackage.EXECUTION_EVENT__RAISED:
-				setRaised((Boolean)newValue);
-				return;
-			case SRuntimePackage.EXECUTION_EVENT__DIRECTION:
-				setDirection((Direction)newValue);
-				return;
-		}
-		super.eSet(featureID, newValue);
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	@Override
-	public void eUnset(int featureID) {
-		switch (featureID) {
-			case SRuntimePackage.EXECUTION_EVENT__RAISED:
-				setRaised(RAISED_EDEFAULT);
-				return;
-			case SRuntimePackage.EXECUTION_EVENT__DIRECTION:
-				setDirection(DIRECTION_EDEFAULT);
-				return;
-		}
-		super.eUnset(featureID);
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	@Override
-	public boolean eIsSet(int featureID) {
-		switch (featureID) {
-			case SRuntimePackage.EXECUTION_EVENT__RAISED:
-				return raised != RAISED_EDEFAULT;
-			case SRuntimePackage.EXECUTION_EVENT__DIRECTION:
-				return direction != DIRECTION_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(" (raised: ");
-		result.append(raised);
-		result.append(", direction: ");
-		result.append(direction);
-		result.append(')');
-		return result.toString();
-	}
-
-} //ExecutionEventImpl

+ 0 - 44
plugins/org.yakindu.sct.model.sruntime/src/org/yakindu/sct/model/sruntime/impl/ExecutionOperationImpl.java

@@ -1,44 +0,0 @@
-/**
- * Copyright (c) 2013 committers of YAKINDU and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- * Contributors:
- * committers of YAKINDU - initial API and implementation
- * 
- */
-package org.yakindu.sct.model.sruntime.impl;
-
-import org.eclipse.emf.ecore.EClass;
-import org.yakindu.sct.model.sruntime.ExecutionOperation;
-import org.yakindu.sct.model.sruntime.SRuntimePackage;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Execution Operation</b></em>'.
- * <!-- end-user-doc -->
- *
- * @generated
- */
-public class ExecutionOperationImpl extends ExecutionVariableImpl implements ExecutionOperation {
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public ExecutionOperationImpl() {
-		super();
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	@Override
-	protected EClass eStaticClass() {
-		return SRuntimePackage.Literals.EXECUTION_OPERATION;
-	}
-
-} //ExecutionOperationImpl

+ 0 - 331
plugins/org.yakindu.sct.model.sruntime/src/org/yakindu/sct/model/sruntime/impl/ExecutionSlotImpl.java

@@ -1,331 +0,0 @@
-/**
- * Copyright (c) 2013 committers of YAKINDU and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- * Contributors:
- * committers of YAKINDU - initial API and implementation
- * 
- */
-package org.yakindu.sct.model.sruntime.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.InternalEObject;
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.yakindu.base.base.impl.NamedElementImpl;
-import org.yakindu.base.types.Type;
-import org.yakindu.sct.model.sruntime.ExecutionSlot;
-import org.yakindu.sct.model.sruntime.SRuntimePackage;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Execution Slot</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * </p>
- * <ul>
- *   <li>{@link org.yakindu.sct.model.sruntime.impl.ExecutionSlotImpl#getValue <em>Value</em>}</li>
- *   <li>{@link org.yakindu.sct.model.sruntime.impl.ExecutionSlotImpl#getFqName <em>Fq Name</em>}</li>
- *   <li>{@link org.yakindu.sct.model.sruntime.impl.ExecutionSlotImpl#isWritable <em>Writable</em>}</li>
- *   <li>{@link org.yakindu.sct.model.sruntime.impl.ExecutionSlotImpl#getType <em>Type</em>}</li>
- * </ul>
- *
- * @generated
- */
-public abstract class ExecutionSlotImpl extends NamedElementImpl implements ExecutionSlot {
-	/**
-	 * The default value of the '{@link #getValue() <em>Value</em>}' attribute.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @see #getValue()
-	 * @generated
-	 * @ordered
-	 */
-	protected static final Object VALUE_EDEFAULT = null;
-
-	/**
-	 * The cached value of the '{@link #getValue() <em>Value</em>}' attribute.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @see #getValue()
-	 * @generated
-	 * @ordered
-	 */
-	protected Object value = VALUE_EDEFAULT;
-
-	/**
-	 * The default value of the '{@link #getFqName() <em>Fq Name</em>}' attribute.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @see #getFqName()
-	 * @generated
-	 * @ordered
-	 */
-	protected static final String FQ_NAME_EDEFAULT = null;
-
-	/**
-	 * The cached value of the '{@link #getFqName() <em>Fq Name</em>}' attribute.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @see #getFqName()
-	 * @generated
-	 * @ordered
-	 */
-	protected String fqName = FQ_NAME_EDEFAULT;
-
-	/**
-	 * The default value of the '{@link #isWritable() <em>Writable</em>}' attribute.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @see #isWritable()
-	 * @generated
-	 * @ordered
-	 */
-	protected static final boolean WRITABLE_EDEFAULT = true;
-
-	/**
-	 * The cached value of the '{@link #isWritable() <em>Writable</em>}' attribute.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @see #isWritable()
-	 * @generated
-	 * @ordered
-	 */
-	protected boolean writable = WRITABLE_EDEFAULT;
-
-	/**
-	 * The cached value of the '{@link #getType() <em>Type</em>}' reference.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @see #getType()
-	 * @generated
-	 * @ordered
-	 */
-	protected Type type;
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public ExecutionSlotImpl() {
-		super();
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	@Override
-	protected EClass eStaticClass() {
-		return SRuntimePackage.Literals.EXECUTION_SLOT;
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public Type getType() {
-		if (type != null && type.eIsProxy()) {
-			InternalEObject oldType = (InternalEObject)type;
-			type = (Type)eResolveProxy(oldType);
-			if (type != oldType) {
-				if (eNotificationRequired())
-					eNotify(new ENotificationImpl(this, Notification.RESOLVE, SRuntimePackage.EXECUTION_SLOT__TYPE, oldType, type));
-			}
-		}
-		return type;
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public Type basicGetType() {
-		return type;
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public void setType(Type newType) {
-		Type oldType = type;
-		type = newType;
-		if (eNotificationRequired())
-			eNotify(new ENotificationImpl(this, Notification.SET, SRuntimePackage.EXECUTION_SLOT__TYPE, oldType, type));
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public Object getValue() {
-		return value;
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public void setValue(Object newValue) {
-		Object oldValue = value;
-		value = newValue;
-		if (eNotificationRequired())
-			eNotify(new ENotificationImpl(this, Notification.SET, SRuntimePackage.EXECUTION_SLOT__VALUE, oldValue, value));
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public String getFqName() {
-		return fqName;
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public void setFqName(String newFqName) {
-		String oldFqName = fqName;
-		fqName = newFqName;
-		if (eNotificationRequired())
-			eNotify(new ENotificationImpl(this, Notification.SET, SRuntimePackage.EXECUTION_SLOT__FQ_NAME, oldFqName, fqName));
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public boolean isWritable() {
-		return writable;
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public void setWritable(boolean newWritable) {
-		boolean oldWritable = writable;
-		writable = newWritable;
-		if (eNotificationRequired())
-			eNotify(new ENotificationImpl(this, Notification.SET, SRuntimePackage.EXECUTION_SLOT__WRITABLE, oldWritable, writable));
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	@Override
-	public Object eGet(int featureID, boolean resolve, boolean coreType) {
-		switch (featureID) {
-			case SRuntimePackage.EXECUTION_SLOT__VALUE:
-				return getValue();
-			case SRuntimePackage.EXECUTION_SLOT__FQ_NAME:
-				return getFqName();
-			case SRuntimePackage.EXECUTION_SLOT__WRITABLE:
-				return isWritable();
-			case SRuntimePackage.EXECUTION_SLOT__TYPE:
-				if (resolve) return getType();
-				return basicGetType();
-		}
-		return super.eGet(featureID, resolve, coreType);
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	@Override
-	public void eSet(int featureID, Object newValue) {
-		switch (featureID) {
-			case SRuntimePackage.EXECUTION_SLOT__VALUE:
-				setValue(newValue);
-				return;
-			case SRuntimePackage.EXECUTION_SLOT__FQ_NAME:
-				setFqName((String)newValue);
-				return;
-			case SRuntimePackage.EXECUTION_SLOT__WRITABLE:
-				setWritable((Boolean)newValue);
-				return;
-			case SRuntimePackage.EXECUTION_SLOT__TYPE:
-				setType((Type)newValue);
-				return;
-		}
-		super.eSet(featureID, newValue);
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	@Override
-	public void eUnset(int featureID) {
-		switch (featureID) {
-			case SRuntimePackage.EXECUTION_SLOT__VALUE:
-				setValue(VALUE_EDEFAULT);
-				return;
-			case SRuntimePackage.EXECUTION_SLOT__FQ_NAME:
-				setFqName(FQ_NAME_EDEFAULT);
-				return;
-			case SRuntimePackage.EXECUTION_SLOT__WRITABLE:
-				setWritable(WRITABLE_EDEFAULT);
-				return;
-			case SRuntimePackage.EXECUTION_SLOT__TYPE:
-				setType((Type)null);
-				return;
-		}
-		super.eUnset(featureID);
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	@Override
-	public boolean eIsSet(int featureID) {
-		switch (featureID) {
-			case SRuntimePackage.EXECUTION_SLOT__VALUE:
-				return VALUE_EDEFAULT == null ? value != null : !VALUE_EDEFAULT.equals(value);
-			case SRuntimePackage.EXECUTION_SLOT__FQ_NAME:
-				return FQ_NAME_EDEFAULT == null ? fqName != null : !FQ_NAME_EDEFAULT.equals(fqName);
-			case SRuntimePackage.EXECUTION_SLOT__WRITABLE:
-				return writable != WRITABLE_EDEFAULT;
-			case SRuntimePackage.EXECUTION_SLOT__TYPE:
-				return type != null;
-		}
-		return super.eIsSet(featureID);
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated NOT
-	 */
-	@Override
-	public String toString() {
-		if (eIsProxy())
-			return super.toString();
-		StringBuffer result = new StringBuffer(fqName != null ? fqName : "");
-		return result.toString();
-	}
-
-} //ExecutionSlotImpl

+ 0 - 44
plugins/org.yakindu.sct.model.sruntime/src/org/yakindu/sct/model/sruntime/impl/ExecutionVariableImpl.java

@@ -1,44 +0,0 @@
-/**
- * Copyright (c) 2013 committers of YAKINDU and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- * Contributors:
- * committers of YAKINDU - initial API and implementation
- * 
- */
-package org.yakindu.sct.model.sruntime.impl;
-
-import org.eclipse.emf.ecore.EClass;
-import org.yakindu.sct.model.sruntime.ExecutionVariable;
-import org.yakindu.sct.model.sruntime.SRuntimePackage;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Execution Variable</b></em>'.
- * <!-- end-user-doc -->
- *
- * @generated
- */
-public class ExecutionVariableImpl extends ExecutionSlotImpl implements ExecutionVariable {
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public ExecutionVariableImpl() {
-		super();
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	@Override
-	protected EClass eStaticClass() {
-		return SRuntimePackage.Literals.EXECUTION_VARIABLE;
-	}
-
-} //ExecutionVariableImpl

+ 0 - 186
plugins/org.yakindu.sct.model.sruntime/src/org/yakindu/sct/model/sruntime/impl/ReferenceSlotImpl.java

@@ -1,186 +0,0 @@
-/**
- * Copyright (c) 2013 committers of YAKINDU and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- * Contributors:
- * committers of YAKINDU - initial API and implementation
- * 
- */
-package org.yakindu.sct.model.sruntime.impl;
-
-import java.util.List;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.InternalEObject;
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.yakindu.sct.model.sruntime.CompositeSlot;
-import org.yakindu.sct.model.sruntime.ExecutionSlot;
-import org.yakindu.sct.model.sruntime.ReferenceSlot;
-import org.yakindu.sct.model.sruntime.SRuntimePackage;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Reference Slot</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * </p>
- * <ul>
- *   <li>{@link org.yakindu.sct.model.sruntime.impl.ReferenceSlotImpl#getReference <em>Reference</em>}</li>
- * </ul>
- *
- * @generated
- */
-public class ReferenceSlotImpl extends CompositeSlotImpl implements ReferenceSlot {
-	/**
-	 * The cached value of the '{@link #getReference() <em>Reference</em>}' reference.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @see #getReference()
-	 * @generated
-	 * @ordered
-	 */
-	protected ExecutionSlot reference;
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public ReferenceSlotImpl() {
-		super();
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	@Override
-	protected EClass eStaticClass() {
-		return SRuntimePackage.Literals.REFERENCE_SLOT;
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public ExecutionSlot getReference() {
-		if (reference != null && reference.eIsProxy()) {
-			InternalEObject oldReference = (InternalEObject)reference;
-			reference = (ExecutionSlot)eResolveProxy(oldReference);
-			if (reference != oldReference) {
-				if (eNotificationRequired())
-					eNotify(new ENotificationImpl(this, Notification.RESOLVE, SRuntimePackage.REFERENCE_SLOT__REFERENCE, oldReference, reference));
-			}
-		}
-		return reference;
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public ExecutionSlot basicGetReference() {
-		return reference;
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public void setReference(ExecutionSlot newReference) {
-		ExecutionSlot oldReference = reference;
-		reference = newReference;
-		if (eNotificationRequired())
-			eNotify(new ENotificationImpl(this, Notification.SET, SRuntimePackage.REFERENCE_SLOT__REFERENCE, oldReference, reference));
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	@Override
-	public Object eGet(int featureID, boolean resolve, boolean coreType) {
-		switch (featureID) {
-			case SRuntimePackage.REFERENCE_SLOT__REFERENCE:
-				if (resolve) return getReference();
-				return basicGetReference();
-		}
-		return super.eGet(featureID, resolve, coreType);
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	@Override
-	public void eSet(int featureID, Object newValue) {
-		switch (featureID) {
-			case SRuntimePackage.REFERENCE_SLOT__REFERENCE:
-				setReference((ExecutionSlot)newValue);
-				return;
-		}
-		super.eSet(featureID, newValue);
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	@Override
-	public void eUnset(int featureID) {
-		switch (featureID) {
-			case SRuntimePackage.REFERENCE_SLOT__REFERENCE:
-				setReference((ExecutionSlot)null);
-				return;
-		}
-		super.eUnset(featureID);
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	@Override
-	public boolean eIsSet(int featureID) {
-		switch (featureID) {
-			case SRuntimePackage.REFERENCE_SLOT__REFERENCE:
-				return reference != null;
-		}
-		return super.eIsSet(featureID);
-	}
-	
-	/**
-	 * @generated NOT
-	 */
-	@Override
-	public List<ExecutionSlot> getSlots() {
-		if (getReference() != null && getReference() instanceof CompositeSlot) {
-			return ((CompositeSlot)getReference()).getSlots();
-		}
-		return super.getSlots();
-	}
-	
-	/**
-	 * @generated NOT
-	 */
-	@Override
-	public Object getValue() {
-		if (getReference() != null) {
-			return getReference().getValue();
-		}
-		return super.getValue();
-	}
-
-} //ReferenceSlotImpl

+ 0 - 213
plugins/org.yakindu.sct.model.sruntime/src/org/yakindu/sct/model/sruntime/impl/SRuntimeFactoryImpl.java

@@ -1,213 +0,0 @@
-/**
- * Copyright (c) 2013 committers of YAKINDU and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- * Contributors:
- * committers of YAKINDU - initial API and implementation
- * 
- */
-package org.yakindu.sct.model.sruntime.impl;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EDataType;
-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.sruntime.*;
-
-/**
- * <!-- begin-user-doc --> An implementation of the model <b>Factory</b>. <!--
- * end-user-doc -->
- * @generated
- */
-public class SRuntimeFactoryImpl extends EFactoryImpl implements SRuntimeFactory {
-	/**
-	 * Creates the default factory implementation.
-	 * <!-- begin-user-doc --> <!--
-	 * end-user-doc -->
-	 * @generated
-	 */
-	public static SRuntimeFactory init() {
-		try {
-			SRuntimeFactory theSRuntimeFactory = (SRuntimeFactory)EPackage.Registry.INSTANCE.getEFactory(SRuntimePackage.eNS_URI);
-			if (theSRuntimeFactory != null) {
-				return theSRuntimeFactory;
-			}
-		}
-		catch (Exception exception) {
-			EcorePlugin.INSTANCE.log(exception);
-		}
-		return new SRuntimeFactoryImpl();
-	}
-
-	/**
-	 * Creates an instance of the factory.
-	 * <!-- begin-user-doc --> <!--
-	 * end-user-doc -->
-	 * @generated
-	 */
-	public SRuntimeFactoryImpl() {
-		super();
-	}
-
-	/**
-	 * <!-- begin-user-doc --> <!-- end-user-doc -->
-	 * @generated
-	 */
-	@Override
-	public EObject create(EClass eClass) {
-		switch (eClass.getClassifierID()) {
-			case SRuntimePackage.EXECUTION_CONTEXT: return createExecutionContext();
-			case SRuntimePackage.EXECUTION_EVENT: return createExecutionEvent();
-			case SRuntimePackage.EXECUTION_VARIABLE: return createExecutionVariable();
-			case SRuntimePackage.COMPOSITE_SLOT: return createCompositeSlot();
-			case SRuntimePackage.REFERENCE_SLOT: return createReferenceSlot();
-			case SRuntimePackage.EXECUTION_OPERATION: return createExecutionOperation();
-			default:
-				throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
-		}
-	}
-
-	/**
-	 * <!-- begin-user-doc --> <!-- end-user-doc -->
-	 * @generated
-	 */
-	@Override
-	public Object createFromString(EDataType eDataType, String initialValue) {
-		switch (eDataType.getClassifierID()) {
-			case SRuntimePackage.JAVA_OBJECT:
-				return createJavaObjectFromString(eDataType, initialValue);
-			default:
-				throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
-		}
-	}
-
-	/**
-	 * <!-- begin-user-doc --> <!-- end-user-doc -->
-	 * @generated
-	 */
-	@Override
-	public String convertToString(EDataType eDataType, Object instanceValue) {
-		switch (eDataType.getClassifierID()) {
-			case SRuntimePackage.JAVA_OBJECT:
-				return convertJavaObjectToString(eDataType, instanceValue);
-			default:
-				throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
-		}
-	}
-
-	/**
-	 * <!-- begin-user-doc --> <!-- end-user-doc -->
-	 * @generated
-	 */
-	public ExecutionContext createExecutionContext() {
-		ExecutionContextImpl executionContext = new ExecutionContextImpl();
-		return executionContext;
-	}
-
-	/**
-	 * <!-- begin-user-doc --> <!-- end-user-doc -->
-	 * @generated
-	 */
-	public ExecutionEvent createExecutionEvent() {
-		ExecutionEventImpl executionEvent = new ExecutionEventImpl();
-		return executionEvent;
-	}
-
-	/**
-	 * <!-- begin-user-doc --> <!-- end-user-doc -->
-	 * @generated
-	 */
-	public ExecutionVariable createExecutionVariable() {
-		ExecutionVariableImpl executionVariable = new ExecutionVariableImpl();
-		return executionVariable;
-	}
-
-	/**
-	 * <!-- begin-user-doc --> <!-- end-user-doc -->
-	 * @generated
-	 */
-	public CompositeSlot createCompositeSlot() {
-		CompositeSlotImpl compositeSlot = new CompositeSlotImpl();
-		return compositeSlot;
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public ReferenceSlot createReferenceSlot() {
-		ReferenceSlotImpl referenceSlot = new ReferenceSlotImpl();
-		return referenceSlot;
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public ExecutionOperation createExecutionOperation() {
-		ExecutionOperationImpl executionOperation = new ExecutionOperationImpl();
-		return executionOperation;
-	}
-
-	/**
-	 * <!-- begin-user-doc --> <!-- end-user-doc -->
-	 * 
-	 * @generated NOT
-	 */
-	public Object createJavaObjectFromString(EDataType eDataType, String initialValue) {
-		int indexOf = initialValue.indexOf(":");
-		String className = initialValue.substring(0, indexOf);
-		String value = initialValue.substring(indexOf + 1);
-		if (Boolean.class.getName().equals(className))
-			return Boolean.parseBoolean(value);
-		if (String.class.getName().equals(className))
-			return value;
-		if (Long.class.getName().equals(className))
-			return Long.parseLong(value);
-		if (Double.class.getName().equals(className))
-			return Double.parseDouble(value);
-		if (Integer.class.getName().equals(className))
-			return Integer.parseInt(value);
-		if(Any.class.getName().equals(className))
-			return new Any();
-		return super.createFromString(eDataType, initialValue);
-	}
-
-	/**
-	 * <!-- begin-user-doc --> <!-- end-user-doc -->
-	 * 
-	 * @generated NOT
-	 */
-	public String convertJavaObjectToString(EDataType eDataType, Object instanceValue) {
-		StringBuilder builder = new StringBuilder();
-		builder.append(instanceValue.getClass().getName());
-		builder.append(":");
-		builder.append(instanceValue);
-		return builder.toString();
-	}
-
-	/**
-	 * <!-- begin-user-doc --> <!-- end-user-doc -->
-	 * @generated
-	 */
-	public SRuntimePackage getSRuntimePackage() {
-		return (SRuntimePackage)getEPackage();
-	}
-
-	/**
-	 * <!-- begin-user-doc --> <!-- end-user-doc -->
-	 * @deprecated
-	 * @generated
-	 */
-	@Deprecated
-	public static SRuntimePackage getPackage() {
-		return SRuntimePackage.eINSTANCE;
-	}
-
-} // SRuntimeFactoryImpl

+ 0 - 490
plugins/org.yakindu.sct.model.sruntime/src/org/yakindu/sct/model/sruntime/impl/SRuntimePackageImpl.java

@@ -1,490 +0,0 @@
-/**
- * Copyright (c) 2013 committers of YAKINDU and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- * Contributors:
- * committers of YAKINDU - initial API and implementation
- * 
- */
-package org.yakindu.sct.model.sruntime.impl;
-
-import org.eclipse.emf.ecore.EAttribute;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EDataType;
-import org.eclipse.emf.ecore.EOperation;
-import org.eclipse.emf.ecore.EPackage;
-import org.eclipse.emf.ecore.EReference;
-import org.eclipse.emf.ecore.impl.EPackageImpl;
-import org.yakindu.base.base.BasePackage;
-import org.yakindu.base.types.TypesPackage;
-import org.yakindu.sct.model.sruntime.CompositeSlot;
-import org.yakindu.sct.model.sruntime.ExecutionContext;
-import org.yakindu.sct.model.sruntime.ExecutionEvent;
-import org.yakindu.sct.model.sruntime.ExecutionOperation;
-import org.yakindu.sct.model.sruntime.ExecutionSlot;
-import org.yakindu.sct.model.sruntime.ExecutionVariable;
-import org.yakindu.sct.model.sruntime.ReferenceSlot;
-import org.yakindu.sct.model.sruntime.SRuntimeFactory;
-import org.yakindu.sct.model.sruntime.SRuntimePackage;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model <b>Package</b>.
- * <!-- end-user-doc -->
- * @generated
- */
-public class SRuntimePackageImpl extends EPackageImpl implements SRuntimePackage {
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	private EClass executionContextEClass = null;
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	private EClass executionEventEClass = null;
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	private EClass executionSlotEClass = null;
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	private EClass executionVariableEClass = null;
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	private EClass compositeSlotEClass = null;
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	private EClass referenceSlotEClass = null;
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	private EClass executionOperationEClass = null;
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	private EDataType javaObjectEDataType = 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.sruntime.SRuntimePackage#eNS_URI
-	 * @see #init()
-	 * @generated
-	 */
-	private SRuntimePackageImpl() {
-		super(eNS_URI, SRuntimeFactory.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 SRuntimePackage#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 SRuntimePackage init() {
-		if (isInited) return (SRuntimePackage)EPackage.Registry.INSTANCE.getEPackage(SRuntimePackage.eNS_URI);
-
-		// Obtain or create and register package
-		SRuntimePackageImpl theSRuntimePackage = (SRuntimePackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof SRuntimePackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new SRuntimePackageImpl());
-
-		isInited = true;
-
-		// Initialize simple dependencies
-		BasePackage.eINSTANCE.eClass();
-		TypesPackage.eINSTANCE.eClass();
-
-		// Create package meta-data objects
-		theSRuntimePackage.createPackageContents();
-
-		// Initialize created meta-data
-		theSRuntimePackage.initializePackageContents();
-
-		// Mark meta-data to indicate it can't be changed
-		theSRuntimePackage.freeze();
-
-  
-		// Update the registry and return the package
-		EPackage.Registry.INSTANCE.put(SRuntimePackage.eNS_URI, theSRuntimePackage);
-		return theSRuntimePackage;
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public EClass getExecutionContext() {
-		return executionContextEClass;
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public EReference getExecutionContext_ActiveStates() {
-		return (EReference)executionContextEClass.getEStructuralFeatures().get(0);
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public EReference getExecutionContext_ExecutedElements() {
-		return (EReference)executionContextEClass.getEStructuralFeatures().get(1);
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public EReference getExecutionContext_SuspendedElements() {
-		return (EReference)executionContextEClass.getEStructuralFeatures().get(2);
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public EAttribute getExecutionContext_Snapshot() {
-		return (EAttribute)executionContextEClass.getEStructuralFeatures().get(3);
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public EClass getExecutionEvent() {
-		return executionEventEClass;
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public EAttribute getExecutionEvent_Raised() {
-		return (EAttribute)executionEventEClass.getEStructuralFeatures().get(0);
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public EAttribute getExecutionEvent_Direction() {
-		return (EAttribute)executionEventEClass.getEStructuralFeatures().get(1);
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public EClass getExecutionSlot() {
-		return executionSlotEClass;
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public EReference getExecutionSlot_Type() {
-		return (EReference)executionSlotEClass.getEStructuralFeatures().get(3);
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public EAttribute getExecutionSlot_Value() {
-		return (EAttribute)executionSlotEClass.getEStructuralFeatures().get(0);
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public EAttribute getExecutionSlot_FqName() {
-		return (EAttribute)executionSlotEClass.getEStructuralFeatures().get(1);
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public EAttribute getExecutionSlot_Writable() {
-		return (EAttribute)executionSlotEClass.getEStructuralFeatures().get(2);
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public EClass getExecutionVariable() {
-		return executionVariableEClass;
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public EClass getCompositeSlot() {
-		return compositeSlotEClass;
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public EReference getCompositeSlot_Slots() {
-		return (EReference)compositeSlotEClass.getEStructuralFeatures().get(0);
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public EClass getReferenceSlot() {
-		return referenceSlotEClass;
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public EReference getReferenceSlot_Reference() {
-		return (EReference)referenceSlotEClass.getEStructuralFeatures().get(0);
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public EClass getExecutionOperation() {
-		return executionOperationEClass;
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public EDataType getJavaObject() {
-		return javaObjectEDataType;
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public SRuntimeFactory getSRuntimeFactory() {
-		return (SRuntimeFactory)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
-		executionContextEClass = createEClass(EXECUTION_CONTEXT);
-		createEReference(executionContextEClass, EXECUTION_CONTEXT__ACTIVE_STATES);
-		createEReference(executionContextEClass, EXECUTION_CONTEXT__EXECUTED_ELEMENTS);
-		createEReference(executionContextEClass, EXECUTION_CONTEXT__SUSPENDED_ELEMENTS);
-		createEAttribute(executionContextEClass, EXECUTION_CONTEXT__SNAPSHOT);
-
-		executionEventEClass = createEClass(EXECUTION_EVENT);
-		createEAttribute(executionEventEClass, EXECUTION_EVENT__RAISED);
-		createEAttribute(executionEventEClass, EXECUTION_EVENT__DIRECTION);
-
-		executionSlotEClass = createEClass(EXECUTION_SLOT);
-		createEAttribute(executionSlotEClass, EXECUTION_SLOT__VALUE);
-		createEAttribute(executionSlotEClass, EXECUTION_SLOT__FQ_NAME);
-		createEAttribute(executionSlotEClass, EXECUTION_SLOT__WRITABLE);
-		createEReference(executionSlotEClass, EXECUTION_SLOT__TYPE);
-
-		executionVariableEClass = createEClass(EXECUTION_VARIABLE);
-
-		compositeSlotEClass = createEClass(COMPOSITE_SLOT);
-		createEReference(compositeSlotEClass, COMPOSITE_SLOT__SLOTS);
-
-		referenceSlotEClass = createEClass(REFERENCE_SLOT);
-		createEReference(referenceSlotEClass, REFERENCE_SLOT__REFERENCE);
-
-		executionOperationEClass = createEClass(EXECUTION_OPERATION);
-
-		// Create data types
-		javaObjectEDataType = createEDataType(JAVA_OBJECT);
-	}
-
-	/**
-	 * <!-- 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
-		BasePackage theBasePackage = (BasePackage)EPackage.Registry.INSTANCE.getEPackage(BasePackage.eNS_URI);
-		TypesPackage theTypesPackage = (TypesPackage)EPackage.Registry.INSTANCE.getEPackage(TypesPackage.eNS_URI);
-
-		// Create type parameters
-
-		// Set bounds for type parameters
-
-		// Add supertypes to classes
-		executionContextEClass.getESuperTypes().add(theBasePackage.getNamedElement());
-		executionContextEClass.getESuperTypes().add(this.getCompositeSlot());
-		executionEventEClass.getESuperTypes().add(this.getExecutionSlot());
-		executionSlotEClass.getESuperTypes().add(theBasePackage.getNamedElement());
-		executionVariableEClass.getESuperTypes().add(this.getExecutionSlot());
-		compositeSlotEClass.getESuperTypes().add(this.getExecutionSlot());
-		referenceSlotEClass.getESuperTypes().add(this.getCompositeSlot());
-		executionOperationEClass.getESuperTypes().add(this.getExecutionVariable());
-
-		// Initialize classes and features; add operations and parameters
-		initEClass(executionContextEClass, ExecutionContext.class, "ExecutionContext", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
-		initEReference(getExecutionContext_ActiveStates(), ecorePackage.getEObject(), null, "activeStates", null, 0, -1, ExecutionContext.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-		initEReference(getExecutionContext_ExecutedElements(), ecorePackage.getEObject(), null, "executedElements", null, 0, -1, ExecutionContext.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-		initEReference(getExecutionContext_SuspendedElements(), ecorePackage.getEObject(), null, "suspendedElements", null, 0, -1, ExecutionContext.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-		initEAttribute(getExecutionContext_Snapshot(), ecorePackage.getEBoolean(), "snapshot", null, 0, 1, ExecutionContext.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
-		addEOperation(executionContextEClass, this.getExecutionEvent(), "getRaisedEvents", 0, -1, IS_UNIQUE, IS_ORDERED);
-
-		EOperation op = addEOperation(executionContextEClass, this.getExecutionVariable(), "getVariable", 0, 1, IS_UNIQUE, IS_ORDERED);
-		addEParameter(op, ecorePackage.getEString(), "qualifiedName", 0, 1, IS_UNIQUE, IS_ORDERED);
-
-		op = addEOperation(executionContextEClass, this.getExecutionEvent(), "getEvent", 0, 1, IS_UNIQUE, IS_ORDERED);
-		addEParameter(op, ecorePackage.getEString(), "qualifiedName", 0, 1, IS_UNIQUE, IS_ORDERED);
-
-		addEOperation(executionContextEClass, this.getExecutionEvent(), "getAllEvents", 0, -1, IS_UNIQUE, IS_ORDERED);
-
-		addEOperation(executionContextEClass, this.getExecutionVariable(), "getAllVariables", 0, -1, IS_UNIQUE, IS_ORDERED);
-
-		addEOperation(executionContextEClass, this.getExecutionSlot(), "getAllSlots", 0, -1, IS_UNIQUE, IS_ORDERED);
-
-		op = addEOperation(executionContextEClass, this.getExecutionSlot(), "getSlot", 0, 1, IS_UNIQUE, IS_ORDERED);
-		addEParameter(op, ecorePackage.getEString(), "qualifiedName", 0, 1, IS_UNIQUE, IS_ORDERED);
-
-		initEClass(executionEventEClass, ExecutionEvent.class, "ExecutionEvent", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
-		initEAttribute(getExecutionEvent_Raised(), ecorePackage.getEBoolean(), "raised", null, 0, 1, ExecutionEvent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-		initEAttribute(getExecutionEvent_Direction(), theTypesPackage.getDirection(), "direction", null, 0, 1, ExecutionEvent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
-		initEClass(executionSlotEClass, ExecutionSlot.class, "ExecutionSlot", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
-		initEAttribute(getExecutionSlot_Value(), this.getJavaObject(), "value", null, 0, 1, ExecutionSlot.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-		initEAttribute(getExecutionSlot_FqName(), ecorePackage.getEString(), "fqName", null, 0, 1, ExecutionSlot.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-		initEAttribute(getExecutionSlot_Writable(), ecorePackage.getEBoolean(), "writable", "true", 0, 1, ExecutionSlot.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-		initEReference(getExecutionSlot_Type(), theTypesPackage.getType(), null, "type", null, 0, 1, ExecutionSlot.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
-		initEClass(executionVariableEClass, ExecutionVariable.class, "ExecutionVariable", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
-
-		initEClass(compositeSlotEClass, CompositeSlot.class, "CompositeSlot", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
-		initEReference(getCompositeSlot_Slots(), this.getExecutionSlot(), null, "slots", null, 0, -1, CompositeSlot.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
-		initEClass(referenceSlotEClass, ReferenceSlot.class, "ReferenceSlot", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
-		initEReference(getReferenceSlot_Reference(), this.getExecutionSlot(), null, "reference", null, 0, 1, ReferenceSlot.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
-		initEClass(executionOperationEClass, ExecutionOperation.class, "ExecutionOperation", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
-
-		// Initialize data types
-		initEDataType(javaObjectEDataType, Object.class, "JavaObject", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS);
-
-		// Create resource
-		createResource(eNS_URI);
-	}
-
-} //SRuntimePackageImpl

+ 0 - 255
plugins/org.yakindu.sct.model.sruntime/src/org/yakindu/sct/model/sruntime/util/SRuntimeAdapterFactory.java

@@ -1,255 +0,0 @@
-/**
- * Copyright (c) 2013 committers of YAKINDU and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- * Contributors:
- * committers of YAKINDU - initial API and implementation
- * 
- */
-package org.yakindu.sct.model.sruntime.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.base.base.NamedElement;
-import org.yakindu.sct.model.sruntime.*;
-
-/**
- * <!-- 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.sruntime.SRuntimePackage
- * @generated
- */
-public class SRuntimeAdapterFactory extends AdapterFactoryImpl {
-	/**
-	 * The cached model package.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	protected static SRuntimePackage modelPackage;
-
-	/**
-	 * Creates an instance of the adapter factory.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public SRuntimeAdapterFactory() {
-		if (modelPackage == null) {
-			modelPackage = SRuntimePackage.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 SRuntimeSwitch<Adapter> modelSwitch =
-		new SRuntimeSwitch<Adapter>() {
-			@Override
-			public Adapter caseExecutionContext(ExecutionContext object) {
-				return createExecutionContextAdapter();
-			}
-			@Override
-			public Adapter caseExecutionEvent(ExecutionEvent object) {
-				return createExecutionEventAdapter();
-			}
-			@Override
-			public Adapter caseExecutionSlot(ExecutionSlot object) {
-				return createExecutionSlotAdapter();
-			}
-			@Override
-			public Adapter caseExecutionVariable(ExecutionVariable object) {
-				return createExecutionVariableAdapter();
-			}
-			@Override
-			public Adapter caseCompositeSlot(CompositeSlot object) {
-				return createCompositeSlotAdapter();
-			}
-			@Override
-			public Adapter caseReferenceSlot(ReferenceSlot object) {
-				return createReferenceSlotAdapter();
-			}
-			@Override
-			public Adapter caseExecutionOperation(ExecutionOperation object) {
-				return createExecutionOperationAdapter();
-			}
-			@Override
-			public Adapter caseNamedElement(NamedElement object) {
-				return createNamedElementAdapter();
-			}
-			@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.sruntime.ExecutionContext <em>Execution Context</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.sruntime.ExecutionContext
-	 * @generated
-	 */
-	public Adapter createExecutionContextAdapter() {
-		return null;
-	}
-
-	/**
-	 * Creates a new adapter for an object of class '{@link org.yakindu.sct.model.sruntime.ExecutionEvent <em>Execution Event</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.sruntime.ExecutionEvent
-	 * @generated
-	 */
-	public Adapter createExecutionEventAdapter() {
-		return null;
-	}
-
-	/**
-	 * Creates a new adapter for an object of class '{@link org.yakindu.sct.model.sruntime.ExecutionSlot <em>Execution Slot</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.sruntime.ExecutionSlot
-	 * @generated
-	 */
-	public Adapter createExecutionSlotAdapter() {
-		return null;
-	}
-
-	/**
-	 * Creates a new adapter for an object of class '{@link org.yakindu.sct.model.sruntime.ExecutionVariable <em>Execution Variable</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.sruntime.ExecutionVariable
-	 * @generated
-	 */
-	public Adapter createExecutionVariableAdapter() {
-		return null;
-	}
-
-	/**
-	 * Creates a new adapter for an object of class '{@link org.yakindu.sct.model.sruntime.CompositeSlot <em>Composite Slot</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.sruntime.CompositeSlot
-	 * @generated
-	 */
-	public Adapter createCompositeSlotAdapter() {
-		return null;
-	}
-
-	/**
-	 * Creates a new adapter for an object of class '{@link org.yakindu.sct.model.sruntime.ReferenceSlot <em>Reference Slot</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.sruntime.ReferenceSlot
-	 * @generated
-	 */
-	public Adapter createReferenceSlotAdapter() {
-		return null;
-	}
-
-	/**
-	 * Creates a new adapter for an object of class '{@link org.yakindu.sct.model.sruntime.ExecutionOperation <em>Execution Operation</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.sruntime.ExecutionOperation
-	 * @generated
-	 */
-	public Adapter createExecutionOperationAdapter() {
-		return null;
-	}
-
-	/**
-	 * Creates a new adapter for an object of class '{@link org.yakindu.base.base.NamedElement <em>Named Element</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.base.base.NamedElement
-	 * @generated
-	 */
-	public Adapter createNamedElementAdapter() {
-		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;
-	}
-
-} //SRuntimeAdapterFactory

+ 0 - 276
plugins/org.yakindu.sct.model.sruntime/src/org/yakindu/sct/model/sruntime/util/SRuntimeSwitch.java

@@ -1,276 +0,0 @@
-/**
- * Copyright (c) 2013 committers of YAKINDU and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- * Contributors:
- * committers of YAKINDU - initial API and implementation
- * 
- */
-package org.yakindu.sct.model.sruntime.util;
-
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EPackage;
-
-import org.eclipse.emf.ecore.util.Switch;
-
-import org.yakindu.base.base.NamedElement;
-import org.yakindu.sct.model.sruntime.*;
-
-/**
- * <!-- 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.sruntime.SRuntimePackage
- * @generated
- */
-public class SRuntimeSwitch<T> extends Switch<T> {
-	/**
-	 * The cached model package
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	protected static SRuntimePackage modelPackage;
-
-	/**
-	 * Creates an instance of the switch.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public SRuntimeSwitch() {
-		if (modelPackage == null) {
-			modelPackage = SRuntimePackage.eINSTANCE;
-		}
-	}
-
-	/**
-	 * Checks whether this is a switch for the given package.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @param 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 SRuntimePackage.EXECUTION_CONTEXT: {
-				ExecutionContext executionContext = (ExecutionContext)theEObject;
-				T result = caseExecutionContext(executionContext);
-				if (result == null) result = caseCompositeSlot(executionContext);
-				if (result == null) result = caseExecutionSlot(executionContext);
-				if (result == null) result = caseNamedElement(executionContext);
-				if (result == null) result = defaultCase(theEObject);
-				return result;
-			}
-			case SRuntimePackage.EXECUTION_EVENT: {
-				ExecutionEvent executionEvent = (ExecutionEvent)theEObject;
-				T result = caseExecutionEvent(executionEvent);
-				if (result == null) result = caseExecutionSlot(executionEvent);
-				if (result == null) result = caseNamedElement(executionEvent);
-				if (result == null) result = defaultCase(theEObject);
-				return result;
-			}
-			case SRuntimePackage.EXECUTION_SLOT: {
-				ExecutionSlot executionSlot = (ExecutionSlot)theEObject;
-				T result = caseExecutionSlot(executionSlot);
-				if (result == null) result = caseNamedElement(executionSlot);
-				if (result == null) result = defaultCase(theEObject);
-				return result;
-			}
-			case SRuntimePackage.EXECUTION_VARIABLE: {
-				ExecutionVariable executionVariable = (ExecutionVariable)theEObject;
-				T result = caseExecutionVariable(executionVariable);
-				if (result == null) result = caseExecutionSlot(executionVariable);
-				if (result == null) result = caseNamedElement(executionVariable);
-				if (result == null) result = defaultCase(theEObject);
-				return result;
-			}
-			case SRuntimePackage.COMPOSITE_SLOT: {
-				CompositeSlot compositeSlot = (CompositeSlot)theEObject;
-				T result = caseCompositeSlot(compositeSlot);
-				if (result == null) result = caseExecutionSlot(compositeSlot);
-				if (result == null) result = caseNamedElement(compositeSlot);
-				if (result == null) result = defaultCase(theEObject);
-				return result;
-			}
-			case SRuntimePackage.REFERENCE_SLOT: {
-				ReferenceSlot referenceSlot = (ReferenceSlot)theEObject;
-				T result = caseReferenceSlot(referenceSlot);
-				if (result == null) result = caseCompositeSlot(referenceSlot);
-				if (result == null) result = caseExecutionSlot(referenceSlot);
-				if (result == null) result = caseNamedElement(referenceSlot);
-				if (result == null) result = defaultCase(theEObject);
-				return result;
-			}
-			case SRuntimePackage.EXECUTION_OPERATION: {
-				ExecutionOperation executionOperation = (ExecutionOperation)theEObject;
-				T result = caseExecutionOperation(executionOperation);
-				if (result == null) result = caseExecutionVariable(executionOperation);
-				if (result == null) result = caseExecutionSlot(executionOperation);
-				if (result == null) result = caseNamedElement(executionOperation);
-				if (result == null) result = defaultCase(theEObject);
-				return result;
-			}
-			default: return defaultCase(theEObject);
-		}
-	}
-
-	/**
-	 * Returns the result of interpreting the object as an instance of '<em>Execution Context</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>Execution Context</em>'.
-	 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
-	 * @generated
-	 */
-	public T caseExecutionContext(ExecutionContext object) {
-		return null;
-	}
-
-	/**
-	 * Returns the result of interpreting the object as an instance of '<em>Execution Event</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>Execution Event</em>'.
-	 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
-	 * @generated
-	 */
-	public T caseExecutionEvent(ExecutionEvent object) {
-		return null;
-	}
-
-	/**
-	 * Returns the result of interpreting the object as an instance of '<em>Execution Slot</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>Execution Slot</em>'.
-	 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
-	 * @generated
-	 */
-	public T caseExecutionSlot(ExecutionSlot object) {
-		return null;
-	}
-
-	/**
-	 * Returns the result of interpreting the object as an instance of '<em>Execution Variable</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>Execution Variable</em>'.
-	 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
-	 * @generated
-	 */
-	public T caseExecutionVariable(ExecutionVariable object) {
-		return null;
-	}
-
-	/**
-	 * Returns the result of interpreting the object as an instance of '<em>Composite Slot</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>Composite Slot</em>'.
-	 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
-	 * @generated
-	 */
-	public T caseCompositeSlot(CompositeSlot object) {
-		return null;
-	}
-
-	/**
-	 * Returns the result of interpreting the object as an instance of '<em>Reference Slot</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>Reference Slot</em>'.
-	 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
-	 * @generated
-	 */
-	public T caseReferenceSlot(ReferenceSlot object) {
-		return null;
-	}
-
-	/**
-	 * Returns the result of interpreting the object as an instance of '<em>Execution Operation</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>Execution Operation</em>'.
-	 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
-	 * @generated
-	 */
-	public T caseExecutionOperation(ExecutionOperation object) {
-		return null;
-	}
-
-	/**
-	 * Returns the result of interpreting the object as an instance of '<em>Named Element</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>Named Element</em>'.
-	 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
-	 * @generated
-	 */
-	public T caseNamedElement(NamedElement 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;
-	}
-
-} //SRuntimeSwitch

+ 1 - 0
plugins/org.yakindu.sct.model.stext/.classpath

@@ -3,6 +3,7 @@
 	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
 	<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
 	<classpathentry kind="src" path="src"/>
+	<classpathentry kind="src" path="xtend-gen"/>
 	<classpathentry kind="src" path="src-gen"/>
 	<classpathentry kind="src" path="model"/>
 	<classpathentry kind="src" path="emf-gen"/>

+ 1 - 1
plugins/org.yakindu.sct.simulation.ui/src/org/yakindu/sct/simulation/ui/model/presenter/ExecutionContextVisualizer.java

@@ -28,8 +28,8 @@ import org.eclipse.emf.ecore.util.EcoreUtil;
 import org.yakindu.base.gmf.runtime.highlighting.HighlightingParameters;
 import org.yakindu.base.gmf.runtime.highlighting.IHighlightingSupport;
 import org.yakindu.sct.model.sgraph.RegularState;
+import org.yakindu.sct.model.sruntime.CrossDocumentContentAdapter;
 import org.yakindu.sct.model.sruntime.ExecutionContext;
-import org.yakindu.sct.model.sruntime.util.CrossDocumentContentAdapter;
 
 import com.google.common.collect.Lists;
 

+ 41 - 40
releng/org.yakindu.base.target/Mars.target

@@ -1,40 +1,41 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<?pde version="3.8"?><target name="Mars (SCT)" sequenceNumber="44">
-<locations>
-<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="true" type="InstallableUnit">
-<unit id="org.eclipse.emf.compare.ide.ui.feature.group" version="3.1.1.201509120604"/>
-<unit id="org.eclipse.emf.compare.diagram.papyrus.feature.group" version="3.1.1.201509120604"/>
-<unit id="org.eclipse.cdt.sdk.feature.group" version="8.8.1.201602051005"/>
-<unit id="org.eclipse.gmf.runtime.notation.sdk.feature.group" version="1.9.0.201505312221"/>
-<unit id="org.eclipse.uml2.sdk.feature.group" version="5.1.2.v20160201-0816"/>
-<unit id="org.eclipse.xtext.sdk.feature.group" version="2.9.1.v201512180746"/>
-<unit id="org.eclipse.emf.sdk.feature.group" version="2.11.2.v20160208-0841"/>
-<unit id="org.eclipse.jdt.feature.group" version="3.11.2.v20160212-1500"/>
-<unit id="org.eclipse.epp.mpc.feature.group" version="1.4.2.v20160210-2005"/>
-<unit id="org.eclipse.gmf.feature.group" version="1.9.0.201506060219"/>
-<repository location="http://download.eclipse.org/releases/mars"/>
-</location>
-<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="true" type="InstallableUnit">
-<unit id="de.itemis.xtext.antlr.feature.feature.group" version="2.1.1.v201405091103"/>
-<unit id="de.itemis.xtext.antlr.sdk.feature.group" version="2.1.1.v201405091103"/>
-<repository location="http://download.itemis.com/updates/releases/2.1.1/"/>
-</location>
-<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="true" type="InstallableUnit">
-<unit id="org.eclipse.pde.source.feature.group" version="3.11.2.v20160212-1500"/>
-<unit id="org.eclipse.platform.feature.group" version="4.5.2.v20160212-1500"/>
-<repository location="http://download.eclipse.org/eclipse/updates/4.5/"/>
-</location>
-<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="true" type="InstallableUnit">
-<unit id="com.google.gson" version="2.2.4.v201311231704"/>
-<unit id="com.google.inject" version="3.0.0.v201312141243"/>
-<unit id="com.google.inject.multibindings" version="3.0.0.v201402270930"/>
-<unit id="com.google.inject.source" version="3.0.0.v201312141243"/>
-<unit id="com.google.inject.multibindings.source" version="3.0.0.v201402270930"/>
-<repository location="http://download.eclipse.org/tools/orbit/downloads/drops/R20140525021250/repository/"/>
-</location>
-<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="true" type="InstallableUnit">
-<unit id="org.eclipse.jgit.feature.group" version="4.5.0.201609210915-r"/>
-<repository location="http://download.eclipse.org/egit/updates-4.5/"/>
-</location>
-</locations>
-</target>
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<?pde version="3.8"?><target name="Mars (SCT)" sequenceNumber="45">
+<locations>
+<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="true" type="InstallableUnit">
+<unit id="de.itemis.xtext.antlr.feature.feature.group" version="2.1.1.v201405091103"/>
+<unit id="de.itemis.xtext.antlr.sdk.feature.group" version="2.1.1.v201405091103"/>
+<repository location="http://download.itemis.com/updates/releases/2.1.1/"/>
+</location>
+<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="true" type="InstallableUnit">
+<unit id="org.eclipse.pde.source.feature.group" version="3.11.2.v20160212-1500"/>
+<unit id="org.eclipse.platform.feature.group" version="4.5.2.v20160212-1500"/>
+<repository location="http://download.eclipse.org/eclipse/updates/4.5/"/>
+</location>
+<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="true" type="InstallableUnit">
+<unit id="com.google.gson" version="2.2.4.v201311231704"/>
+<unit id="com.google.inject" version="3.0.0.v201312141243"/>
+<unit id="com.google.inject.multibindings" version="3.0.0.v201402270930"/>
+<unit id="com.google.inject.multibindings.source" version="3.0.0.v201402270930"/>
+<unit id="com.google.inject.source" version="3.0.0.v201312141243"/>
+<repository location="http://download.eclipse.org/tools/orbit/downloads/drops/R20140525021250/repository/"/>
+</location>
+<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="true" type="InstallableUnit">
+<unit id="org.eclipse.jgit.feature.group" version="4.5.0.201609210915-r"/>
+<repository location="http://download.eclipse.org/egit/updates-4.5/"/>
+</location>
+<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="true" type="InstallableUnit">
+<unit id="org.eclipse.cdt.sdk.feature.group" version="8.8.1.201602051005"/>
+<unit id="org.eclipse.emf.compare.diagram.papyrus.feature.group" version="3.1.1.201509120604"/>
+<unit id="org.eclipse.emf.compare.ide.ui.feature.group" version="3.1.1.201509120604"/>
+<unit id="org.eclipse.emf.ecore.xcore.sdk.feature.group" version="1.3.2.v20160209-0349"/>
+<unit id="org.eclipse.emf.sdk.feature.group" version="2.11.2.v20160208-0841"/>
+<unit id="org.eclipse.epp.mpc.feature.group" version="1.4.2.v20160210-2005"/>
+<unit id="org.eclipse.gmf.feature.group" version="1.9.0.201506060219"/>
+<unit id="org.eclipse.gmf.runtime.notation.sdk.feature.group" version="1.9.0.201505312221"/>
+<unit id="org.eclipse.jdt.feature.group" version="3.11.2.v20160212-1500"/>
+<unit id="org.eclipse.uml2.sdk.feature.group" version="5.1.2.v20160201-0816"/>
+<unit id="org.eclipse.xtext.sdk.feature.group" version="2.9.1.v201512180746"/>
+<repository location="http://download.eclipse.org/releases/mars"/>
+</location>
+</locations>
+</target>

+ 41 - 40
releng/org.yakindu.base.target/Neon.target

@@ -1,40 +1,41 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<?pde version="3.8"?><target name="Neon (SCT)" sequenceNumber="33">
-<locations>
-<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="true" type="InstallableUnit">
-<unit id="de.itemis.xtext.antlr.feature.feature.group" version="2.1.1.v201405091103"/>
-<unit id="de.itemis.xtext.antlr.sdk.feature.group" version="2.1.1.v201405091103"/>
-<repository location="http://download.itemis.com/updates/releases/2.1.1/"/>
-</location>
-<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="true" type="InstallableUnit">
-<unit id="org.eclipse.platform.ide" version="4.6.2.M20161124-1400"/>
-<unit id="org.eclipse.pde.source.feature.group" version="3.12.2.v20161124-1400"/>
-<repository location="http://download.eclipse.org/eclipse/updates/4.6"/>
-</location>
-<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="true" type="InstallableUnit">
-<unit id="org.eclipse.gmf.runtime.sdk.feature.group" version="1.10.0.201606071959"/>
-<unit id="org.eclipse.epp.mpc.feature.group" version="1.5.3.v20161116-1851"/>
-<unit id="org.eclipse.cdt.sdk.feature.group" version="9.2.0.201612061315"/>
-<unit id="org.eclipse.emf.sdk.feature.group" version="2.12.0.v20160526-0356"/>
-<unit id="org.eclipse.emf.compare.diagram.papyrus.feature.group" version="3.2.1.201608311750"/>
-<unit id="org.eclipse.gmf.runtime.notation.sdk.feature.group" version="1.10.0.201606071631"/>
-<unit id="org.eclipse.emf.compare.ide.ui.feature.group" version="3.2.1.201608311750"/>
-<unit id="org.eclipse.jdt.feature.group" version="3.12.2.v20161124-1400"/>
-<unit id="org.eclipse.xtext.sdk.feature.group" version="2.10.0.v201605250459"/>
-<unit id="org.eclipse.uml2.sdk.feature.group" version="5.2.2.v20161114-0827"/>
-<repository location="http://download.eclipse.org/releases/neon"/>
-</location>
-<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="true" type="InstallableUnit">
-<unit id="com.google.gson" version="2.2.4.v201311231704"/>
-<unit id="com.google.inject" version="3.0.0.v201312141243"/>
-<unit id="com.google.inject.multibindings" version="3.0.0.v201402270930"/>
-<unit id="com.google.inject.source" version="3.0.0.v201312141243"/>
-<unit id="com.google.inject.multibindings.source" version="3.0.0.v201402270930"/>
-<repository location="http://download.eclipse.org/tools/orbit/downloads/drops/R20140525021250/repository/"/>
-</location>
-<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="true" type="InstallableUnit">
-<unit id="org.eclipse.jgit.feature.group" version="4.5.0.201609210915-r"/>
-<repository location="http://download.eclipse.org/egit/updates-4.5/"/>
-</location>
-</locations>
-</target>
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<?pde version="3.8"?><target name="Neon (SCT)" sequenceNumber="34">
+<locations>
+<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="true" type="InstallableUnit">
+<unit id="de.itemis.xtext.antlr.feature.feature.group" version="2.1.1.v201405091103"/>
+<unit id="de.itemis.xtext.antlr.sdk.feature.group" version="2.1.1.v201405091103"/>
+<repository location="http://download.itemis.com/updates/releases/2.1.1/"/>
+</location>
+<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="true" type="InstallableUnit">
+<unit id="org.eclipse.pde.source.feature.group" version="3.12.2.v20161124-1400"/>
+<unit id="org.eclipse.platform.ide" version="4.6.2.M20161124-1400"/>
+<repository location="http://download.eclipse.org/eclipse/updates/4.6"/>
+</location>
+<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="true" type="InstallableUnit">
+<unit id="org.eclipse.cdt.sdk.feature.group" version="9.2.1.201703062208"/>
+<unit id="org.eclipse.emf.compare.diagram.papyrus.feature.group" version="3.2.1.201608311750"/>
+<unit id="org.eclipse.emf.compare.ide.ui.feature.group" version="3.2.1.201608311750"/>
+<unit id="org.eclipse.emf.ecore.xcore.sdk.feature.group" version="1.4.0.v20160526-0606"/>
+<unit id="org.eclipse.emf.sdk.feature.group" version="2.12.0.v20160526-0356"/>
+<unit id="org.eclipse.epp.mpc.feature.group" version="1.5.4.v20170222-1941"/>
+<unit id="org.eclipse.gmf.runtime.notation.sdk.feature.group" version="1.10.0.201606071631"/>
+<unit id="org.eclipse.gmf.runtime.sdk.feature.group" version="1.10.0.201606071959"/>
+<unit id="org.eclipse.jdt.feature.group" version="3.12.3.v20170301-0400"/>
+<unit id="org.eclipse.uml2.sdk.feature.group" version="5.2.3.v20170227-0935"/>
+<unit id="org.eclipse.xtext.sdk.feature.group" version="2.10.0.v201605250459"/>
+<repository location="http://download.eclipse.org/releases/neon"/>
+</location>
+<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="true" type="InstallableUnit">
+<unit id="com.google.gson" version="2.2.4.v201311231704"/>
+<unit id="com.google.inject" version="3.0.0.v201312141243"/>
+<unit id="com.google.inject.multibindings" version="3.0.0.v201402270930"/>
+<unit id="com.google.inject.multibindings.source" version="3.0.0.v201402270930"/>
+<unit id="com.google.inject.source" version="3.0.0.v201312141243"/>
+<repository location="http://download.eclipse.org/tools/orbit/downloads/drops/R20140525021250/repository/"/>
+</location>
+<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="true" type="InstallableUnit">
+<unit id="org.eclipse.jgit.feature.group" version="4.5.0.201609210915-r"/>
+<repository location="http://download.eclipse.org/egit/updates-4.5/"/>
+</location>
+</locations>
+</target>

+ 7 - 6
releng/org.yakindu.base.target/Oxygen.target

@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<?pde version="3.8"?><target name="Oxygen (SCT)" sequenceNumber="53">
+<?pde version="3.8"?><target name="Oxygen (SCT)" sequenceNumber="54">
 <locations>
 <location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="true" type="InstallableUnit">
 <unit id="de.itemis.xtext.antlr.feature.feature.group" version="2.1.1.v201405091103"/>
@@ -20,9 +20,15 @@
 <repository location="http://download.eclipse.org/egit/updates-4.5/"/>
 </location>
 <location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="true" type="InstallableUnit">
+<unit id="org.eclipse.pde.source.feature.group" version="3.13.2.v20171130-0510"/>
+<unit id="org.eclipse.platform.sdk" version="4.7.2.M20171130-0510"/>
+<repository location="http://download.eclipse.org/eclipse/updates/4.7"/>
+</location>
+<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="true" type="InstallableUnit">
 <unit id="org.eclipse.cdt.sdk.feature.group" version="9.4.3.201802261533"/>
 <unit id="org.eclipse.emf.compare.diagram.papyrus.feature.group" version="3.3.2.201709090201"/>
 <unit id="org.eclipse.emf.compare.ide.ui.feature.group" version="3.3.2.201709090201"/>
+<unit id="org.eclipse.emf.ecore.xcore.sdk.feature.group" version="1.5.0.v20170613-0242"/>
 <unit id="org.eclipse.emf.sdk.feature.group" version="2.13.0.v20170609-0928"/>
 <unit id="org.eclipse.epp.logging.aeri.feature.feature.group" version="2.0.7.v20170906-1327"/>
 <unit id="org.eclipse.gmf.runtime.notation.sdk.feature.group" version="1.11.0.201706061354"/>
@@ -33,10 +39,5 @@
 <unit id="org.eclipse.xtext.sdk.feature.group" version="2.12.0.v20170519-1412"/>
 <repository location="http://download.eclipse.org/releases/oxygen/"/>
 </location>
-<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="true" type="InstallableUnit">
-<unit id="org.eclipse.pde.source.feature.group" version="3.13.2.v20171130-0510"/>
-<unit id="org.eclipse.platform.sdk" version="4.7.2.M20171130-0510"/>
-<repository location="http://download.eclipse.org/eclipse/updates/4.7"/>
-</location>
 </locations>
 </target>

+ 12 - 44
releng/org.yakindu.sct.releng/pom.xml

@@ -185,51 +185,7 @@
 			</plugins>
 		</pluginManagement>
 	</build>
-
-	<pluginRepositories>
-		<!-- Fornax Workflow Runner plugin -->
-		<pluginRepository>
-			<id>fornax</id>
-			<url>http://www.fornax-platform.org/m2/repository</url>
-			<releases>
-				<enabled>true</enabled>
-			</releases>
-			<snapshots>
-				<enabled>false</enabled>
-			</snapshots>
-		</pluginRepository>
-	</pluginRepositories>
-
 	<profiles>
-		<profile>
-			<id>Luna.target</id>
-			<activation>
-				<activeByDefault>false</activeByDefault>
-			</activation>
-			<properties>
-				<xtext-version>2.8.4</xtext-version>
-			</properties>
-			<build>
-				<plugins>
-					<plugin>
-						<groupId>org.eclipse.tycho</groupId>
-						<artifactId>target-platform-configuration</artifactId>
-						<version>${tycho-version}</version>
-						<configuration>
-							<includePackedArtifacts>true</includePackedArtifacts>
-							<target>
-								<artifact>
-									<groupId>org.yakindu.base</groupId>
-									<artifactId>org.yakindu.base.target</artifactId>
-									<version>3.3.2-SNAPSHOT</version>
-									<classifier>Luna</classifier>
-								</artifact>
-							</target>
-						</configuration>
-					</plugin>
-				</plugins>
-			</build>
-		</profile>
 		<profile>
 			<id>Mars.target</id>
 			<activation>
@@ -237,6 +193,9 @@
 			</activation>
 			<properties>
 				<xtext-version>2.9.1</xtext-version>
+				<ecore-xtext-version>1.2.0</ecore-xtext-version>
+       			<ecore-xcore-version>1.3.1</ecore-xcore-version>
+				<ecore-xcore-lib-version>1.1.100</ecore-xcore-lib-version>
 			</properties>
 			<build>
 				<plugins>
@@ -245,13 +204,16 @@
 						<artifactId>target-platform-configuration</artifactId>
 						<version>${tycho-version}</version>
 						<configuration>
+						
 							<includePackedArtifacts>true</includePackedArtifacts>
+							<pomDependencies>consider</pomDependencies>
 							<target>
 								<artifact>
 									<groupId>org.yakindu.base</groupId>
 									<artifactId>org.yakindu.base.target</artifactId>
 									<version>3.3.2-SNAPSHOT</version>
 									<classifier>Mars</classifier>
+									<target></target>
 								</artifact>
 							</target>
 						</configuration>
@@ -266,6 +228,9 @@
 			</activation>
 			<properties>
 				<xtext-version>2.10.0</xtext-version>
+				<ecore-xtext-version>1.2.0</ecore-xtext-version>
+       			<ecore-xcore-version>1.3.1</ecore-xcore-version>
+				<ecore-xcore-lib-version>1.1.100</ecore-xcore-lib-version>
 			</properties>
 			<build>
 				<plugins>
@@ -295,6 +260,9 @@
 			</activation>
 			<properties>
 				<xtext-version>2.12.0</xtext-version>
+				<ecore-xtext-version>1.2.0</ecore-xtext-version>
+       			<ecore-xcore-version>1.3.1</ecore-xcore-version>
+				<ecore-xcore-lib-version>1.1.100</ecore-xcore-lib-version>
 			</properties>
 			<build>
 				<plugins>