diff options
Diffstat (limited to 'Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/OptimizationEntryImpl.java')
-rw-r--r-- | Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/OptimizationEntryImpl.java | 360 |
1 files changed, 180 insertions, 180 deletions
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/OptimizationEntryImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/OptimizationEntryImpl.java index 168b573a..762aa7d8 100644 --- a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/OptimizationEntryImpl.java +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/OptimizationEntryImpl.java | |||
@@ -1,180 +1,180 @@ | |||
1 | /** | 1 | /** |
2 | * generated by Xtext 2.21.0 | 2 | * generated by Xtext 2.21.0 |
3 | */ | 3 | */ |
4 | package hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl; | 4 | package hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl; |
5 | 5 | ||
6 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ApplicationConfigurationPackage; | 6 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ApplicationConfigurationPackage; |
7 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.OptimizationDirection; | 7 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.OptimizationDirection; |
8 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.OptimizationEntry; | 8 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.OptimizationEntry; |
9 | 9 | ||
10 | import org.eclipse.emf.common.notify.Notification; | 10 | import org.eclipse.emf.common.notify.Notification; |
11 | 11 | ||
12 | import org.eclipse.emf.ecore.EClass; | 12 | import org.eclipse.emf.ecore.EClass; |
13 | 13 | ||
14 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | 14 | import org.eclipse.emf.ecore.impl.ENotificationImpl; |
15 | 15 | ||
16 | /** | 16 | /** |
17 | * <!-- begin-user-doc --> | 17 | * <!-- begin-user-doc --> |
18 | * An implementation of the model object '<em><b>Optimization Entry</b></em>'. | 18 | * An implementation of the model object '<em><b>Optimization Entry</b></em>'. |
19 | * <!-- end-user-doc --> | 19 | * <!-- end-user-doc --> |
20 | * <p> | 20 | * <p> |
21 | * The following features are implemented: | 21 | * The following features are implemented: |
22 | * </p> | 22 | * </p> |
23 | * <ul> | 23 | * <ul> |
24 | * <li>{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.OptimizationEntryImpl#getDirection <em>Direction</em>}</li> | 24 | * <li>{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.OptimizationEntryImpl#getDirection <em>Direction</em>}</li> |
25 | * </ul> | 25 | * </ul> |
26 | * | 26 | * |
27 | * @generated | 27 | * @generated |
28 | */ | 28 | */ |
29 | public class OptimizationEntryImpl extends ObjectiveEntryImpl implements OptimizationEntry | 29 | public class OptimizationEntryImpl extends ObjectiveEntryImpl implements OptimizationEntry |
30 | { | 30 | { |
31 | /** | 31 | /** |
32 | * The default value of the '{@link #getDirection() <em>Direction</em>}' attribute. | 32 | * The default value of the '{@link #getDirection() <em>Direction</em>}' attribute. |
33 | * <!-- begin-user-doc --> | 33 | * <!-- begin-user-doc --> |
34 | * <!-- end-user-doc --> | 34 | * <!-- end-user-doc --> |
35 | * @see #getDirection() | 35 | * @see #getDirection() |
36 | * @generated | 36 | * @generated |
37 | * @ordered | 37 | * @ordered |
38 | */ | 38 | */ |
39 | protected static final OptimizationDirection DIRECTION_EDEFAULT = OptimizationDirection.MINIMIZE; | 39 | protected static final OptimizationDirection DIRECTION_EDEFAULT = OptimizationDirection.MINIMIZE; |
40 | 40 | ||
41 | /** | 41 | /** |
42 | * The cached value of the '{@link #getDirection() <em>Direction</em>}' attribute. | 42 | * The cached value of the '{@link #getDirection() <em>Direction</em>}' attribute. |
43 | * <!-- begin-user-doc --> | 43 | * <!-- begin-user-doc --> |
44 | * <!-- end-user-doc --> | 44 | * <!-- end-user-doc --> |
45 | * @see #getDirection() | 45 | * @see #getDirection() |
46 | * @generated | 46 | * @generated |
47 | * @ordered | 47 | * @ordered |
48 | */ | 48 | */ |
49 | protected OptimizationDirection direction = DIRECTION_EDEFAULT; | 49 | protected OptimizationDirection direction = DIRECTION_EDEFAULT; |
50 | 50 | ||
51 | /** | 51 | /** |
52 | * <!-- begin-user-doc --> | 52 | * <!-- begin-user-doc --> |
53 | * <!-- end-user-doc --> | 53 | * <!-- end-user-doc --> |
54 | * @generated | 54 | * @generated |
55 | */ | 55 | */ |
56 | protected OptimizationEntryImpl() | 56 | protected OptimizationEntryImpl() |
57 | { | 57 | { |
58 | super(); | 58 | super(); |
59 | } | 59 | } |
60 | 60 | ||
61 | /** | 61 | /** |
62 | * <!-- begin-user-doc --> | 62 | * <!-- begin-user-doc --> |
63 | * <!-- end-user-doc --> | 63 | * <!-- end-user-doc --> |
64 | * @generated | 64 | * @generated |
65 | */ | 65 | */ |
66 | @Override | 66 | @Override |
67 | protected EClass eStaticClass() | 67 | protected EClass eStaticClass() |
68 | { | 68 | { |
69 | return ApplicationConfigurationPackage.Literals.OPTIMIZATION_ENTRY; | 69 | return ApplicationConfigurationPackage.Literals.OPTIMIZATION_ENTRY; |
70 | } | 70 | } |
71 | 71 | ||
72 | /** | 72 | /** |
73 | * <!-- begin-user-doc --> | 73 | * <!-- begin-user-doc --> |
74 | * <!-- end-user-doc --> | 74 | * <!-- end-user-doc --> |
75 | * @generated | 75 | * @generated |
76 | */ | 76 | */ |
77 | @Override | 77 | @Override |
78 | public OptimizationDirection getDirection() | 78 | public OptimizationDirection getDirection() |
79 | { | 79 | { |
80 | return direction; | 80 | return direction; |
81 | } | 81 | } |
82 | 82 | ||
83 | /** | 83 | /** |
84 | * <!-- begin-user-doc --> | 84 | * <!-- begin-user-doc --> |
85 | * <!-- end-user-doc --> | 85 | * <!-- end-user-doc --> |
86 | * @generated | 86 | * @generated |
87 | */ | 87 | */ |
88 | @Override | 88 | @Override |
89 | public void setDirection(OptimizationDirection newDirection) | 89 | public void setDirection(OptimizationDirection newDirection) |
90 | { | 90 | { |
91 | OptimizationDirection oldDirection = direction; | 91 | OptimizationDirection oldDirection = direction; |
92 | direction = newDirection == null ? DIRECTION_EDEFAULT : newDirection; | 92 | direction = newDirection == null ? DIRECTION_EDEFAULT : newDirection; |
93 | if (eNotificationRequired()) | 93 | if (eNotificationRequired()) |
94 | eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.OPTIMIZATION_ENTRY__DIRECTION, oldDirection, direction)); | 94 | eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.OPTIMIZATION_ENTRY__DIRECTION, oldDirection, direction)); |
95 | } | 95 | } |
96 | 96 | ||
97 | /** | 97 | /** |
98 | * <!-- begin-user-doc --> | 98 | * <!-- begin-user-doc --> |
99 | * <!-- end-user-doc --> | 99 | * <!-- end-user-doc --> |
100 | * @generated | 100 | * @generated |
101 | */ | 101 | */ |
102 | @Override | 102 | @Override |
103 | public Object eGet(int featureID, boolean resolve, boolean coreType) | 103 | public Object eGet(int featureID, boolean resolve, boolean coreType) |
104 | { | 104 | { |
105 | switch (featureID) | 105 | switch (featureID) |
106 | { | 106 | { |
107 | case ApplicationConfigurationPackage.OPTIMIZATION_ENTRY__DIRECTION: | 107 | case ApplicationConfigurationPackage.OPTIMIZATION_ENTRY__DIRECTION: |
108 | return getDirection(); | 108 | return getDirection(); |
109 | } | 109 | } |
110 | return super.eGet(featureID, resolve, coreType); | 110 | return super.eGet(featureID, resolve, coreType); |
111 | } | 111 | } |
112 | 112 | ||
113 | /** | 113 | /** |
114 | * <!-- begin-user-doc --> | 114 | * <!-- begin-user-doc --> |
115 | * <!-- end-user-doc --> | 115 | * <!-- end-user-doc --> |
116 | * @generated | 116 | * @generated |
117 | */ | 117 | */ |
118 | @Override | 118 | @Override |
119 | public void eSet(int featureID, Object newValue) | 119 | public void eSet(int featureID, Object newValue) |
120 | { | 120 | { |
121 | switch (featureID) | 121 | switch (featureID) |
122 | { | 122 | { |
123 | case ApplicationConfigurationPackage.OPTIMIZATION_ENTRY__DIRECTION: | 123 | case ApplicationConfigurationPackage.OPTIMIZATION_ENTRY__DIRECTION: |
124 | setDirection((OptimizationDirection)newValue); | 124 | setDirection((OptimizationDirection)newValue); |
125 | return; | 125 | return; |
126 | } | 126 | } |
127 | super.eSet(featureID, newValue); | 127 | super.eSet(featureID, newValue); |
128 | } | 128 | } |
129 | 129 | ||
130 | /** | 130 | /** |
131 | * <!-- begin-user-doc --> | 131 | * <!-- begin-user-doc --> |
132 | * <!-- end-user-doc --> | 132 | * <!-- end-user-doc --> |
133 | * @generated | 133 | * @generated |
134 | */ | 134 | */ |
135 | @Override | 135 | @Override |
136 | public void eUnset(int featureID) | 136 | public void eUnset(int featureID) |
137 | { | 137 | { |
138 | switch (featureID) | 138 | switch (featureID) |
139 | { | 139 | { |
140 | case ApplicationConfigurationPackage.OPTIMIZATION_ENTRY__DIRECTION: | 140 | case ApplicationConfigurationPackage.OPTIMIZATION_ENTRY__DIRECTION: |
141 | setDirection(DIRECTION_EDEFAULT); | 141 | setDirection(DIRECTION_EDEFAULT); |
142 | return; | 142 | return; |
143 | } | 143 | } |
144 | super.eUnset(featureID); | 144 | super.eUnset(featureID); |
145 | } | 145 | } |
146 | 146 | ||
147 | /** | 147 | /** |
148 | * <!-- begin-user-doc --> | 148 | * <!-- begin-user-doc --> |
149 | * <!-- end-user-doc --> | 149 | * <!-- end-user-doc --> |
150 | * @generated | 150 | * @generated |
151 | */ | 151 | */ |
152 | @Override | 152 | @Override |
153 | public boolean eIsSet(int featureID) | 153 | public boolean eIsSet(int featureID) |
154 | { | 154 | { |
155 | switch (featureID) | 155 | switch (featureID) |
156 | { | 156 | { |
157 | case ApplicationConfigurationPackage.OPTIMIZATION_ENTRY__DIRECTION: | 157 | case ApplicationConfigurationPackage.OPTIMIZATION_ENTRY__DIRECTION: |
158 | return direction != DIRECTION_EDEFAULT; | 158 | return direction != DIRECTION_EDEFAULT; |
159 | } | 159 | } |
160 | return super.eIsSet(featureID); | 160 | return super.eIsSet(featureID); |
161 | } | 161 | } |
162 | 162 | ||
163 | /** | 163 | /** |
164 | * <!-- begin-user-doc --> | 164 | * <!-- begin-user-doc --> |
165 | * <!-- end-user-doc --> | 165 | * <!-- end-user-doc --> |
166 | * @generated | 166 | * @generated |
167 | */ | 167 | */ |
168 | @Override | 168 | @Override |
169 | public String toString() | 169 | public String toString() |
170 | { | 170 | { |
171 | if (eIsProxy()) return super.toString(); | 171 | if (eIsProxy()) return super.toString(); |
172 | 172 | ||
173 | StringBuilder result = new StringBuilder(super.toString()); | 173 | StringBuilder result = new StringBuilder(super.toString()); |
174 | result.append(" (direction: "); | 174 | result.append(" (direction: "); |
175 | result.append(direction); | 175 | result.append(direction); |
176 | result.append(')'); | 176 | result.append(')'); |
177 | return result.toString(); | 177 | return result.toString(); |
178 | } | 178 | } |
179 | 179 | ||
180 | } //OptimizationEntryImpl | 180 | } //OptimizationEntryImpl |