diff options
author | 2020-05-19 21:22:01 +0200 | |
---|---|---|
committer | 2020-05-19 22:11:37 +0200 | |
commit | 167e0470bc4562f77d46d8af8c0ef6794dfee693 (patch) | |
tree | 8f647b4a6d6b412b9e912a4e0841a2898e830b13 /Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/CommSubsystemImpl.java | |
parent | Config language WIP (diff) | |
parent | Merge branch 'master' of https://github.com/viatra/VIATRA-Generator (diff) | |
download | VIATRA-Generator-167e0470bc4562f77d46d8af8c0ef6794dfee693.tar.gz VIATRA-Generator-167e0470bc4562f77d46d8af8c0ef6794dfee693.tar.zst VIATRA-Generator-167e0470bc4562f77d46d8af8c0ef6794dfee693.zip |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/CommSubsystemImpl.java')
-rw-r--r-- | Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/CommSubsystemImpl.java | 128 |
1 files changed, 128 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 |