|
|
@@ -12,7 +12,6 @@ import org.eclipse.emf.ecore.EcorePackage;
|
|
|
|
|
|
import org.eclipse.emf.ecore.impl.EPackageImpl;
|
|
|
|
|
|
-import ua.ansymo.hintco.Adaptable;
|
|
|
import ua.ansymo.hintco.Adaptation;
|
|
|
import ua.ansymo.hintco.Alternative;
|
|
|
import ua.ansymo.hintco.ApproximationAdaptation;
|
|
|
@@ -21,7 +20,8 @@ import ua.ansymo.hintco.Candidates;
|
|
|
import ua.ansymo.hintco.CombineAdaptation;
|
|
|
import ua.ansymo.hintco.CosimUnitDeclaration;
|
|
|
import ua.ansymo.hintco.CosimUnitInstance;
|
|
|
-import ua.ansymo.hintco.DecompositionAdaptation;
|
|
|
+import ua.ansymo.hintco.DecompositionPortAdaptation;
|
|
|
+import ua.ansymo.hintco.DecompositionUnitAdaptation;
|
|
|
import ua.ansymo.hintco.ExtrapolationAdaptation;
|
|
|
import ua.ansymo.hintco.HierarchicalCosimUnitDeclaration;
|
|
|
import ua.ansymo.hintco.HintcoFactory;
|
|
|
@@ -33,11 +33,14 @@ import ua.ansymo.hintco.InterpolationAdaptation;
|
|
|
import ua.ansymo.hintco.MultiRateAdaptation;
|
|
|
import ua.ansymo.hintco.OutputPortDeclaration;
|
|
|
import ua.ansymo.hintco.OutputPortInstance;
|
|
|
+import ua.ansymo.hintco.PortAdaptation;
|
|
|
import ua.ansymo.hintco.PortDeclaration;
|
|
|
import ua.ansymo.hintco.PortInstance;
|
|
|
import ua.ansymo.hintco.PrecendenceNode;
|
|
|
+import ua.ansymo.hintco.UnitAdaptation;
|
|
|
import ua.ansymo.hintco.VariantDiagram;
|
|
|
-import ua.ansymo.hintco.XorAdaptation;
|
|
|
+import ua.ansymo.hintco.XorPortAdaptation;
|
|
|
+import ua.ansymo.hintco.XorUnitAdaptation;
|
|
|
|
|
|
/**
|
|
|
* <!-- begin-user-doc -->
|
|
|
@@ -95,13 +98,6 @@ public class HintcoPackageImpl extends EPackageImpl implements HintcoPackage {
|
|
|
*/
|
|
|
private EClass hierarchicalCosimUnitDeclarationEClass = null;
|
|
|
|
|
|
- /**
|
|
|
- * <!-- begin-user-doc -->
|
|
|
- * <!-- end-user-doc -->
|
|
|
- * @generated
|
|
|
- */
|
|
|
- private EClass adaptableEClass = null;
|
|
|
-
|
|
|
/**
|
|
|
* <!-- begin-user-doc -->
|
|
|
* <!-- end-user-doc -->
|
|
|
@@ -170,14 +166,42 @@ public class HintcoPackageImpl extends EPackageImpl implements HintcoPackage {
|
|
|
* <!-- end-user-doc -->
|
|
|
* @generated
|
|
|
*/
|
|
|
- private EClass decompositionAdaptationEClass = null;
|
|
|
+ private EClass portAdaptationEClass = null;
|
|
|
|
|
|
/**
|
|
|
* <!-- begin-user-doc -->
|
|
|
* <!-- end-user-doc -->
|
|
|
* @generated
|
|
|
*/
|
|
|
- private EClass xorAdaptationEClass = null;
|
|
|
+ private EClass decompositionPortAdaptationEClass = null;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * <!-- begin-user-doc -->
|
|
|
+ * <!-- end-user-doc -->
|
|
|
+ * @generated
|
|
|
+ */
|
|
|
+ private EClass unitAdaptationEClass = null;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * <!-- begin-user-doc -->
|
|
|
+ * <!-- end-user-doc -->
|
|
|
+ * @generated
|
|
|
+ */
|
|
|
+ private EClass decompositionUnitAdaptationEClass = null;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * <!-- begin-user-doc -->
|
|
|
+ * <!-- end-user-doc -->
|
|
|
+ * @generated
|
|
|
+ */
|
|
|
+ private EClass xorUnitAdaptationEClass = null;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * <!-- begin-user-doc -->
|
|
|
+ * <!-- end-user-doc -->
|
|
|
+ * @generated
|
|
|
+ */
|
|
|
+ private EClass xorPortAdaptationEClass = null;
|
|
|
|
|
|
/**
|
|
|
* <!-- begin-user-doc -->
|
|
|
@@ -542,17 +566,8 @@ public class HintcoPackageImpl extends EPackageImpl implements HintcoPackage {
|
|
|
* <!-- end-user-doc -->
|
|
|
* @generated
|
|
|
*/
|
|
|
- public EClass getAdaptable() {
|
|
|
- return adaptableEClass;
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * <!-- begin-user-doc -->
|
|
|
- * <!-- end-user-doc -->
|
|
|
- * @generated
|
|
|
- */
|
|
|
- public EReference getAdaptable_Adaptation() {
|
|
|
- return (EReference)adaptableEClass.getEStructuralFeatures().get(0);
|
|
|
+ public EClass getCosimUnitInstance() {
|
|
|
+ return cosimUnitInstanceEClass;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -560,8 +575,8 @@ public class HintcoPackageImpl extends EPackageImpl implements HintcoPackage {
|
|
|
* <!-- end-user-doc -->
|
|
|
* @generated
|
|
|
*/
|
|
|
- public EOperation getAdaptable__SelectedAdaptations() {
|
|
|
- return adaptableEClass.getEOperations().get(0);
|
|
|
+ public EReference getCosimUnitInstance_Adaptation() {
|
|
|
+ return (EReference)cosimUnitInstanceEClass.getEStructuralFeatures().get(0);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -569,8 +584,8 @@ public class HintcoPackageImpl extends EPackageImpl implements HintcoPackage {
|
|
|
* <!-- end-user-doc -->
|
|
|
* @generated
|
|
|
*/
|
|
|
- public EClass getCosimUnitInstance() {
|
|
|
- return cosimUnitInstanceEClass;
|
|
|
+ public EReference getCosimUnitInstance_Declaration() {
|
|
|
+ return (EReference)cosimUnitInstanceEClass.getEStructuralFeatures().get(1);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -578,8 +593,8 @@ public class HintcoPackageImpl extends EPackageImpl implements HintcoPackage {
|
|
|
* <!-- end-user-doc -->
|
|
|
* @generated
|
|
|
*/
|
|
|
- public EReference getCosimUnitInstance_Declaration() {
|
|
|
- return (EReference)cosimUnitInstanceEClass.getEStructuralFeatures().get(0);
|
|
|
+ public EReference getCosimUnitInstance_Ports() {
|
|
|
+ return (EReference)cosimUnitInstanceEClass.getEStructuralFeatures().get(2);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -587,8 +602,8 @@ public class HintcoPackageImpl extends EPackageImpl implements HintcoPackage {
|
|
|
* <!-- end-user-doc -->
|
|
|
* @generated
|
|
|
*/
|
|
|
- public EReference getCosimUnitInstance_Ports() {
|
|
|
- return (EReference)cosimUnitInstanceEClass.getEStructuralFeatures().get(1);
|
|
|
+ public EOperation getCosimUnitInstance__SelectedAdaptations() {
|
|
|
+ return cosimUnitInstanceEClass.getEOperations().get(0);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -636,6 +651,24 @@ public class HintcoPackageImpl extends EPackageImpl implements HintcoPackage {
|
|
|
return (EReference)portInstanceEClass.getEStructuralFeatures().get(0);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * <!-- begin-user-doc -->
|
|
|
+ * <!-- end-user-doc -->
|
|
|
+ * @generated
|
|
|
+ */
|
|
|
+ public EReference getPortInstance_Adaptation() {
|
|
|
+ return (EReference)portInstanceEClass.getEStructuralFeatures().get(1);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * <!-- begin-user-doc -->
|
|
|
+ * <!-- end-user-doc -->
|
|
|
+ * @generated
|
|
|
+ */
|
|
|
+ public EOperation getPortInstance__SelectedAdaptations() {
|
|
|
+ return portInstanceEClass.getEOperations().get(0);
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* <!-- begin-user-doc -->
|
|
|
* <!-- end-user-doc -->
|
|
|
@@ -740,8 +773,80 @@ public class HintcoPackageImpl extends EPackageImpl implements HintcoPackage {
|
|
|
* <!-- end-user-doc -->
|
|
|
* @generated
|
|
|
*/
|
|
|
- public EReference getAdaptation_Parent() {
|
|
|
- return (EReference)adaptationEClass.getEStructuralFeatures().get(0);
|
|
|
+ public EClass getPortAdaptation() {
|
|
|
+ return portAdaptationEClass;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * <!-- begin-user-doc -->
|
|
|
+ * <!-- end-user-doc -->
|
|
|
+ * @generated
|
|
|
+ */
|
|
|
+ public EReference getPortAdaptation_Port() {
|
|
|
+ return (EReference)portAdaptationEClass.getEStructuralFeatures().get(0);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * <!-- begin-user-doc -->
|
|
|
+ * <!-- end-user-doc -->
|
|
|
+ * @generated
|
|
|
+ */
|
|
|
+ public EReference getPortAdaptation_Parent() {
|
|
|
+ return (EReference)portAdaptationEClass.getEStructuralFeatures().get(1);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * <!-- begin-user-doc -->
|
|
|
+ * <!-- end-user-doc -->
|
|
|
+ * @generated
|
|
|
+ */
|
|
|
+ public EOperation getPortAdaptation__Adapted() {
|
|
|
+ return portAdaptationEClass.getEOperations().get(0);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * <!-- begin-user-doc -->
|
|
|
+ * <!-- end-user-doc -->
|
|
|
+ * @generated
|
|
|
+ */
|
|
|
+ public EClass getDecompositionPortAdaptation() {
|
|
|
+ return decompositionPortAdaptationEClass;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * <!-- begin-user-doc -->
|
|
|
+ * <!-- end-user-doc -->
|
|
|
+ * @generated
|
|
|
+ */
|
|
|
+ public EReference getDecompositionPortAdaptation_Children() {
|
|
|
+ return (EReference)decompositionPortAdaptationEClass.getEStructuralFeatures().get(0);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * <!-- begin-user-doc -->
|
|
|
+ * <!-- end-user-doc -->
|
|
|
+ * @generated
|
|
|
+ */
|
|
|
+ public EAttribute getDecompositionPortAdaptation_Name() {
|
|
|
+ return (EAttribute)decompositionPortAdaptationEClass.getEStructuralFeatures().get(1);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * <!-- begin-user-doc -->
|
|
|
+ * <!-- end-user-doc -->
|
|
|
+ * @generated
|
|
|
+ */
|
|
|
+ public EOperation getDecompositionPortAdaptation__SelectedAdaptations() {
|
|
|
+ return decompositionPortAdaptationEClass.getEOperations().get(0);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * <!-- begin-user-doc -->
|
|
|
+ * <!-- end-user-doc -->
|
|
|
+ * @generated
|
|
|
+ */
|
|
|
+ public EClass getUnitAdaptation() {
|
|
|
+ return unitAdaptationEClass;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -749,8 +854,8 @@ public class HintcoPackageImpl extends EPackageImpl implements HintcoPackage {
|
|
|
* <!-- end-user-doc -->
|
|
|
* @generated
|
|
|
*/
|
|
|
- public EReference getAdaptation_Adaptable() {
|
|
|
- return (EReference)adaptationEClass.getEStructuralFeatures().get(1);
|
|
|
+ public EReference getUnitAdaptation_Unit() {
|
|
|
+ return (EReference)unitAdaptationEClass.getEStructuralFeatures().get(0);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -758,8 +863,8 @@ public class HintcoPackageImpl extends EPackageImpl implements HintcoPackage {
|
|
|
* <!-- end-user-doc -->
|
|
|
* @generated
|
|
|
*/
|
|
|
- public EOperation getAdaptation__Adapted() {
|
|
|
- return adaptationEClass.getEOperations().get(0);
|
|
|
+ public EReference getUnitAdaptation_Parent() {
|
|
|
+ return (EReference)unitAdaptationEClass.getEStructuralFeatures().get(1);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -767,8 +872,8 @@ public class HintcoPackageImpl extends EPackageImpl implements HintcoPackage {
|
|
|
* <!-- end-user-doc -->
|
|
|
* @generated
|
|
|
*/
|
|
|
- public EClass getDecompositionAdaptation() {
|
|
|
- return decompositionAdaptationEClass;
|
|
|
+ public EOperation getUnitAdaptation__Adapted() {
|
|
|
+ return unitAdaptationEClass.getEOperations().get(0);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -776,8 +881,8 @@ public class HintcoPackageImpl extends EPackageImpl implements HintcoPackage {
|
|
|
* <!-- end-user-doc -->
|
|
|
* @generated
|
|
|
*/
|
|
|
- public EReference getDecompositionAdaptation_Children() {
|
|
|
- return (EReference)decompositionAdaptationEClass.getEStructuralFeatures().get(0);
|
|
|
+ public EClass getDecompositionUnitAdaptation() {
|
|
|
+ return decompositionUnitAdaptationEClass;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -785,8 +890,8 @@ public class HintcoPackageImpl extends EPackageImpl implements HintcoPackage {
|
|
|
* <!-- end-user-doc -->
|
|
|
* @generated
|
|
|
*/
|
|
|
- public EAttribute getDecompositionAdaptation_Name() {
|
|
|
- return (EAttribute)decompositionAdaptationEClass.getEStructuralFeatures().get(1);
|
|
|
+ public EReference getDecompositionUnitAdaptation_Children() {
|
|
|
+ return (EReference)decompositionUnitAdaptationEClass.getEStructuralFeatures().get(0);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -794,8 +899,8 @@ public class HintcoPackageImpl extends EPackageImpl implements HintcoPackage {
|
|
|
* <!-- end-user-doc -->
|
|
|
* @generated
|
|
|
*/
|
|
|
- public EOperation getDecompositionAdaptation__SelectedAdaptations() {
|
|
|
- return decompositionAdaptationEClass.getEOperations().get(0);
|
|
|
+ public EAttribute getDecompositionUnitAdaptation_Name() {
|
|
|
+ return (EAttribute)decompositionUnitAdaptationEClass.getEStructuralFeatures().get(1);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -803,8 +908,26 @@ public class HintcoPackageImpl extends EPackageImpl implements HintcoPackage {
|
|
|
* <!-- end-user-doc -->
|
|
|
* @generated
|
|
|
*/
|
|
|
- public EClass getXorAdaptation() {
|
|
|
- return xorAdaptationEClass;
|
|
|
+ public EOperation getDecompositionUnitAdaptation__SelectedAdaptations() {
|
|
|
+ return decompositionUnitAdaptationEClass.getEOperations().get(0);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * <!-- begin-user-doc -->
|
|
|
+ * <!-- end-user-doc -->
|
|
|
+ * @generated
|
|
|
+ */
|
|
|
+ public EClass getXorUnitAdaptation() {
|
|
|
+ return xorUnitAdaptationEClass;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * <!-- begin-user-doc -->
|
|
|
+ * <!-- end-user-doc -->
|
|
|
+ * @generated
|
|
|
+ */
|
|
|
+ public EClass getXorPortAdaptation() {
|
|
|
+ return xorPortAdaptationEClass;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -969,13 +1092,11 @@ public class HintcoPackageImpl extends EPackageImpl implements HintcoPackage {
|
|
|
hierarchicalCosimUnitDeclarationEClass = createEClass(HIERARCHICAL_COSIM_UNIT_DECLARATION);
|
|
|
createEReference(hierarchicalCosimUnitDeclarationEClass, HIERARCHICAL_COSIM_UNIT_DECLARATION__CHILDREN);
|
|
|
|
|
|
- adaptableEClass = createEClass(ADAPTABLE);
|
|
|
- createEReference(adaptableEClass, ADAPTABLE__ADAPTATION);
|
|
|
- createEOperation(adaptableEClass, ADAPTABLE___SELECTED_ADAPTATIONS);
|
|
|
-
|
|
|
cosimUnitInstanceEClass = createEClass(COSIM_UNIT_INSTANCE);
|
|
|
+ createEReference(cosimUnitInstanceEClass, COSIM_UNIT_INSTANCE__ADAPTATION);
|
|
|
createEReference(cosimUnitInstanceEClass, COSIM_UNIT_INSTANCE__DECLARATION);
|
|
|
createEReference(cosimUnitInstanceEClass, COSIM_UNIT_INSTANCE__PORTS);
|
|
|
+ createEOperation(cosimUnitInstanceEClass, COSIM_UNIT_INSTANCE___SELECTED_ADAPTATIONS);
|
|
|
|
|
|
portDeclarationEClass = createEClass(PORT_DECLARATION);
|
|
|
|
|
|
@@ -985,6 +1106,8 @@ public class HintcoPackageImpl extends EPackageImpl implements HintcoPackage {
|
|
|
|
|
|
portInstanceEClass = createEClass(PORT_INSTANCE);
|
|
|
createEReference(portInstanceEClass, PORT_INSTANCE__UNIT);
|
|
|
+ createEReference(portInstanceEClass, PORT_INSTANCE__ADAPTATION);
|
|
|
+ createEOperation(portInstanceEClass, PORT_INSTANCE___SELECTED_ADAPTATIONS);
|
|
|
|
|
|
inputPortInstanceEClass = createEClass(INPUT_PORT_INSTANCE);
|
|
|
createEReference(inputPortInstanceEClass, INPUT_PORT_INSTANCE__DECLARATION);
|
|
|
@@ -1000,16 +1123,30 @@ public class HintcoPackageImpl extends EPackageImpl implements HintcoPackage {
|
|
|
createEReference(alternativeEClass, ALTERNATIVE__IMPLIES);
|
|
|
|
|
|
adaptationEClass = createEClass(ADAPTATION);
|
|
|
- createEReference(adaptationEClass, ADAPTATION__PARENT);
|
|
|
- createEReference(adaptationEClass, ADAPTATION__ADAPTABLE);
|
|
|
- createEOperation(adaptationEClass, ADAPTATION___ADAPTED);
|
|
|
|
|
|
- decompositionAdaptationEClass = createEClass(DECOMPOSITION_ADAPTATION);
|
|
|
- createEReference(decompositionAdaptationEClass, DECOMPOSITION_ADAPTATION__CHILDREN);
|
|
|
- createEAttribute(decompositionAdaptationEClass, DECOMPOSITION_ADAPTATION__NAME);
|
|
|
- createEOperation(decompositionAdaptationEClass, DECOMPOSITION_ADAPTATION___SELECTED_ADAPTATIONS);
|
|
|
+ portAdaptationEClass = createEClass(PORT_ADAPTATION);
|
|
|
+ createEReference(portAdaptationEClass, PORT_ADAPTATION__PORT);
|
|
|
+ createEReference(portAdaptationEClass, PORT_ADAPTATION__PARENT);
|
|
|
+ createEOperation(portAdaptationEClass, PORT_ADAPTATION___ADAPTED);
|
|
|
+
|
|
|
+ decompositionPortAdaptationEClass = createEClass(DECOMPOSITION_PORT_ADAPTATION);
|
|
|
+ createEReference(decompositionPortAdaptationEClass, DECOMPOSITION_PORT_ADAPTATION__CHILDREN);
|
|
|
+ createEAttribute(decompositionPortAdaptationEClass, DECOMPOSITION_PORT_ADAPTATION__NAME);
|
|
|
+ createEOperation(decompositionPortAdaptationEClass, DECOMPOSITION_PORT_ADAPTATION___SELECTED_ADAPTATIONS);
|
|
|
|
|
|
- xorAdaptationEClass = createEClass(XOR_ADAPTATION);
|
|
|
+ unitAdaptationEClass = createEClass(UNIT_ADAPTATION);
|
|
|
+ createEReference(unitAdaptationEClass, UNIT_ADAPTATION__UNIT);
|
|
|
+ createEReference(unitAdaptationEClass, UNIT_ADAPTATION__PARENT);
|
|
|
+ createEOperation(unitAdaptationEClass, UNIT_ADAPTATION___ADAPTED);
|
|
|
+
|
|
|
+ decompositionUnitAdaptationEClass = createEClass(DECOMPOSITION_UNIT_ADAPTATION);
|
|
|
+ createEReference(decompositionUnitAdaptationEClass, DECOMPOSITION_UNIT_ADAPTATION__CHILDREN);
|
|
|
+ createEAttribute(decompositionUnitAdaptationEClass, DECOMPOSITION_UNIT_ADAPTATION__NAME);
|
|
|
+ createEOperation(decompositionUnitAdaptationEClass, DECOMPOSITION_UNIT_ADAPTATION___SELECTED_ADAPTATIONS);
|
|
|
+
|
|
|
+ xorUnitAdaptationEClass = createEClass(XOR_UNIT_ADAPTATION);
|
|
|
+
|
|
|
+ xorPortAdaptationEClass = createEClass(XOR_PORT_ADAPTATION);
|
|
|
|
|
|
combineAdaptationEClass = createEClass(COMBINE_ADAPTATION);
|
|
|
|
|
|
@@ -1068,21 +1205,23 @@ public class HintcoPackageImpl extends EPackageImpl implements HintcoPackage {
|
|
|
hierarchicalCosimUnitDeclarationEClass.getESuperTypes().add(this.getCosimUnitDeclaration());
|
|
|
cosimUnitInstanceEClass.getESuperTypes().add(this.getIDed());
|
|
|
cosimUnitInstanceEClass.getESuperTypes().add(this.getPrecendenceNode());
|
|
|
- cosimUnitInstanceEClass.getESuperTypes().add(this.getAdaptable());
|
|
|
portDeclarationEClass.getESuperTypes().add(this.getIDed());
|
|
|
inputPortDeclarationEClass.getESuperTypes().add(this.getPortDeclaration());
|
|
|
outputPortDeclarationEClass.getESuperTypes().add(this.getPortDeclaration());
|
|
|
portInstanceEClass.getESuperTypes().add(this.getPrecendenceNode());
|
|
|
portInstanceEClass.getESuperTypes().add(this.getIDed());
|
|
|
- portInstanceEClass.getESuperTypes().add(this.getAdaptable());
|
|
|
inputPortInstanceEClass.getESuperTypes().add(this.getPortInstance());
|
|
|
outputPortInstanceEClass.getESuperTypes().add(this.getPortInstance());
|
|
|
adaptationEClass.getESuperTypes().add(this.getAlternative());
|
|
|
- decompositionAdaptationEClass.getESuperTypes().add(this.getAdaptation());
|
|
|
- xorAdaptationEClass.getESuperTypes().add(this.getDecompositionAdaptation());
|
|
|
- combineAdaptationEClass.getESuperTypes().add(this.getDecompositionAdaptation());
|
|
|
- approximationAdaptationEClass.getESuperTypes().add(this.getAdaptation());
|
|
|
- multiRateAdaptationEClass.getESuperTypes().add(this.getAdaptation());
|
|
|
+ portAdaptationEClass.getESuperTypes().add(this.getAdaptation());
|
|
|
+ decompositionPortAdaptationEClass.getESuperTypes().add(this.getPortAdaptation());
|
|
|
+ unitAdaptationEClass.getESuperTypes().add(this.getAdaptation());
|
|
|
+ decompositionUnitAdaptationEClass.getESuperTypes().add(this.getUnitAdaptation());
|
|
|
+ xorUnitAdaptationEClass.getESuperTypes().add(this.getDecompositionUnitAdaptation());
|
|
|
+ xorPortAdaptationEClass.getESuperTypes().add(this.getDecompositionPortAdaptation());
|
|
|
+ combineAdaptationEClass.getESuperTypes().add(this.getDecompositionUnitAdaptation());
|
|
|
+ approximationAdaptationEClass.getESuperTypes().add(this.getPortAdaptation());
|
|
|
+ multiRateAdaptationEClass.getESuperTypes().add(this.getUnitAdaptation());
|
|
|
extrapolationAdaptationEClass.getESuperTypes().add(this.getApproximationAdaptation());
|
|
|
interpolationAdaptationEClass.getESuperTypes().add(this.getApproximationAdaptation());
|
|
|
|
|
|
@@ -1122,15 +1261,13 @@ public class HintcoPackageImpl extends EPackageImpl implements HintcoPackage {
|
|
|
initEClass(hierarchicalCosimUnitDeclarationEClass, HierarchicalCosimUnitDeclaration.class, "HierarchicalCosimUnitDeclaration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
|
|
initEReference(getHierarchicalCosimUnitDeclaration_Children(), this.getCosimUnitInstance(), null, "children", null, 0, -1, HierarchicalCosimUnitDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
|
|
|
|
|
- initEClass(adaptableEClass, Adaptable.class, "Adaptable", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
|
|
- initEReference(getAdaptable_Adaptation(), this.getAdaptation(), this.getAdaptation_Adaptable(), "adaptation", null, 0, 1, Adaptable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
|
|
-
|
|
|
- initEOperation(getAdaptable__SelectedAdaptations(), this.getAdaptation(), "selectedAdaptations", 0, -1, !IS_UNIQUE, IS_ORDERED);
|
|
|
-
|
|
|
initEClass(cosimUnitInstanceEClass, CosimUnitInstance.class, "CosimUnitInstance", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
|
|
+ initEReference(getCosimUnitInstance_Adaptation(), this.getUnitAdaptation(), this.getUnitAdaptation_Unit(), "adaptation", null, 0, 1, CosimUnitInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
|
|
initEReference(getCosimUnitInstance_Declaration(), this.getCosimUnitDeclaration(), null, "declaration", null, 1, 1, CosimUnitInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
|
|
initEReference(getCosimUnitInstance_Ports(), this.getPortInstance(), this.getPortInstance_Unit(), "ports", null, 0, -1, CosimUnitInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
|
|
|
|
|
+ initEOperation(getCosimUnitInstance__SelectedAdaptations(), this.getUnitAdaptation(), "selectedAdaptations", 0, -1, !IS_UNIQUE, IS_ORDERED);
|
|
|
+
|
|
|
initEClass(portDeclarationEClass, PortDeclaration.class, "PortDeclaration", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
|
|
|
|
|
initEClass(inputPortDeclarationEClass, InputPortDeclaration.class, "InputPortDeclaration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
|
|
@@ -1139,6 +1276,9 @@ public class HintcoPackageImpl extends EPackageImpl implements HintcoPackage {
|
|
|
|
|
|
initEClass(portInstanceEClass, PortInstance.class, "PortInstance", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
|
|
initEReference(getPortInstance_Unit(), this.getCosimUnitInstance(), this.getCosimUnitInstance_Ports(), "unit", null, 0, 1, PortInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
|
|
+ initEReference(getPortInstance_Adaptation(), this.getPortAdaptation(), this.getPortAdaptation_Port(), "adaptation", null, 0, 1, PortInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
|
|
+
|
|
|
+ initEOperation(getPortInstance__SelectedAdaptations(), this.getPortAdaptation(), "selectedAdaptations", 0, -1, !IS_UNIQUE, IS_ORDERED);
|
|
|
|
|
|
initEClass(inputPortInstanceEClass, InputPortInstance.class, "InputPortInstance", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
|
|
initEReference(getInputPortInstance_Declaration(), this.getInputPortDeclaration(), null, "declaration", null, 0, 1, InputPortInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
|
|
@@ -1154,18 +1294,34 @@ public class HintcoPackageImpl extends EPackageImpl implements HintcoPackage {
|
|
|
initEReference(getAlternative_Implies(), this.getAlternative(), null, "implies", null, 0, -1, Alternative.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
|
|
|
|
|
initEClass(adaptationEClass, Adaptation.class, "Adaptation", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
|
|
- initEReference(getAdaptation_Parent(), this.getDecompositionAdaptation(), this.getDecompositionAdaptation_Children(), "parent", null, 0, 1, Adaptation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
|
|
- initEReference(getAdaptation_Adaptable(), this.getAdaptable(), this.getAdaptable_Adaptation(), "adaptable", null, 0, 1, Adaptation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
|
|
|
|
|
- initEOperation(getAdaptation__Adapted(), this.getAdaptable(), "adapted", 0, 1, !IS_UNIQUE, IS_ORDERED);
|
|
|
+ initEClass(portAdaptationEClass, PortAdaptation.class, "PortAdaptation", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
|
|
+ initEReference(getPortAdaptation_Port(), this.getPortInstance(), this.getPortInstance_Adaptation(), "port", null, 0, 1, PortAdaptation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
|
|
+ initEReference(getPortAdaptation_Parent(), this.getDecompositionPortAdaptation(), this.getDecompositionPortAdaptation_Children(), "parent", null, 0, 1, PortAdaptation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
|
|
+
|
|
|
+ initEOperation(getPortAdaptation__Adapted(), this.getPortInstance(), "adapted", 0, 1, !IS_UNIQUE, IS_ORDERED);
|
|
|
+
|
|
|
+ initEClass(decompositionPortAdaptationEClass, DecompositionPortAdaptation.class, "DecompositionPortAdaptation", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
|
|
+ initEReference(getDecompositionPortAdaptation_Children(), this.getPortAdaptation(), this.getPortAdaptation_Parent(), "children", null, 0, -1, DecompositionPortAdaptation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
|
|
+ initEAttribute(getDecompositionPortAdaptation_Name(), theEcorePackage.getEString(), "name", null, 0, 1, DecompositionPortAdaptation.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, IS_DERIVED, IS_ORDERED);
|
|
|
+
|
|
|
+ initEOperation(getDecompositionPortAdaptation__SelectedAdaptations(), this.getPortAdaptation(), "selectedAdaptations", 0, -1, !IS_UNIQUE, IS_ORDERED);
|
|
|
+
|
|
|
+ initEClass(unitAdaptationEClass, UnitAdaptation.class, "UnitAdaptation", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
|
|
+ initEReference(getUnitAdaptation_Unit(), this.getCosimUnitInstance(), this.getCosimUnitInstance_Adaptation(), "unit", null, 0, 1, UnitAdaptation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
|
|
+ initEReference(getUnitAdaptation_Parent(), this.getDecompositionUnitAdaptation(), this.getDecompositionUnitAdaptation_Children(), "parent", null, 0, 1, UnitAdaptation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
|
|
+
|
|
|
+ initEOperation(getUnitAdaptation__Adapted(), this.getCosimUnitInstance(), "adapted", 0, 1, !IS_UNIQUE, IS_ORDERED);
|
|
|
+
|
|
|
+ initEClass(decompositionUnitAdaptationEClass, DecompositionUnitAdaptation.class, "DecompositionUnitAdaptation", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
|
|
+ initEReference(getDecompositionUnitAdaptation_Children(), this.getUnitAdaptation(), this.getUnitAdaptation_Parent(), "children", null, 0, -1, DecompositionUnitAdaptation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
|
|
+ initEAttribute(getDecompositionUnitAdaptation_Name(), theEcorePackage.getEString(), "name", null, 0, 1, DecompositionUnitAdaptation.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, IS_DERIVED, IS_ORDERED);
|
|
|
|
|
|
- initEClass(decompositionAdaptationEClass, DecompositionAdaptation.class, "DecompositionAdaptation", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
|
|
- initEReference(getDecompositionAdaptation_Children(), this.getAdaptation(), this.getAdaptation_Parent(), "children", null, 0, -1, DecompositionAdaptation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
|
|
- initEAttribute(getDecompositionAdaptation_Name(), theEcorePackage.getEString(), "name", null, 0, 1, DecompositionAdaptation.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, IS_DERIVED, IS_ORDERED);
|
|
|
+ initEOperation(getDecompositionUnitAdaptation__SelectedAdaptations(), this.getUnitAdaptation(), "selectedAdaptations", 0, -1, !IS_UNIQUE, IS_ORDERED);
|
|
|
|
|
|
- initEOperation(getDecompositionAdaptation__SelectedAdaptations(), this.getAdaptation(), "selectedAdaptations", 0, -1, !IS_UNIQUE, IS_ORDERED);
|
|
|
+ initEClass(xorUnitAdaptationEClass, XorUnitAdaptation.class, "XorUnitAdaptation", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
|
|
|
|
|
- initEClass(xorAdaptationEClass, XorAdaptation.class, "XorAdaptation", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
|
|
+ initEClass(xorPortAdaptationEClass, XorPortAdaptation.class, "XorPortAdaptation", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
|
|
|
|
|
initEClass(combineAdaptationEClass, CombineAdaptation.class, "CombineAdaptation", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
|
|
|