|
@@ -14,7 +14,6 @@ import org.eclipse.emf.ecore.impl.EPackageImpl;
|
|
|
import org.yakindu.sct.model.sexec.Call;
|
|
|
import org.yakindu.sct.model.sexec.Check;
|
|
|
import org.yakindu.sct.model.sexec.CheckRef;
|
|
|
-import org.yakindu.sct.model.sexec.Cycle;
|
|
|
import org.yakindu.sct.model.sexec.EnterState;
|
|
|
import org.yakindu.sct.model.sexec.Execution;
|
|
|
import org.yakindu.sct.model.sexec.ExecutionFlow;
|
|
@@ -70,13 +69,6 @@ public class SexecPackageImpl extends EPackageImpl implements SexecPackage {
|
|
|
*/
|
|
|
private EClass namedElementEClass = null;
|
|
|
|
|
|
- /**
|
|
|
- * <!-- begin-user-doc -->
|
|
|
- * <!-- end-user-doc -->
|
|
|
- * @generated
|
|
|
- */
|
|
|
- private EClass cycleEClass = null;
|
|
|
-
|
|
|
/**
|
|
|
* <!-- begin-user-doc -->
|
|
|
* <!-- end-user-doc -->
|
|
@@ -269,7 +261,7 @@ public class SexecPackageImpl extends EPackageImpl implements SexecPackage {
|
|
|
* <!-- end-user-doc -->
|
|
|
* @generated
|
|
|
*/
|
|
|
- public EReference getExecutionFlow_Sequences() {
|
|
|
+ public EReference getExecutionFlow_EnterSequence() {
|
|
|
return (EReference)executionFlowEClass.getEStructuralFeatures().get(1);
|
|
|
}
|
|
|
|
|
@@ -278,7 +270,7 @@ public class SexecPackageImpl extends EPackageImpl implements SexecPackage {
|
|
|
* <!-- end-user-doc -->
|
|
|
* @generated
|
|
|
*/
|
|
|
- public EReference getExecutionFlow_EnterSequence() {
|
|
|
+ public EReference getExecutionFlow_StateVector() {
|
|
|
return (EReference)executionFlowEClass.getEStructuralFeatures().get(2);
|
|
|
}
|
|
|
|
|
@@ -287,7 +279,7 @@ public class SexecPackageImpl extends EPackageImpl implements SexecPackage {
|
|
|
* <!-- end-user-doc -->
|
|
|
* @generated
|
|
|
*/
|
|
|
- public EReference getExecutionFlow_StateVector() {
|
|
|
+ public EReference getExecutionFlow_ExitSequence() {
|
|
|
return (EReference)executionFlowEClass.getEStructuralFeatures().get(3);
|
|
|
}
|
|
|
|
|
@@ -309,15 +301,6 @@ public class SexecPackageImpl extends EPackageImpl implements SexecPackage {
|
|
|
return (EAttribute)executionStateEClass.getEStructuralFeatures().get(0);
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * <!-- begin-user-doc -->
|
|
|
- * <!-- end-user-doc -->
|
|
|
- * @generated
|
|
|
- */
|
|
|
- public EReference getExecutionState_Cycle() {
|
|
|
- return (EReference)executionStateEClass.getEStructuralFeatures().get(2);
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* <!-- begin-user-doc -->
|
|
|
* <!-- end-user-doc -->
|
|
@@ -363,6 +346,15 @@ public class SexecPackageImpl extends EPackageImpl implements SexecPackage {
|
|
|
return (EReference)executionStateEClass.getEStructuralFeatures().get(7);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * <!-- begin-user-doc -->
|
|
|
+ * <!-- end-user-doc -->
|
|
|
+ * @generated
|
|
|
+ */
|
|
|
+ public EReference getExecutionState_StateVector() {
|
|
|
+ return (EReference)executionStateEClass.getEStructuralFeatures().get(8);
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* <!-- begin-user-doc -->
|
|
|
* <!-- end-user-doc -->
|
|
@@ -372,6 +364,15 @@ public class SexecPackageImpl extends EPackageImpl implements SexecPackage {
|
|
|
return (EAttribute)executionStateEClass.getEStructuralFeatures().get(1);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * <!-- begin-user-doc -->
|
|
|
+ * <!-- end-user-doc -->
|
|
|
+ * @generated
|
|
|
+ */
|
|
|
+ public EReference getExecutionState_ReactSequence() {
|
|
|
+ return (EReference)executionStateEClass.getEStructuralFeatures().get(2);
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* <!-- begin-user-doc -->
|
|
|
* <!-- end-user-doc -->
|
|
@@ -426,15 +427,6 @@ public class SexecPackageImpl extends EPackageImpl implements SexecPackage {
|
|
|
return (EAttribute)namedElementEClass.getEStructuralFeatures().get(0);
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * <!-- begin-user-doc -->
|
|
|
- * <!-- end-user-doc -->
|
|
|
- * @generated
|
|
|
- */
|
|
|
- public EClass getCycle() {
|
|
|
- return cycleEClass;
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* <!-- begin-user-doc -->
|
|
|
* <!-- end-user-doc -->
|
|
@@ -778,45 +770,44 @@ public class SexecPackageImpl extends EPackageImpl implements SexecPackage {
|
|
|
isCreated = true;
|
|
|
|
|
|
// Create classes and their features
|
|
|
+ namedElementEClass = createEClass(NAMED_ELEMENT);
|
|
|
+ createEAttribute(namedElementEClass, NAMED_ELEMENT__NAME);
|
|
|
+
|
|
|
executionFlowEClass = createEClass(EXECUTION_FLOW);
|
|
|
createEReference(executionFlowEClass, EXECUTION_FLOW__STATES);
|
|
|
- createEReference(executionFlowEClass, EXECUTION_FLOW__SEQUENCES);
|
|
|
createEReference(executionFlowEClass, EXECUTION_FLOW__ENTER_SEQUENCE);
|
|
|
createEReference(executionFlowEClass, EXECUTION_FLOW__STATE_VECTOR);
|
|
|
-
|
|
|
- namedElementEClass = createEClass(NAMED_ELEMENT);
|
|
|
- createEAttribute(namedElementEClass, NAMED_ELEMENT__NAME);
|
|
|
-
|
|
|
- stateVectorEClass = createEClass(STATE_VECTOR);
|
|
|
- createEAttribute(stateVectorEClass, STATE_VECTOR__SIZE);
|
|
|
- createEAttribute(stateVectorEClass, STATE_VECTOR__OFFSET);
|
|
|
-
|
|
|
- timeEventEClass = createEClass(TIME_EVENT);
|
|
|
- createEAttribute(timeEventEClass, TIME_EVENT__PERIODIC);
|
|
|
+ createEReference(executionFlowEClass, EXECUTION_FLOW__EXIT_SEQUENCE);
|
|
|
|
|
|
executionStateEClass = createEClass(EXECUTION_STATE);
|
|
|
createEAttribute(executionStateEClass, EXECUTION_STATE__SIMPLE_NAME);
|
|
|
createEAttribute(executionStateEClass, EXECUTION_STATE__LEAF);
|
|
|
- createEReference(executionStateEClass, EXECUTION_STATE__CYCLE);
|
|
|
+ createEReference(executionStateEClass, EXECUTION_STATE__REACT_SEQUENCE);
|
|
|
createEReference(executionStateEClass, EXECUTION_STATE__REACTIONS);
|
|
|
createEReference(executionStateEClass, EXECUTION_STATE__ENTRY_ACTION);
|
|
|
createEReference(executionStateEClass, EXECUTION_STATE__EXIT_ACTION);
|
|
|
createEReference(executionStateEClass, EXECUTION_STATE__ENTER_SEQUENCE);
|
|
|
createEReference(executionStateEClass, EXECUTION_STATE__EXIT_SEQUENCE);
|
|
|
+ createEReference(executionStateEClass, EXECUTION_STATE__STATE_VECTOR);
|
|
|
|
|
|
reactionEClass = createEClass(REACTION);
|
|
|
createEReference(reactionEClass, REACTION__CHECK);
|
|
|
createEReference(reactionEClass, REACTION__EFFECT);
|
|
|
createEAttribute(reactionEClass, REACTION__TRANSITION);
|
|
|
|
|
|
+ stateVectorEClass = createEClass(STATE_VECTOR);
|
|
|
+ createEAttribute(stateVectorEClass, STATE_VECTOR__SIZE);
|
|
|
+ createEAttribute(stateVectorEClass, STATE_VECTOR__OFFSET);
|
|
|
+
|
|
|
+ timeEventEClass = createEClass(TIME_EVENT);
|
|
|
+ createEAttribute(timeEventEClass, TIME_EVENT__PERIODIC);
|
|
|
+
|
|
|
stepEClass = createEClass(STEP);
|
|
|
createEAttribute(stepEClass, STEP__COMMENT);
|
|
|
|
|
|
sequenceEClass = createEClass(SEQUENCE);
|
|
|
createEReference(sequenceEClass, SEQUENCE__STEPS);
|
|
|
|
|
|
- cycleEClass = createEClass(CYCLE);
|
|
|
-
|
|
|
checkEClass = createEClass(CHECK);
|
|
|
createEReference(checkEClass, CHECK__CONDITION);
|
|
|
|
|
@@ -888,12 +879,11 @@ public class SexecPackageImpl extends EPackageImpl implements SexecPackage {
|
|
|
// Add supertypes to classes
|
|
|
executionFlowEClass.getESuperTypes().add(theSGraphPackage.getScopedElement());
|
|
|
executionFlowEClass.getESuperTypes().add(this.getNamedElement());
|
|
|
- timeEventEClass.getESuperTypes().add(theSGraphPackage.getEvent());
|
|
|
executionStateEClass.getESuperTypes().add(this.getNamedElement());
|
|
|
reactionEClass.getESuperTypes().add(this.getNamedElement());
|
|
|
+ timeEventEClass.getESuperTypes().add(theSGraphPackage.getEvent());
|
|
|
stepEClass.getESuperTypes().add(this.getNamedElement());
|
|
|
sequenceEClass.getESuperTypes().add(this.getStep());
|
|
|
- cycleEClass.getESuperTypes().add(this.getSequence());
|
|
|
checkEClass.getESuperTypes().add(this.getStep());
|
|
|
checkRefEClass.getESuperTypes().add(this.getCheck());
|
|
|
ifEClass.getESuperTypes().add(this.getStep());
|
|
@@ -906,45 +896,44 @@ public class SexecPackageImpl extends EPackageImpl implements SexecPackage {
|
|
|
stateSwitchEClass.getESuperTypes().add(this.getStep());
|
|
|
|
|
|
// Initialize classes and features; add operations and parameters
|
|
|
+ initEClass(namedElementEClass, NamedElement.class, "NamedElement", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
|
|
+ initEAttribute(getNamedElement_Name(), ecorePackage.getEString(), "name", null, 0, 1, NamedElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
|
|
+
|
|
|
initEClass(executionFlowEClass, ExecutionFlow.class, "ExecutionFlow", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
|
|
initEReference(getExecutionFlow_States(), this.getExecutionState(), null, "states", null, 0, -1, ExecutionFlow.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
|
|
- initEReference(getExecutionFlow_Sequences(), this.getSequence(), null, "sequences", null, 0, -1, ExecutionFlow.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
|
|
initEReference(getExecutionFlow_EnterSequence(), this.getSequence(), null, "enterSequence", null, 0, 1, ExecutionFlow.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
|
|
initEReference(getExecutionFlow_StateVector(), this.getStateVector(), null, "stateVector", null, 0, 1, ExecutionFlow.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
|
|
-
|
|
|
- initEClass(namedElementEClass, NamedElement.class, "NamedElement", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
|
|
- initEAttribute(getNamedElement_Name(), ecorePackage.getEString(), "name", null, 0, 1, NamedElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
|
|
-
|
|
|
- initEClass(stateVectorEClass, StateVector.class, "StateVector", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
|
|
- initEAttribute(getStateVector_Size(), ecorePackage.getEInt(), "size", "1", 0, 1, StateVector.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
|
|
- initEAttribute(getStateVector_Offset(), ecorePackage.getEInt(), "offset", "0", 0, 1, StateVector.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
|
|
-
|
|
|
- initEClass(timeEventEClass, TimeEvent.class, "TimeEvent", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
|
|
- initEAttribute(getTimeEvent_Periodic(), ecorePackage.getEBoolean(), "periodic", "false", 0, 1, TimeEvent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
|
|
+ initEReference(getExecutionFlow_ExitSequence(), this.getSequence(), null, "exitSequence", null, 0, 1, ExecutionFlow.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
|
|
|
|
|
initEClass(executionStateEClass, ExecutionState.class, "ExecutionState", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
|
|
initEAttribute(getExecutionState_SimpleName(), ecorePackage.getEString(), "simpleName", null, 0, 1, ExecutionState.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
|
|
initEAttribute(getExecutionState_Leaf(), ecorePackage.getEBoolean(), "leaf", "false", 0, 1, ExecutionState.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
|
|
- initEReference(getExecutionState_Cycle(), this.getCycle(), null, "cycle", null, 0, 1, ExecutionState.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
|
|
+ initEReference(getExecutionState_ReactSequence(), this.getSequence(), null, "reactSequence", null, 0, 1, ExecutionState.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
|
|
initEReference(getExecutionState_Reactions(), this.getReaction(), null, "reactions", null, 0, -1, ExecutionState.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
|
|
initEReference(getExecutionState_EntryAction(), this.getStep(), null, "entryAction", null, 0, 1, ExecutionState.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
|
|
initEReference(getExecutionState_ExitAction(), this.getStep(), null, "exitAction", null, 0, 1, ExecutionState.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
|
|
initEReference(getExecutionState_EnterSequence(), this.getSequence(), null, "enterSequence", null, 0, 1, ExecutionState.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
|
|
initEReference(getExecutionState_ExitSequence(), this.getSequence(), null, "exitSequence", null, 0, 1, ExecutionState.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
|
|
+ initEReference(getExecutionState_StateVector(), this.getStateVector(), null, "stateVector", null, 0, 1, ExecutionState.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
|
|
|
|
|
initEClass(reactionEClass, Reaction.class, "Reaction", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
|
|
initEReference(getReaction_Check(), this.getCheck(), null, "check", null, 0, 1, Reaction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
|
|
initEReference(getReaction_Effect(), this.getStep(), null, "effect", null, 0, 1, Reaction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
|
|
initEAttribute(getReaction_Transition(), ecorePackage.getEBoolean(), "transition", null, 0, 1, Reaction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
|
|
|
|
|
+ initEClass(stateVectorEClass, StateVector.class, "StateVector", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
|
|
+ initEAttribute(getStateVector_Size(), ecorePackage.getEInt(), "size", "1", 0, 1, StateVector.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
|
|
+ initEAttribute(getStateVector_Offset(), ecorePackage.getEInt(), "offset", "0", 0, 1, StateVector.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
|
|
+
|
|
|
+ initEClass(timeEventEClass, TimeEvent.class, "TimeEvent", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
|
|
+ initEAttribute(getTimeEvent_Periodic(), ecorePackage.getEBoolean(), "periodic", "false", 0, 1, TimeEvent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
|
|
+
|
|
|
initEClass(stepEClass, Step.class, "Step", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
|
|
initEAttribute(getStep_Comment(), ecorePackage.getEString(), "comment", null, 0, 1, Step.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
|
|
|
|
|
initEClass(sequenceEClass, Sequence.class, "Sequence", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
|
|
initEReference(getSequence_Steps(), this.getStep(), null, "steps", null, 0, -1, Sequence.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
|
|
|
|
|
- initEClass(cycleEClass, Cycle.class, "Cycle", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
|
|
-
|
|
|
initEClass(checkEClass, Check.class, "Check", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
|
|
initEReference(getCheck_Condition(), theSGraphPackage.getStatement(), null, "condition", null, 0, 1, Check.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
|
|
|