diff options
author | 2020-05-11 02:22:52 +0200 | |
---|---|---|
committer | 2020-05-11 02:22:52 +0200 | |
commit | 24f172f86601ae255dbfee265155ddc433338914 (patch) | |
tree | 123fbc0872701b7fd9f8f50cee32cf0f28db9eaf /Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl | |
parent | separated must and current UP rules to support non-prop neg finds (diff) | |
download | VIATRA-Generator-24f172f86601ae255dbfee265155ddc433338914.tar.gz VIATRA-Generator-24f172f86601ae255dbfee265155ddc433338914.tar.zst VIATRA-Generator-24f172f86601ae255dbfee265155ddc433338914.zip |
Satelite case study update for Models-Attribute paper
Diffstat (limited to 'Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl')
2 files changed, 157 insertions, 0 deletions
diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/CommSubsystemImpl.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/CommSubsystemImpl.java index d39abd4d..96a25d7c 100644 --- a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/CommSubsystemImpl.java +++ b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/CommSubsystemImpl.java | |||
@@ -19,6 +19,8 @@ import satellite.SatellitePackage; | |||
19 | * </p> | 19 | * </p> |
20 | * <ul> | 20 | * <ul> |
21 | * <li>{@link satellite.impl.CommSubsystemImpl#getTarget <em>Target</em>}</li> | 21 | * <li>{@link satellite.impl.CommSubsystemImpl#getTarget <em>Target</em>}</li> |
22 | * <li>{@link satellite.impl.CommSubsystemImpl#getFrequency <em>Frequency</em>}</li> | ||
23 | * <li>{@link satellite.impl.CommSubsystemImpl#getPathLength <em>Path Length</em>}</li> | ||
22 | * </ul> | 24 | * </ul> |
23 | * | 25 | * |
24 | * @generated | 26 | * @generated |
@@ -35,6 +37,45 @@ public abstract class CommSubsystemImpl extends MinimalEObjectImpl.Container imp | |||
35 | protected CommSubsystem target; | 37 | protected CommSubsystem target; |
36 | 38 | ||
37 | /** | 39 | /** |
40 | * The default value of the '{@link #getFrequency() <em>Frequency</em>}' attribute. | ||
41 | * <!-- begin-user-doc --> | ||
42 | * <!-- end-user-doc --> | ||
43 | * @see #getFrequency() | ||
44 | * @generated | ||
45 | * @ordered | ||
46 | */ | ||
47 | protected static final int FREQUENCY_EDEFAULT = 0; | ||
48 | /** | ||
49 | * The cached value of the '{@link #getFrequency() <em>Frequency</em>}' attribute. | ||
50 | * <!-- begin-user-doc --> | ||
51 | * <!-- end-user-doc --> | ||
52 | * @see #getFrequency() | ||
53 | * @generated | ||
54 | * @ordered | ||
55 | */ | ||
56 | protected int frequency = FREQUENCY_EDEFAULT; | ||
57 | |||
58 | /** | ||
59 | * The default value of the '{@link #getPathLength() <em>Path Length</em>}' attribute. | ||
60 | * <!-- begin-user-doc --> | ||
61 | * <!-- end-user-doc --> | ||
62 | * @see #getPathLength() | ||
63 | * @generated | ||
64 | * @ordered | ||
65 | */ | ||
66 | protected static final int PATH_LENGTH_EDEFAULT = 0; | ||
67 | |||
68 | /** | ||
69 | * The cached value of the '{@link #getPathLength() <em>Path Length</em>}' attribute. | ||
70 | * <!-- begin-user-doc --> | ||
71 | * <!-- end-user-doc --> | ||
72 | * @see #getPathLength() | ||
73 | * @generated | ||
74 | * @ordered | ||
75 | */ | ||
76 | protected int pathLength = PATH_LENGTH_EDEFAULT; | ||
77 | |||
78 | /** | ||
38 | * <!-- begin-user-doc --> | 79 | * <!-- begin-user-doc --> |
39 | * <!-- end-user-doc --> | 80 | * <!-- end-user-doc --> |
40 | * @generated | 81 | * @generated |
@@ -101,12 +142,64 @@ public abstract class CommSubsystemImpl extends MinimalEObjectImpl.Container imp | |||
101 | * @generated | 142 | * @generated |
102 | */ | 143 | */ |
103 | @Override | 144 | @Override |
145 | public int getFrequency() { | ||
146 | return frequency; | ||
147 | } | ||
148 | |||
149 | /** | ||
150 | * <!-- begin-user-doc --> | ||
151 | * <!-- end-user-doc --> | ||
152 | * @generated | ||
153 | */ | ||
154 | @Override | ||
155 | public void setFrequency(int newFrequency) { | ||
156 | int oldFrequency = frequency; | ||
157 | frequency = newFrequency; | ||
158 | if (eNotificationRequired()) | ||
159 | eNotify(new ENotificationImpl(this, Notification.SET, SatellitePackage.COMM_SUBSYSTEM__FREQUENCY, | ||
160 | oldFrequency, frequency)); | ||
161 | } | ||
162 | |||
163 | /** | ||
164 | * <!-- begin-user-doc --> | ||
165 | * <!-- end-user-doc --> | ||
166 | * @generated | ||
167 | */ | ||
168 | @Override | ||
169 | public int getPathLength() { | ||
170 | return pathLength; | ||
171 | } | ||
172 | |||
173 | /** | ||
174 | * <!-- begin-user-doc --> | ||
175 | * <!-- end-user-doc --> | ||
176 | * @generated | ||
177 | */ | ||
178 | @Override | ||
179 | public void setPathLength(int newPathLength) { | ||
180 | int oldPathLength = pathLength; | ||
181 | pathLength = newPathLength; | ||
182 | if (eNotificationRequired()) | ||
183 | eNotify(new ENotificationImpl(this, Notification.SET, SatellitePackage.COMM_SUBSYSTEM__PATH_LENGTH, | ||
184 | oldPathLength, pathLength)); | ||
185 | } | ||
186 | |||
187 | /** | ||
188 | * <!-- begin-user-doc --> | ||
189 | * <!-- end-user-doc --> | ||
190 | * @generated | ||
191 | */ | ||
192 | @Override | ||
104 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | 193 | public Object eGet(int featureID, boolean resolve, boolean coreType) { |
105 | switch (featureID) { | 194 | switch (featureID) { |
106 | case SatellitePackage.COMM_SUBSYSTEM__TARGET: | 195 | case SatellitePackage.COMM_SUBSYSTEM__TARGET: |
107 | if (resolve) | 196 | if (resolve) |
108 | return getTarget(); | 197 | return getTarget(); |
109 | return basicGetTarget(); | 198 | return basicGetTarget(); |
199 | case SatellitePackage.COMM_SUBSYSTEM__FREQUENCY: | ||
200 | return getFrequency(); | ||
201 | case SatellitePackage.COMM_SUBSYSTEM__PATH_LENGTH: | ||
202 | return getPathLength(); | ||
110 | } | 203 | } |
111 | return super.eGet(featureID, resolve, coreType); | 204 | return super.eGet(featureID, resolve, coreType); |
112 | } | 205 | } |
@@ -123,6 +216,12 @@ public abstract class CommSubsystemImpl extends MinimalEObjectImpl.Container imp | |||
123 | case SatellitePackage.COMM_SUBSYSTEM__TARGET: | 216 | case SatellitePackage.COMM_SUBSYSTEM__TARGET: |
124 | setTarget((CommSubsystem) newValue); | 217 | setTarget((CommSubsystem) newValue); |
125 | return; | 218 | return; |
219 | case SatellitePackage.COMM_SUBSYSTEM__FREQUENCY: | ||
220 | setFrequency((Integer) newValue); | ||
221 | return; | ||
222 | case SatellitePackage.COMM_SUBSYSTEM__PATH_LENGTH: | ||
223 | setPathLength((Integer) newValue); | ||
224 | return; | ||
126 | } | 225 | } |
127 | super.eSet(featureID, newValue); | 226 | super.eSet(featureID, newValue); |
128 | } | 227 | } |
@@ -138,6 +237,12 @@ public abstract class CommSubsystemImpl extends MinimalEObjectImpl.Container imp | |||
138 | case SatellitePackage.COMM_SUBSYSTEM__TARGET: | 237 | case SatellitePackage.COMM_SUBSYSTEM__TARGET: |
139 | setTarget((CommSubsystem) null); | 238 | setTarget((CommSubsystem) null); |
140 | return; | 239 | return; |
240 | case SatellitePackage.COMM_SUBSYSTEM__FREQUENCY: | ||
241 | setFrequency(FREQUENCY_EDEFAULT); | ||
242 | return; | ||
243 | case SatellitePackage.COMM_SUBSYSTEM__PATH_LENGTH: | ||
244 | setPathLength(PATH_LENGTH_EDEFAULT); | ||
245 | return; | ||
141 | } | 246 | } |
142 | super.eUnset(featureID); | 247 | super.eUnset(featureID); |
143 | } | 248 | } |
@@ -152,8 +257,31 @@ public abstract class CommSubsystemImpl extends MinimalEObjectImpl.Container imp | |||
152 | switch (featureID) { | 257 | switch (featureID) { |
153 | case SatellitePackage.COMM_SUBSYSTEM__TARGET: | 258 | case SatellitePackage.COMM_SUBSYSTEM__TARGET: |
154 | return target != null; | 259 | return target != null; |
260 | case SatellitePackage.COMM_SUBSYSTEM__FREQUENCY: | ||
261 | return frequency != FREQUENCY_EDEFAULT; | ||
262 | case SatellitePackage.COMM_SUBSYSTEM__PATH_LENGTH: | ||
263 | return pathLength != PATH_LENGTH_EDEFAULT; | ||
155 | } | 264 | } |
156 | return super.eIsSet(featureID); | 265 | return super.eIsSet(featureID); |
157 | } | 266 | } |
158 | 267 | ||
268 | /** | ||
269 | * <!-- begin-user-doc --> | ||
270 | * <!-- end-user-doc --> | ||
271 | * @generated | ||
272 | */ | ||
273 | @Override | ||
274 | public String toString() { | ||
275 | if (eIsProxy()) | ||
276 | return super.toString(); | ||
277 | |||
278 | StringBuilder result = new StringBuilder(super.toString()); | ||
279 | result.append(" (frequency: "); | ||
280 | result.append(frequency); | ||
281 | result.append(", pathLength: "); | ||
282 | result.append(pathLength); | ||
283 | result.append(')'); | ||
284 | return result.toString(); | ||
285 | } | ||
286 | |||
159 | } //CommSubsystemImpl | 287 | } //CommSubsystemImpl |
diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/SatellitePackageImpl.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/SatellitePackageImpl.java index f6dc1e30..39a6075f 100644 --- a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/SatellitePackageImpl.java +++ b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/SatellitePackageImpl.java | |||
@@ -2,6 +2,7 @@ | |||
2 | */ | 2 | */ |
3 | package satellite.impl; | 3 | package satellite.impl; |
4 | 4 | ||
5 | import org.eclipse.emf.ecore.EAttribute; | ||
5 | import org.eclipse.emf.ecore.EClass; | 6 | import org.eclipse.emf.ecore.EClass; |
6 | import org.eclipse.emf.ecore.EPackage; | 7 | import org.eclipse.emf.ecore.EPackage; |
7 | import org.eclipse.emf.ecore.EReference; | 8 | import org.eclipse.emf.ecore.EReference; |
@@ -317,6 +318,26 @@ public class SatellitePackageImpl extends EPackageImpl implements SatellitePacka | |||
317 | * @generated | 318 | * @generated |
318 | */ | 319 | */ |
319 | @Override | 320 | @Override |
321 | public EAttribute getCommSubsystem_Frequency() { | ||
322 | return (EAttribute) commSubsystemEClass.getEStructuralFeatures().get(1); | ||
323 | } | ||
324 | |||
325 | /** | ||
326 | * <!-- begin-user-doc --> | ||
327 | * <!-- end-user-doc --> | ||
328 | * @generated | ||
329 | */ | ||
330 | @Override | ||
331 | public EAttribute getCommSubsystem_PathLength() { | ||
332 | return (EAttribute) commSubsystemEClass.getEStructuralFeatures().get(2); | ||
333 | } | ||
334 | |||
335 | /** | ||
336 | * <!-- begin-user-doc --> | ||
337 | * <!-- end-user-doc --> | ||
338 | * @generated | ||
339 | */ | ||
340 | @Override | ||
320 | public EClass getPayload() { | 341 | public EClass getPayload() { |
321 | return payloadEClass; | 342 | return payloadEClass; |
322 | } | 343 | } |
@@ -447,6 +468,8 @@ public class SatellitePackageImpl extends EPackageImpl implements SatellitePacka | |||
447 | 468 | ||
448 | commSubsystemEClass = createEClass(COMM_SUBSYSTEM); | 469 | commSubsystemEClass = createEClass(COMM_SUBSYSTEM); |
449 | createEReference(commSubsystemEClass, COMM_SUBSYSTEM__TARGET); | 470 | createEReference(commSubsystemEClass, COMM_SUBSYSTEM__TARGET); |
471 | createEAttribute(commSubsystemEClass, COMM_SUBSYSTEM__FREQUENCY); | ||
472 | createEAttribute(commSubsystemEClass, COMM_SUBSYSTEM__PATH_LENGTH); | ||
450 | 473 | ||
451 | payloadEClass = createEClass(PAYLOAD); | 474 | payloadEClass = createEClass(PAYLOAD); |
452 | 475 | ||
@@ -541,6 +564,12 @@ public class SatellitePackageImpl extends EPackageImpl implements SatellitePacka | |||
541 | initEReference(getCommSubsystem_Target(), this.getCommSubsystem(), null, "target", null, 0, 1, | 564 | initEReference(getCommSubsystem_Target(), this.getCommSubsystem(), null, "target", null, 0, 1, |
542 | CommSubsystem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, | 565 | CommSubsystem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, |
543 | !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | 566 | !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
567 | initEAttribute(getCommSubsystem_Frequency(), ecorePackage.getEInt(), "frequency", null, 1, 1, | ||
568 | CommSubsystem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, | ||
569 | !IS_DERIVED, IS_ORDERED); | ||
570 | initEAttribute(getCommSubsystem_PathLength(), ecorePackage.getEInt(), "pathLength", null, 1, 1, | ||
571 | CommSubsystem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, | ||
572 | !IS_DERIVED, IS_ORDERED); | ||
544 | 573 | ||
545 | initEClass(payloadEClass, Payload.class, "Payload", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | 574 | initEClass(payloadEClass, Payload.class, "Payload", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
546 | 575 | ||