diff options
Diffstat (limited to 'Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl')
5 files changed, 552 insertions, 1 deletions
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ApplicationConfigurationFactoryImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ApplicationConfigurationFactoryImpl.java index 9ec9412a..77ff05e8 100644 --- a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ApplicationConfigurationFactoryImpl.java +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ApplicationConfigurationFactoryImpl.java | |||
@@ -103,6 +103,8 @@ public class ApplicationConfigurationFactoryImpl extends EFactoryImpl implements | |||
103 | case ApplicationConfigurationPackage.OPTIMIZATION_ENTRY: return createOptimizationEntry(); | 103 | case ApplicationConfigurationPackage.OPTIMIZATION_ENTRY: return createOptimizationEntry(); |
104 | case ApplicationConfigurationPackage.THRESHOLD_ENTRY: return createThresholdEntry(); | 104 | case ApplicationConfigurationPackage.THRESHOLD_ENTRY: return createThresholdEntry(); |
105 | case ApplicationConfigurationPackage.OBJECTIVE_FUNCTION: return createObjectiveFunction(); | 105 | case ApplicationConfigurationPackage.OBJECTIVE_FUNCTION: return createObjectiveFunction(); |
106 | case ApplicationConfigurationPackage.COST_OBJECTIVE_FUNCTION: return createCostObjectiveFunction(); | ||
107 | case ApplicationConfigurationPackage.COST_ENTRY: return createCostEntry(); | ||
106 | case ApplicationConfigurationPackage.RELIABILITY_OBJECTIVE_FUNCTION: return createReliabilityObjectiveFunction(); | 108 | case ApplicationConfigurationPackage.RELIABILITY_OBJECTIVE_FUNCTION: return createReliabilityObjectiveFunction(); |
107 | case ApplicationConfigurationPackage.RELIABILTIY_PROBABILITY: return createReliabiltiyProbability(); | 109 | case ApplicationConfigurationPackage.RELIABILTIY_PROBABILITY: return createReliabiltiyProbability(); |
108 | case ApplicationConfigurationPackage.MTFF: return createMtff(); | 110 | case ApplicationConfigurationPackage.MTFF: return createMtff(); |
@@ -646,6 +648,30 @@ public class ApplicationConfigurationFactoryImpl extends EFactoryImpl implements | |||
646 | * @generated | 648 | * @generated |
647 | */ | 649 | */ |
648 | @Override | 650 | @Override |
651 | public CostObjectiveFunction createCostObjectiveFunction() | ||
652 | { | ||
653 | CostObjectiveFunctionImpl costObjectiveFunction = new CostObjectiveFunctionImpl(); | ||
654 | return costObjectiveFunction; | ||
655 | } | ||
656 | |||
657 | /** | ||
658 | * <!-- begin-user-doc --> | ||
659 | * <!-- end-user-doc --> | ||
660 | * @generated | ||
661 | */ | ||
662 | @Override | ||
663 | public CostEntry createCostEntry() | ||
664 | { | ||
665 | CostEntryImpl costEntry = new CostEntryImpl(); | ||
666 | return costEntry; | ||
667 | } | ||
668 | |||
669 | /** | ||
670 | * <!-- begin-user-doc --> | ||
671 | * <!-- end-user-doc --> | ||
672 | * @generated | ||
673 | */ | ||
674 | @Override | ||
649 | public ReliabilityObjectiveFunction createReliabilityObjectiveFunction() | 675 | public ReliabilityObjectiveFunction createReliabilityObjectiveFunction() |
650 | { | 676 | { |
651 | ReliabilityObjectiveFunctionImpl reliabilityObjectiveFunction = new ReliabilityObjectiveFunctionImpl(); | 677 | ReliabilityObjectiveFunctionImpl reliabilityObjectiveFunction = new ReliabilityObjectiveFunctionImpl(); |
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ApplicationConfigurationPackageImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ApplicationConfigurationPackageImpl.java index c1aff1fe..7f2bee5b 100644 --- a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ApplicationConfigurationPackageImpl.java +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ApplicationConfigurationPackageImpl.java | |||
@@ -18,6 +18,8 @@ import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ConfigEnt | |||
18 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ConfigReference; | 18 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ConfigReference; |
19 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ConfigSpecification; | 19 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ConfigSpecification; |
20 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ConfigurationScript; | 20 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ConfigurationScript; |
21 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.CostEntry; | ||
22 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.CostObjectiveFunction; | ||
21 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.CustomEntry; | 23 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.CustomEntry; |
22 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.Declaration; | 24 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.Declaration; |
23 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.DocumentLevelSpecification; | 25 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.DocumentLevelSpecification; |
@@ -384,6 +386,20 @@ public class ApplicationConfigurationPackageImpl extends EPackageImpl implements | |||
384 | * <!-- end-user-doc --> | 386 | * <!-- end-user-doc --> |
385 | * @generated | 387 | * @generated |
386 | */ | 388 | */ |
389 | private EClass costObjectiveFunctionEClass = null; | ||
390 | |||
391 | /** | ||
392 | * <!-- begin-user-doc --> | ||
393 | * <!-- end-user-doc --> | ||
394 | * @generated | ||
395 | */ | ||
396 | private EClass costEntryEClass = null; | ||
397 | |||
398 | /** | ||
399 | * <!-- begin-user-doc --> | ||
400 | * <!-- end-user-doc --> | ||
401 | * @generated | ||
402 | */ | ||
387 | private EClass reliabilityObjectiveFunctionEClass = null; | 403 | private EClass reliabilityObjectiveFunctionEClass = null; |
388 | 404 | ||
389 | /** | 405 | /** |
@@ -1539,6 +1555,61 @@ public class ApplicationConfigurationPackageImpl extends EPackageImpl implements | |||
1539 | * @generated | 1555 | * @generated |
1540 | */ | 1556 | */ |
1541 | @Override | 1557 | @Override |
1558 | public EClass getCostObjectiveFunction() | ||
1559 | { | ||
1560 | return costObjectiveFunctionEClass; | ||
1561 | } | ||
1562 | |||
1563 | /** | ||
1564 | * <!-- begin-user-doc --> | ||
1565 | * <!-- end-user-doc --> | ||
1566 | * @generated | ||
1567 | */ | ||
1568 | @Override | ||
1569 | public EReference getCostObjectiveFunction_Entries() | ||
1570 | { | ||
1571 | return (EReference)costObjectiveFunctionEClass.getEStructuralFeatures().get(0); | ||
1572 | } | ||
1573 | |||
1574 | /** | ||
1575 | * <!-- begin-user-doc --> | ||
1576 | * <!-- end-user-doc --> | ||
1577 | * @generated | ||
1578 | */ | ||
1579 | @Override | ||
1580 | public EClass getCostEntry() | ||
1581 | { | ||
1582 | return costEntryEClass; | ||
1583 | } | ||
1584 | |||
1585 | /** | ||
1586 | * <!-- begin-user-doc --> | ||
1587 | * <!-- end-user-doc --> | ||
1588 | * @generated | ||
1589 | */ | ||
1590 | @Override | ||
1591 | public EReference getCostEntry_PatternElement() | ||
1592 | { | ||
1593 | return (EReference)costEntryEClass.getEStructuralFeatures().get(0); | ||
1594 | } | ||
1595 | |||
1596 | /** | ||
1597 | * <!-- begin-user-doc --> | ||
1598 | * <!-- end-user-doc --> | ||
1599 | * @generated | ||
1600 | */ | ||
1601 | @Override | ||
1602 | public EAttribute getCostEntry_Weight() | ||
1603 | { | ||
1604 | return (EAttribute)costEntryEClass.getEStructuralFeatures().get(1); | ||
1605 | } | ||
1606 | |||
1607 | /** | ||
1608 | * <!-- begin-user-doc --> | ||
1609 | * <!-- end-user-doc --> | ||
1610 | * @generated | ||
1611 | */ | ||
1612 | @Override | ||
1542 | public EClass getReliabilityObjectiveFunction() | 1613 | public EClass getReliabilityObjectiveFunction() |
1543 | { | 1614 | { |
1544 | return reliabilityObjectiveFunctionEClass; | 1615 | return reliabilityObjectiveFunctionEClass; |
@@ -2704,6 +2775,13 @@ public class ApplicationConfigurationPackageImpl extends EPackageImpl implements | |||
2704 | 2775 | ||
2705 | objectiveFunctionEClass = createEClass(OBJECTIVE_FUNCTION); | 2776 | objectiveFunctionEClass = createEClass(OBJECTIVE_FUNCTION); |
2706 | 2777 | ||
2778 | costObjectiveFunctionEClass = createEClass(COST_OBJECTIVE_FUNCTION); | ||
2779 | createEReference(costObjectiveFunctionEClass, COST_OBJECTIVE_FUNCTION__ENTRIES); | ||
2780 | |||
2781 | costEntryEClass = createEClass(COST_ENTRY); | ||
2782 | createEReference(costEntryEClass, COST_ENTRY__PATTERN_ELEMENT); | ||
2783 | createEAttribute(costEntryEClass, COST_ENTRY__WEIGHT); | ||
2784 | |||
2707 | reliabilityObjectiveFunctionEClass = createEClass(RELIABILITY_OBJECTIVE_FUNCTION); | 2785 | reliabilityObjectiveFunctionEClass = createEClass(RELIABILITY_OBJECTIVE_FUNCTION); |
2708 | createEReference(reliabilityObjectiveFunctionEClass, RELIABILITY_OBJECTIVE_FUNCTION__PACKAGE); | 2786 | createEReference(reliabilityObjectiveFunctionEClass, RELIABILITY_OBJECTIVE_FUNCTION__PACKAGE); |
2709 | createEReference(reliabilityObjectiveFunctionEClass, RELIABILITY_OBJECTIVE_FUNCTION__TRANSFORMATION); | 2787 | createEReference(reliabilityObjectiveFunctionEClass, RELIABILITY_OBJECTIVE_FUNCTION__TRANSFORMATION); |
@@ -2902,6 +2980,7 @@ public class ApplicationConfigurationPackageImpl extends EPackageImpl implements | |||
2902 | objectiveSpecificationEClass.getESuperTypes().add(this.getObjective()); | 2980 | objectiveSpecificationEClass.getESuperTypes().add(this.getObjective()); |
2903 | optimizationEntryEClass.getESuperTypes().add(this.getObjectiveEntry()); | 2981 | optimizationEntryEClass.getESuperTypes().add(this.getObjectiveEntry()); |
2904 | thresholdEntryEClass.getESuperTypes().add(this.getObjectiveEntry()); | 2982 | thresholdEntryEClass.getESuperTypes().add(this.getObjectiveEntry()); |
2983 | costObjectiveFunctionEClass.getESuperTypes().add(this.getObjectiveFunction()); | ||
2905 | reliabilityObjectiveFunctionEClass.getESuperTypes().add(this.getObjectiveFunction()); | 2984 | reliabilityObjectiveFunctionEClass.getESuperTypes().add(this.getObjectiveFunction()); |
2906 | reliabiltiyProbabilityEClass.getESuperTypes().add(this.getReliabilityObjectiveFunction()); | 2985 | reliabiltiyProbabilityEClass.getESuperTypes().add(this.getReliabilityObjectiveFunction()); |
2907 | mtffEClass.getESuperTypes().add(this.getReliabilityObjectiveFunction()); | 2986 | mtffEClass.getESuperTypes().add(this.getReliabilityObjectiveFunction()); |
@@ -3045,6 +3124,13 @@ public class ApplicationConfigurationPackageImpl extends EPackageImpl implements | |||
3045 | 3124 | ||
3046 | initEClass(objectiveFunctionEClass, ObjectiveFunction.class, "ObjectiveFunction", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | 3125 | initEClass(objectiveFunctionEClass, ObjectiveFunction.class, "ObjectiveFunction", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
3047 | 3126 | ||
3127 | initEClass(costObjectiveFunctionEClass, CostObjectiveFunction.class, "CostObjectiveFunction", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
3128 | initEReference(getCostObjectiveFunction_Entries(), this.getCostEntry(), null, "entries", null, 0, -1, CostObjectiveFunction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
3129 | |||
3130 | initEClass(costEntryEClass, CostEntry.class, "CostEntry", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
3131 | initEReference(getCostEntry_PatternElement(), this.getPatternElement(), null, "patternElement", null, 0, 1, CostEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
3132 | initEAttribute(getCostEntry_Weight(), theEcorePackage.getEInt(), "weight", null, 0, 1, CostEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
3133 | |||
3048 | initEClass(reliabilityObjectiveFunctionEClass, ReliabilityObjectiveFunction.class, "ReliabilityObjectiveFunction", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | 3134 | initEClass(reliabilityObjectiveFunctionEClass, ReliabilityObjectiveFunction.class, "ReliabilityObjectiveFunction", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
3049 | initEReference(getReliabilityObjectiveFunction_Package(), theCftLanguagePackage.getCftModel(), null, "package", null, 0, 1, ReliabilityObjectiveFunction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | 3135 | initEReference(getReliabilityObjectiveFunction_Package(), theCftLanguagePackage.getCftModel(), null, "package", null, 0, 1, ReliabilityObjectiveFunction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
3050 | initEReference(getReliabilityObjectiveFunction_Transformation(), theCftLanguagePackage.getTransformationDefinition(), null, "transformation", null, 0, 1, ReliabilityObjectiveFunction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | 3136 | initEReference(getReliabilityObjectiveFunction_Transformation(), theCftLanguagePackage.getTransformationDefinition(), null, "transformation", null, 0, 1, ReliabilityObjectiveFunction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
@@ -3183,6 +3269,8 @@ public class ApplicationConfigurationPackageImpl extends EPackageImpl implements | |||
3183 | addEEnumLiteral(optimizationDirectionEEnum, OptimizationDirection.MAXIMIZE); | 3269 | addEEnumLiteral(optimizationDirectionEEnum, OptimizationDirection.MAXIMIZE); |
3184 | 3270 | ||
3185 | initEEnum(comparisonOperatorEEnum, ComparisonOperator.class, "ComparisonOperator"); | 3271 | initEEnum(comparisonOperatorEEnum, ComparisonOperator.class, "ComparisonOperator"); |
3272 | addEEnumLiteral(comparisonOperatorEEnum, ComparisonOperator.LESS); | ||
3273 | addEEnumLiteral(comparisonOperatorEEnum, ComparisonOperator.GREATER); | ||
3186 | addEEnumLiteral(comparisonOperatorEEnum, ComparisonOperator.LESS_EQUALS); | 3274 | addEEnumLiteral(comparisonOperatorEEnum, ComparisonOperator.LESS_EQUALS); |
3187 | addEEnumLiteral(comparisonOperatorEEnum, ComparisonOperator.GREATER_EQUALS); | 3275 | addEEnumLiteral(comparisonOperatorEEnum, ComparisonOperator.GREATER_EQUALS); |
3188 | 3276 | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/CostEntryImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/CostEntryImpl.java new file mode 100644 index 00000000..892df6f5 --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/CostEntryImpl.java | |||
@@ -0,0 +1,270 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl; | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ApplicationConfigurationPackage; | ||
7 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.CostEntry; | ||
8 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.PatternElement; | ||
9 | |||
10 | import org.eclipse.emf.common.notify.Notification; | ||
11 | import org.eclipse.emf.common.notify.NotificationChain; | ||
12 | |||
13 | import org.eclipse.emf.ecore.EClass; | ||
14 | import org.eclipse.emf.ecore.InternalEObject; | ||
15 | |||
16 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
17 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
18 | |||
19 | /** | ||
20 | * <!-- begin-user-doc --> | ||
21 | * An implementation of the model object '<em><b>Cost Entry</b></em>'. | ||
22 | * <!-- end-user-doc --> | ||
23 | * <p> | ||
24 | * The following features are implemented: | ||
25 | * </p> | ||
26 | * <ul> | ||
27 | * <li>{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.CostEntryImpl#getPatternElement <em>Pattern Element</em>}</li> | ||
28 | * <li>{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.CostEntryImpl#getWeight <em>Weight</em>}</li> | ||
29 | * </ul> | ||
30 | * | ||
31 | * @generated | ||
32 | */ | ||
33 | public class CostEntryImpl extends MinimalEObjectImpl.Container implements CostEntry | ||
34 | { | ||
35 | /** | ||
36 | * The cached value of the '{@link #getPatternElement() <em>Pattern Element</em>}' containment reference. | ||
37 | * <!-- begin-user-doc --> | ||
38 | * <!-- end-user-doc --> | ||
39 | * @see #getPatternElement() | ||
40 | * @generated | ||
41 | * @ordered | ||
42 | */ | ||
43 | protected PatternElement patternElement; | ||
44 | |||
45 | /** | ||
46 | * The default value of the '{@link #getWeight() <em>Weight</em>}' attribute. | ||
47 | * <!-- begin-user-doc --> | ||
48 | * <!-- end-user-doc --> | ||
49 | * @see #getWeight() | ||
50 | * @generated | ||
51 | * @ordered | ||
52 | */ | ||
53 | protected static final int WEIGHT_EDEFAULT = 0; | ||
54 | |||
55 | /** | ||
56 | * The cached value of the '{@link #getWeight() <em>Weight</em>}' attribute. | ||
57 | * <!-- begin-user-doc --> | ||
58 | * <!-- end-user-doc --> | ||
59 | * @see #getWeight() | ||
60 | * @generated | ||
61 | * @ordered | ||
62 | */ | ||
63 | protected int weight = WEIGHT_EDEFAULT; | ||
64 | |||
65 | /** | ||
66 | * <!-- begin-user-doc --> | ||
67 | * <!-- end-user-doc --> | ||
68 | * @generated | ||
69 | */ | ||
70 | protected CostEntryImpl() | ||
71 | { | ||
72 | super(); | ||
73 | } | ||
74 | |||
75 | /** | ||
76 | * <!-- begin-user-doc --> | ||
77 | * <!-- end-user-doc --> | ||
78 | * @generated | ||
79 | */ | ||
80 | @Override | ||
81 | protected EClass eStaticClass() | ||
82 | { | ||
83 | return ApplicationConfigurationPackage.Literals.COST_ENTRY; | ||
84 | } | ||
85 | |||
86 | /** | ||
87 | * <!-- begin-user-doc --> | ||
88 | * <!-- end-user-doc --> | ||
89 | * @generated | ||
90 | */ | ||
91 | @Override | ||
92 | public PatternElement getPatternElement() | ||
93 | { | ||
94 | return patternElement; | ||
95 | } | ||
96 | |||
97 | /** | ||
98 | * <!-- begin-user-doc --> | ||
99 | * <!-- end-user-doc --> | ||
100 | * @generated | ||
101 | */ | ||
102 | public NotificationChain basicSetPatternElement(PatternElement newPatternElement, NotificationChain msgs) | ||
103 | { | ||
104 | PatternElement oldPatternElement = patternElement; | ||
105 | patternElement = newPatternElement; | ||
106 | if (eNotificationRequired()) | ||
107 | { | ||
108 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.COST_ENTRY__PATTERN_ELEMENT, oldPatternElement, newPatternElement); | ||
109 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
110 | } | ||
111 | return msgs; | ||
112 | } | ||
113 | |||
114 | /** | ||
115 | * <!-- begin-user-doc --> | ||
116 | * <!-- end-user-doc --> | ||
117 | * @generated | ||
118 | */ | ||
119 | @Override | ||
120 | public void setPatternElement(PatternElement newPatternElement) | ||
121 | { | ||
122 | if (newPatternElement != patternElement) | ||
123 | { | ||
124 | NotificationChain msgs = null; | ||
125 | if (patternElement != null) | ||
126 | msgs = ((InternalEObject)patternElement).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.COST_ENTRY__PATTERN_ELEMENT, null, msgs); | ||
127 | if (newPatternElement != null) | ||
128 | msgs = ((InternalEObject)newPatternElement).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.COST_ENTRY__PATTERN_ELEMENT, null, msgs); | ||
129 | msgs = basicSetPatternElement(newPatternElement, msgs); | ||
130 | if (msgs != null) msgs.dispatch(); | ||
131 | } | ||
132 | else if (eNotificationRequired()) | ||
133 | eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.COST_ENTRY__PATTERN_ELEMENT, newPatternElement, newPatternElement)); | ||
134 | } | ||
135 | |||
136 | /** | ||
137 | * <!-- begin-user-doc --> | ||
138 | * <!-- end-user-doc --> | ||
139 | * @generated | ||
140 | */ | ||
141 | @Override | ||
142 | public int getWeight() | ||
143 | { | ||
144 | return weight; | ||
145 | } | ||
146 | |||
147 | /** | ||
148 | * <!-- begin-user-doc --> | ||
149 | * <!-- end-user-doc --> | ||
150 | * @generated | ||
151 | */ | ||
152 | @Override | ||
153 | public void setWeight(int newWeight) | ||
154 | { | ||
155 | int oldWeight = weight; | ||
156 | weight = newWeight; | ||
157 | if (eNotificationRequired()) | ||
158 | eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.COST_ENTRY__WEIGHT, oldWeight, weight)); | ||
159 | } | ||
160 | |||
161 | /** | ||
162 | * <!-- begin-user-doc --> | ||
163 | * <!-- end-user-doc --> | ||
164 | * @generated | ||
165 | */ | ||
166 | @Override | ||
167 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) | ||
168 | { | ||
169 | switch (featureID) | ||
170 | { | ||
171 | case ApplicationConfigurationPackage.COST_ENTRY__PATTERN_ELEMENT: | ||
172 | return basicSetPatternElement(null, msgs); | ||
173 | } | ||
174 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
175 | } | ||
176 | |||
177 | /** | ||
178 | * <!-- begin-user-doc --> | ||
179 | * <!-- end-user-doc --> | ||
180 | * @generated | ||
181 | */ | ||
182 | @Override | ||
183 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
184 | { | ||
185 | switch (featureID) | ||
186 | { | ||
187 | case ApplicationConfigurationPackage.COST_ENTRY__PATTERN_ELEMENT: | ||
188 | return getPatternElement(); | ||
189 | case ApplicationConfigurationPackage.COST_ENTRY__WEIGHT: | ||
190 | return getWeight(); | ||
191 | } | ||
192 | return super.eGet(featureID, resolve, coreType); | ||
193 | } | ||
194 | |||
195 | /** | ||
196 | * <!-- begin-user-doc --> | ||
197 | * <!-- end-user-doc --> | ||
198 | * @generated | ||
199 | */ | ||
200 | @Override | ||
201 | public void eSet(int featureID, Object newValue) | ||
202 | { | ||
203 | switch (featureID) | ||
204 | { | ||
205 | case ApplicationConfigurationPackage.COST_ENTRY__PATTERN_ELEMENT: | ||
206 | setPatternElement((PatternElement)newValue); | ||
207 | return; | ||
208 | case ApplicationConfigurationPackage.COST_ENTRY__WEIGHT: | ||
209 | setWeight((Integer)newValue); | ||
210 | return; | ||
211 | } | ||
212 | super.eSet(featureID, newValue); | ||
213 | } | ||
214 | |||
215 | /** | ||
216 | * <!-- begin-user-doc --> | ||
217 | * <!-- end-user-doc --> | ||
218 | * @generated | ||
219 | */ | ||
220 | @Override | ||
221 | public void eUnset(int featureID) | ||
222 | { | ||
223 | switch (featureID) | ||
224 | { | ||
225 | case ApplicationConfigurationPackage.COST_ENTRY__PATTERN_ELEMENT: | ||
226 | setPatternElement((PatternElement)null); | ||
227 | return; | ||
228 | case ApplicationConfigurationPackage.COST_ENTRY__WEIGHT: | ||
229 | setWeight(WEIGHT_EDEFAULT); | ||
230 | return; | ||
231 | } | ||
232 | super.eUnset(featureID); | ||
233 | } | ||
234 | |||
235 | /** | ||
236 | * <!-- begin-user-doc --> | ||
237 | * <!-- end-user-doc --> | ||
238 | * @generated | ||
239 | */ | ||
240 | @Override | ||
241 | public boolean eIsSet(int featureID) | ||
242 | { | ||
243 | switch (featureID) | ||
244 | { | ||
245 | case ApplicationConfigurationPackage.COST_ENTRY__PATTERN_ELEMENT: | ||
246 | return patternElement != null; | ||
247 | case ApplicationConfigurationPackage.COST_ENTRY__WEIGHT: | ||
248 | return weight != WEIGHT_EDEFAULT; | ||
249 | } | ||
250 | return super.eIsSet(featureID); | ||
251 | } | ||
252 | |||
253 | /** | ||
254 | * <!-- begin-user-doc --> | ||
255 | * <!-- end-user-doc --> | ||
256 | * @generated | ||
257 | */ | ||
258 | @Override | ||
259 | public String toString() | ||
260 | { | ||
261 | if (eIsProxy()) return super.toString(); | ||
262 | |||
263 | StringBuilder result = new StringBuilder(super.toString()); | ||
264 | result.append(" (weight: "); | ||
265 | result.append(weight); | ||
266 | result.append(')'); | ||
267 | return result.toString(); | ||
268 | } | ||
269 | |||
270 | } //CostEntryImpl | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/CostObjectiveFunctionImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/CostObjectiveFunctionImpl.java new file mode 100644 index 00000000..bdabbb69 --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/CostObjectiveFunctionImpl.java | |||
@@ -0,0 +1,167 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl; | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ApplicationConfigurationPackage; | ||
7 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.CostEntry; | ||
8 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.CostObjectiveFunction; | ||
9 | |||
10 | import java.util.Collection; | ||
11 | |||
12 | import org.eclipse.emf.common.notify.NotificationChain; | ||
13 | |||
14 | import org.eclipse.emf.common.util.EList; | ||
15 | |||
16 | import org.eclipse.emf.ecore.EClass; | ||
17 | import org.eclipse.emf.ecore.InternalEObject; | ||
18 | |||
19 | import org.eclipse.emf.ecore.util.EObjectContainmentEList; | ||
20 | import org.eclipse.emf.ecore.util.InternalEList; | ||
21 | |||
22 | /** | ||
23 | * <!-- begin-user-doc --> | ||
24 | * An implementation of the model object '<em><b>Cost Objective Function</b></em>'. | ||
25 | * <!-- end-user-doc --> | ||
26 | * <p> | ||
27 | * The following features are implemented: | ||
28 | * </p> | ||
29 | * <ul> | ||
30 | * <li>{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.CostObjectiveFunctionImpl#getEntries <em>Entries</em>}</li> | ||
31 | * </ul> | ||
32 | * | ||
33 | * @generated | ||
34 | */ | ||
35 | public class CostObjectiveFunctionImpl extends ObjectiveFunctionImpl implements CostObjectiveFunction | ||
36 | { | ||
37 | /** | ||
38 | * The cached value of the '{@link #getEntries() <em>Entries</em>}' containment reference list. | ||
39 | * <!-- begin-user-doc --> | ||
40 | * <!-- end-user-doc --> | ||
41 | * @see #getEntries() | ||
42 | * @generated | ||
43 | * @ordered | ||
44 | */ | ||
45 | protected EList<CostEntry> entries; | ||
46 | |||
47 | /** | ||
48 | * <!-- begin-user-doc --> | ||
49 | * <!-- end-user-doc --> | ||
50 | * @generated | ||
51 | */ | ||
52 | protected CostObjectiveFunctionImpl() | ||
53 | { | ||
54 | super(); | ||
55 | } | ||
56 | |||
57 | /** | ||
58 | * <!-- begin-user-doc --> | ||
59 | * <!-- end-user-doc --> | ||
60 | * @generated | ||
61 | */ | ||
62 | @Override | ||
63 | protected EClass eStaticClass() | ||
64 | { | ||
65 | return ApplicationConfigurationPackage.Literals.COST_OBJECTIVE_FUNCTION; | ||
66 | } | ||
67 | |||
68 | /** | ||
69 | * <!-- begin-user-doc --> | ||
70 | * <!-- end-user-doc --> | ||
71 | * @generated | ||
72 | */ | ||
73 | @Override | ||
74 | public EList<CostEntry> getEntries() | ||
75 | { | ||
76 | if (entries == null) | ||
77 | { | ||
78 | entries = new EObjectContainmentEList<CostEntry>(CostEntry.class, this, ApplicationConfigurationPackage.COST_OBJECTIVE_FUNCTION__ENTRIES); | ||
79 | } | ||
80 | return entries; | ||
81 | } | ||
82 | |||
83 | /** | ||
84 | * <!-- begin-user-doc --> | ||
85 | * <!-- end-user-doc --> | ||
86 | * @generated | ||
87 | */ | ||
88 | @Override | ||
89 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) | ||
90 | { | ||
91 | switch (featureID) | ||
92 | { | ||
93 | case ApplicationConfigurationPackage.COST_OBJECTIVE_FUNCTION__ENTRIES: | ||
94 | return ((InternalEList<?>)getEntries()).basicRemove(otherEnd, msgs); | ||
95 | } | ||
96 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
97 | } | ||
98 | |||
99 | /** | ||
100 | * <!-- begin-user-doc --> | ||
101 | * <!-- end-user-doc --> | ||
102 | * @generated | ||
103 | */ | ||
104 | @Override | ||
105 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
106 | { | ||
107 | switch (featureID) | ||
108 | { | ||
109 | case ApplicationConfigurationPackage.COST_OBJECTIVE_FUNCTION__ENTRIES: | ||
110 | return getEntries(); | ||
111 | } | ||
112 | return super.eGet(featureID, resolve, coreType); | ||
113 | } | ||
114 | |||
115 | /** | ||
116 | * <!-- begin-user-doc --> | ||
117 | * <!-- end-user-doc --> | ||
118 | * @generated | ||
119 | */ | ||
120 | @SuppressWarnings("unchecked") | ||
121 | @Override | ||
122 | public void eSet(int featureID, Object newValue) | ||
123 | { | ||
124 | switch (featureID) | ||
125 | { | ||
126 | case ApplicationConfigurationPackage.COST_OBJECTIVE_FUNCTION__ENTRIES: | ||
127 | getEntries().clear(); | ||
128 | getEntries().addAll((Collection<? extends CostEntry>)newValue); | ||
129 | return; | ||
130 | } | ||
131 | super.eSet(featureID, newValue); | ||
132 | } | ||
133 | |||
134 | /** | ||
135 | * <!-- begin-user-doc --> | ||
136 | * <!-- end-user-doc --> | ||
137 | * @generated | ||
138 | */ | ||
139 | @Override | ||
140 | public void eUnset(int featureID) | ||
141 | { | ||
142 | switch (featureID) | ||
143 | { | ||
144 | case ApplicationConfigurationPackage.COST_OBJECTIVE_FUNCTION__ENTRIES: | ||
145 | getEntries().clear(); | ||
146 | return; | ||
147 | } | ||
148 | super.eUnset(featureID); | ||
149 | } | ||
150 | |||
151 | /** | ||
152 | * <!-- begin-user-doc --> | ||
153 | * <!-- end-user-doc --> | ||
154 | * @generated | ||
155 | */ | ||
156 | @Override | ||
157 | public boolean eIsSet(int featureID) | ||
158 | { | ||
159 | switch (featureID) | ||
160 | { | ||
161 | case ApplicationConfigurationPackage.COST_OBJECTIVE_FUNCTION__ENTRIES: | ||
162 | return entries != null && !entries.isEmpty(); | ||
163 | } | ||
164 | return super.eIsSet(featureID); | ||
165 | } | ||
166 | |||
167 | } //CostObjectiveFunctionImpl | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ThresholdEntryImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ThresholdEntryImpl.java index ea1050df..1ba04522 100644 --- a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ThresholdEntryImpl.java +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ThresholdEntryImpl.java | |||
@@ -39,7 +39,7 @@ public class ThresholdEntryImpl extends ObjectiveEntryImpl implements ThresholdE | |||
39 | * @generated | 39 | * @generated |
40 | * @ordered | 40 | * @ordered |
41 | */ | 41 | */ |
42 | protected static final ComparisonOperator OPERATOR_EDEFAULT = ComparisonOperator.LESS_EQUALS; | 42 | protected static final ComparisonOperator OPERATOR_EDEFAULT = ComparisonOperator.LESS; |
43 | 43 | ||
44 | /** | 44 | /** |
45 | * The cached value of the '{@link #getOperator() <em>Operator</em>}' attribute. | 45 | * The cached value of the '{@link #getOperator() <em>Operator</em>}' attribute. |