diff options
author | Kristóf Marussy <kris7topher@gmail.com> | 2019-05-07 11:53:38 -0400 |
---|---|---|
committer | Kristóf Marussy <kris7topher@gmail.com> | 2019-05-07 11:53:38 -0400 |
commit | 9b83e33c055660f6de218d1b672f67734675f1f6 (patch) | |
tree | 9bd56534fdeb2bad776780a856065739d0d525cd /Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/CommSubsystemImpl.java | |
parent | Trying to implement spacecraft case study (diff) | |
download | VIATRA-Generator-9b83e33c055660f6de218d1b672f67734675f1f6.tar.gz VIATRA-Generator-9b83e33c055660f6de218d1b672f67734675f1f6.tar.zst VIATRA-Generator-9b83e33c055660f6de218d1b672f67734675f1f6.zip |
Try to restructure satellite case study
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 | 91 |
1 files changed, 91 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 cf8f1fe8..70ee268e 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 | |||
@@ -4,13 +4,16 @@ package satellite.impl; | |||
4 | 4 | ||
5 | import org.eclipse.emf.common.notify.Notification; | 5 | import org.eclipse.emf.common.notify.Notification; |
6 | 6 | ||
7 | import org.eclipse.emf.common.notify.NotificationChain; | ||
7 | import org.eclipse.emf.ecore.EClass; | 8 | import org.eclipse.emf.ecore.EClass; |
8 | 9 | ||
10 | import org.eclipse.emf.ecore.InternalEObject; | ||
9 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | 11 | import org.eclipse.emf.ecore.impl.ENotificationImpl; |
10 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | 12 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; |
11 | 13 | ||
12 | import satellite.AntennaGain; | 14 | import satellite.AntennaGain; |
13 | import satellite.CommSubsystem; | 15 | import satellite.CommSubsystem; |
16 | import satellite.DirectedCommunicationLink; | ||
14 | import satellite.SatellitePackage; | 17 | import satellite.SatellitePackage; |
15 | import satellite.TransceiverBand; | 18 | import satellite.TransceiverBand; |
16 | 19 | ||
@@ -24,6 +27,7 @@ import satellite.TransceiverBand; | |||
24 | * <ul> | 27 | * <ul> |
25 | * <li>{@link satellite.impl.CommSubsystemImpl#getBand <em>Band</em>}</li> | 28 | * <li>{@link satellite.impl.CommSubsystemImpl#getBand <em>Band</em>}</li> |
26 | * <li>{@link satellite.impl.CommSubsystemImpl#getGain <em>Gain</em>}</li> | 29 | * <li>{@link satellite.impl.CommSubsystemImpl#getGain <em>Gain</em>}</li> |
30 | * <li>{@link satellite.impl.CommSubsystemImpl#getCommunicationLink <em>Communication Link</em>}</li> | ||
27 | * </ul> | 31 | * </ul> |
28 | * | 32 | * |
29 | * @generated | 33 | * @generated |
@@ -70,6 +74,16 @@ public class CommSubsystemImpl extends MinimalEObjectImpl.Container implements C | |||
70 | protected AntennaGain gain = GAIN_EDEFAULT; | 74 | protected AntennaGain gain = GAIN_EDEFAULT; |
71 | 75 | ||
72 | /** | 76 | /** |
77 | * The cached value of the '{@link #getCommunicationLink() <em>Communication Link</em>}' containment reference. | ||
78 | * <!-- begin-user-doc --> | ||
79 | * <!-- end-user-doc --> | ||
80 | * @see #getCommunicationLink() | ||
81 | * @generated | ||
82 | * @ordered | ||
83 | */ | ||
84 | protected DirectedCommunicationLink communicationLink; | ||
85 | |||
86 | /** | ||
73 | * <!-- begin-user-doc --> | 87 | * <!-- begin-user-doc --> |
74 | * <!-- end-user-doc --> | 88 | * <!-- end-user-doc --> |
75 | * @generated | 89 | * @generated |
@@ -142,12 +156,81 @@ public class CommSubsystemImpl extends MinimalEObjectImpl.Container implements C | |||
142 | * @generated | 156 | * @generated |
143 | */ | 157 | */ |
144 | @Override | 158 | @Override |
159 | public DirectedCommunicationLink getCommunicationLink() { | ||
160 | return communicationLink; | ||
161 | } | ||
162 | |||
163 | /** | ||
164 | * <!-- begin-user-doc --> | ||
165 | * <!-- end-user-doc --> | ||
166 | * @generated | ||
167 | */ | ||
168 | public NotificationChain basicSetCommunicationLink(DirectedCommunicationLink newCommunicationLink, | ||
169 | NotificationChain msgs) { | ||
170 | DirectedCommunicationLink oldCommunicationLink = communicationLink; | ||
171 | communicationLink = newCommunicationLink; | ||
172 | if (eNotificationRequired()) { | ||
173 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, | ||
174 | SatellitePackage.COMM_SUBSYSTEM__COMMUNICATION_LINK, oldCommunicationLink, newCommunicationLink); | ||
175 | if (msgs == null) | ||
176 | msgs = notification; | ||
177 | else | ||
178 | msgs.add(notification); | ||
179 | } | ||
180 | return msgs; | ||
181 | } | ||
182 | |||
183 | /** | ||
184 | * <!-- begin-user-doc --> | ||
185 | * <!-- end-user-doc --> | ||
186 | * @generated | ||
187 | */ | ||
188 | @Override | ||
189 | public void setCommunicationLink(DirectedCommunicationLink newCommunicationLink) { | ||
190 | if (newCommunicationLink != communicationLink) { | ||
191 | NotificationChain msgs = null; | ||
192 | if (communicationLink != null) | ||
193 | msgs = ((InternalEObject) communicationLink).eInverseRemove(this, | ||
194 | EOPPOSITE_FEATURE_BASE - SatellitePackage.COMM_SUBSYSTEM__COMMUNICATION_LINK, null, msgs); | ||
195 | if (newCommunicationLink != null) | ||
196 | msgs = ((InternalEObject) newCommunicationLink).eInverseAdd(this, | ||
197 | EOPPOSITE_FEATURE_BASE - SatellitePackage.COMM_SUBSYSTEM__COMMUNICATION_LINK, null, msgs); | ||
198 | msgs = basicSetCommunicationLink(newCommunicationLink, msgs); | ||
199 | if (msgs != null) | ||
200 | msgs.dispatch(); | ||
201 | } else if (eNotificationRequired()) | ||
202 | eNotify(new ENotificationImpl(this, Notification.SET, SatellitePackage.COMM_SUBSYSTEM__COMMUNICATION_LINK, | ||
203 | newCommunicationLink, newCommunicationLink)); | ||
204 | } | ||
205 | |||
206 | /** | ||
207 | * <!-- begin-user-doc --> | ||
208 | * <!-- end-user-doc --> | ||
209 | * @generated | ||
210 | */ | ||
211 | @Override | ||
212 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
213 | switch (featureID) { | ||
214 | case SatellitePackage.COMM_SUBSYSTEM__COMMUNICATION_LINK: | ||
215 | return basicSetCommunicationLink(null, msgs); | ||
216 | } | ||
217 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
218 | } | ||
219 | |||
220 | /** | ||
221 | * <!-- begin-user-doc --> | ||
222 | * <!-- end-user-doc --> | ||
223 | * @generated | ||
224 | */ | ||
225 | @Override | ||
145 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | 226 | public Object eGet(int featureID, boolean resolve, boolean coreType) { |
146 | switch (featureID) { | 227 | switch (featureID) { |
147 | case SatellitePackage.COMM_SUBSYSTEM__BAND: | 228 | case SatellitePackage.COMM_SUBSYSTEM__BAND: |
148 | return getBand(); | 229 | return getBand(); |
149 | case SatellitePackage.COMM_SUBSYSTEM__GAIN: | 230 | case SatellitePackage.COMM_SUBSYSTEM__GAIN: |
150 | return getGain(); | 231 | return getGain(); |
232 | case SatellitePackage.COMM_SUBSYSTEM__COMMUNICATION_LINK: | ||
233 | return getCommunicationLink(); | ||
151 | } | 234 | } |
152 | return super.eGet(featureID, resolve, coreType); | 235 | return super.eGet(featureID, resolve, coreType); |
153 | } | 236 | } |
@@ -166,6 +249,9 @@ public class CommSubsystemImpl extends MinimalEObjectImpl.Container implements C | |||
166 | case SatellitePackage.COMM_SUBSYSTEM__GAIN: | 249 | case SatellitePackage.COMM_SUBSYSTEM__GAIN: |
167 | setGain((AntennaGain) newValue); | 250 | setGain((AntennaGain) newValue); |
168 | return; | 251 | return; |
252 | case SatellitePackage.COMM_SUBSYSTEM__COMMUNICATION_LINK: | ||
253 | setCommunicationLink((DirectedCommunicationLink) newValue); | ||
254 | return; | ||
169 | } | 255 | } |
170 | super.eSet(featureID, newValue); | 256 | super.eSet(featureID, newValue); |
171 | } | 257 | } |
@@ -184,6 +270,9 @@ public class CommSubsystemImpl extends MinimalEObjectImpl.Container implements C | |||
184 | case SatellitePackage.COMM_SUBSYSTEM__GAIN: | 270 | case SatellitePackage.COMM_SUBSYSTEM__GAIN: |
185 | setGain(GAIN_EDEFAULT); | 271 | setGain(GAIN_EDEFAULT); |
186 | return; | 272 | return; |
273 | case SatellitePackage.COMM_SUBSYSTEM__COMMUNICATION_LINK: | ||
274 | setCommunicationLink((DirectedCommunicationLink) null); | ||
275 | return; | ||
187 | } | 276 | } |
188 | super.eUnset(featureID); | 277 | super.eUnset(featureID); |
189 | } | 278 | } |
@@ -200,6 +289,8 @@ public class CommSubsystemImpl extends MinimalEObjectImpl.Container implements C | |||
200 | return band != BAND_EDEFAULT; | 289 | return band != BAND_EDEFAULT; |
201 | case SatellitePackage.COMM_SUBSYSTEM__GAIN: | 290 | case SatellitePackage.COMM_SUBSYSTEM__GAIN: |
202 | return gain != GAIN_EDEFAULT; | 291 | return gain != GAIN_EDEFAULT; |
292 | case SatellitePackage.COMM_SUBSYSTEM__COMMUNICATION_LINK: | ||
293 | return communicationLink != null; | ||
203 | } | 294 | } |
204 | return super.eIsSet(featureID); | 295 | return super.eIsSet(featureID); |
205 | } | 296 | } |