|
@@ -27,6 +27,7 @@ import org.yakindu.sct.model.sgraph.EntryKind;
|
|
|
import org.yakindu.sct.model.sgraph.Event;
|
|
import org.yakindu.sct.model.sgraph.Event;
|
|
|
import org.yakindu.sct.model.sgraph.Exit;
|
|
import org.yakindu.sct.model.sgraph.Exit;
|
|
|
import org.yakindu.sct.model.sgraph.FinalState;
|
|
import org.yakindu.sct.model.sgraph.FinalState;
|
|
|
|
|
+import org.yakindu.sct.model.sgraph.Import;
|
|
|
import org.yakindu.sct.model.sgraph.Pseudostate;
|
|
import org.yakindu.sct.model.sgraph.Pseudostate;
|
|
|
import org.yakindu.sct.model.sgraph.Reaction;
|
|
import org.yakindu.sct.model.sgraph.Reaction;
|
|
|
import org.yakindu.sct.model.sgraph.ReactionProperty;
|
|
import org.yakindu.sct.model.sgraph.ReactionProperty;
|
|
@@ -116,6 +117,13 @@ public class SGraphPackageImpl extends EPackageImpl implements SGraphPackage {
|
|
|
*/
|
|
*/
|
|
|
private EClass compositeElementEClass = null;
|
|
private EClass compositeElementEClass = null;
|
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
|
+ * <!-- begin-user-doc -->
|
|
|
|
|
+ * <!-- end-user-doc -->
|
|
|
|
|
+ * @generated
|
|
|
|
|
+ */
|
|
|
|
|
+ private EClass importEClass = null;
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* <!-- begin-user-doc -->
|
|
* <!-- begin-user-doc -->
|
|
|
* <!-- end-user-doc -->
|
|
* <!-- end-user-doc -->
|
|
@@ -513,6 +521,24 @@ public class SGraphPackageImpl extends EPackageImpl implements SGraphPackage {
|
|
|
return (EReference)compositeElementEClass.getEStructuralFeatures().get(0);
|
|
return (EReference)compositeElementEClass.getEStructuralFeatures().get(0);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
|
+ * <!-- begin-user-doc -->
|
|
|
|
|
+ * <!-- end-user-doc -->
|
|
|
|
|
+ * @generated
|
|
|
|
|
+ */
|
|
|
|
|
+ public EClass getImport() {
|
|
|
|
|
+ return importEClass;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * <!-- begin-user-doc -->
|
|
|
|
|
+ * <!-- end-user-doc -->
|
|
|
|
|
+ * @generated
|
|
|
|
|
+ */
|
|
|
|
|
+ public EAttribute getImport_ImportedNamespace() {
|
|
|
|
|
+ return (EAttribute)importEClass.getEStructuralFeatures().get(0);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* <!-- begin-user-doc -->
|
|
* <!-- begin-user-doc -->
|
|
|
* <!-- end-user-doc -->
|
|
* <!-- end-user-doc -->
|
|
@@ -558,6 +584,15 @@ public class SGraphPackageImpl extends EPackageImpl implements SGraphPackage {
|
|
|
return statechartEClass;
|
|
return statechartEClass;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
|
+ * <!-- begin-user-doc -->
|
|
|
|
|
+ * <!-- end-user-doc -->
|
|
|
|
|
+ * @generated
|
|
|
|
|
+ */
|
|
|
|
|
+ public EReference getStatechart_Imports() {
|
|
|
|
|
+ return (EReference)statechartEClass.getEStructuralFeatures().get(0);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* <!-- begin-user-doc -->
|
|
* <!-- begin-user-doc -->
|
|
|
* <!-- end-user-doc -->
|
|
* <!-- end-user-doc -->
|
|
@@ -845,6 +880,7 @@ public class SGraphPackageImpl extends EPackageImpl implements SGraphPackage {
|
|
|
createEAttribute(choiceEClass, CHOICE__KIND);
|
|
createEAttribute(choiceEClass, CHOICE__KIND);
|
|
|
|
|
|
|
|
statechartEClass = createEClass(STATECHART);
|
|
statechartEClass = createEClass(STATECHART);
|
|
|
|
|
+ createEReference(statechartEClass, STATECHART__IMPORTS);
|
|
|
|
|
|
|
|
entryEClass = createEClass(ENTRY);
|
|
entryEClass = createEClass(ENTRY);
|
|
|
createEAttribute(entryEClass, ENTRY__KIND);
|
|
createEAttribute(entryEClass, ENTRY__KIND);
|
|
@@ -896,6 +932,9 @@ public class SGraphPackageImpl extends EPackageImpl implements SGraphPackage {
|
|
|
compositeElementEClass = createEClass(COMPOSITE_ELEMENT);
|
|
compositeElementEClass = createEClass(COMPOSITE_ELEMENT);
|
|
|
createEReference(compositeElementEClass, COMPOSITE_ELEMENT__REGIONS);
|
|
createEReference(compositeElementEClass, COMPOSITE_ELEMENT__REGIONS);
|
|
|
|
|
|
|
|
|
|
+ importEClass = createEClass(IMPORT);
|
|
|
|
|
+ createEAttribute(importEClass, IMPORT__IMPORTED_NAMESPACE);
|
|
|
|
|
+
|
|
|
// Create enums
|
|
// Create enums
|
|
|
entryKindEEnum = createEEnum(ENTRY_KIND);
|
|
entryKindEEnum = createEEnum(ENTRY_KIND);
|
|
|
choiceKindEEnum = createEEnum(CHOICE_KIND);
|
|
choiceKindEEnum = createEEnum(CHOICE_KIND);
|
|
@@ -986,6 +1025,7 @@ public class SGraphPackageImpl extends EPackageImpl implements SGraphPackage {
|
|
|
initEAttribute(getChoice_Kind(), this.getChoiceKind(), "kind", null, 0, 1, Choice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
|
initEAttribute(getChoice_Kind(), this.getChoiceKind(), "kind", null, 0, 1, Choice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
|
|
|
|
|
|
|
initEClass(statechartEClass, Statechart.class, "Statechart", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
|
initEClass(statechartEClass, Statechart.class, "Statechart", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
|
|
|
|
+ initEReference(getStatechart_Imports(), this.getImport(), null, "imports", null, 0, -1, Statechart.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
|
|
|
|
|
|
|
initEClass(entryEClass, Entry.class, "Entry", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
|
initEClass(entryEClass, Entry.class, "Entry", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
|
|
initEAttribute(getEntry_Kind(), this.getEntryKind(), "kind", null, 0, 1, Entry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
|
initEAttribute(getEntry_Kind(), this.getEntryKind(), "kind", null, 0, 1, Entry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
|
@@ -1037,6 +1077,9 @@ public class SGraphPackageImpl extends EPackageImpl implements SGraphPackage {
|
|
|
initEClass(compositeElementEClass, CompositeElement.class, "CompositeElement", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
|
initEClass(compositeElementEClass, CompositeElement.class, "CompositeElement", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
|
|
initEReference(getCompositeElement_Regions(), this.getRegion(), this.getRegion_Composite(), "regions", null, 0, -1, CompositeElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
|
initEReference(getCompositeElement_Regions(), this.getRegion(), this.getRegion_Composite(), "regions", null, 0, -1, CompositeElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
|
|
|
|
|
|
|
|
|
+ initEClass(importEClass, Import.class, "Import", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
|
|
|
|
+ initEAttribute(getImport_ImportedNamespace(), ecorePackage.getEString(), "importedNamespace", null, 0, 1, Import.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
|
|
|
|
+
|
|
|
// Initialize enums and add enum literals
|
|
// Initialize enums and add enum literals
|
|
|
initEEnum(entryKindEEnum, EntryKind.class, "EntryKind");
|
|
initEEnum(entryKindEEnum, EntryKind.class, "EntryKind");
|
|
|
addEEnumLiteral(entryKindEEnum, EntryKind.INITIAL);
|
|
addEEnumLiteral(entryKindEEnum, EntryKind.INITIAL);
|