diff options
author | 2019-05-07 11:53:38 -0400 | |
---|---|---|
committer | 2019-05-07 11:53:38 -0400 | |
commit | 9b83e33c055660f6de218d1b672f67734675f1f6 (patch) | |
tree | 9bd56534fdeb2bad776780a856065739d0d525cd /Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/CommunicatingElementImpl.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/CommunicatingElementImpl.java')
-rw-r--r-- | Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/CommunicatingElementImpl.java | 78 |
1 files changed, 13 insertions, 65 deletions
diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/CommunicatingElementImpl.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/CommunicatingElementImpl.java index 1f79da3b..f472580b 100644 --- a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/CommunicatingElementImpl.java +++ b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/CommunicatingElementImpl.java | |||
@@ -3,16 +3,12 @@ | |||
3 | package satellite.impl; | 3 | package satellite.impl; |
4 | 4 | ||
5 | import java.util.Collection; | 5 | import java.util.Collection; |
6 | |||
7 | import org.eclipse.emf.common.notify.Notification; | ||
8 | import org.eclipse.emf.common.notify.NotificationChain; | 6 | import org.eclipse.emf.common.notify.NotificationChain; |
9 | 7 | ||
10 | import org.eclipse.emf.common.util.EList; | 8 | import org.eclipse.emf.common.util.EList; |
11 | 9 | ||
12 | import org.eclipse.emf.ecore.EClass; | 10 | import org.eclipse.emf.ecore.EClass; |
13 | import org.eclipse.emf.ecore.InternalEObject; | 11 | import org.eclipse.emf.ecore.InternalEObject; |
14 | |||
15 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
16 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | 12 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; |
17 | 13 | ||
18 | import org.eclipse.emf.ecore.util.EObjectContainmentEList; | 14 | import org.eclipse.emf.ecore.util.EObjectContainmentEList; |
@@ -49,16 +45,6 @@ public abstract class CommunicatingElementImpl extends MinimalEObjectImpl.Contai | |||
49 | protected EList<CommSubsystem> commSubsystem; | 45 | protected EList<CommSubsystem> commSubsystem; |
50 | 46 | ||
51 | /** | 47 | /** |
52 | * The cached value of the '{@link #getCommunicationLink() <em>Communication Link</em>}' containment reference. | ||
53 | * <!-- begin-user-doc --> | ||
54 | * <!-- end-user-doc --> | ||
55 | * @see #getCommunicationLink() | ||
56 | * @generated | ||
57 | * @ordered | ||
58 | */ | ||
59 | protected DirectedCommunicationLink communicationLink; | ||
60 | |||
61 | /** | ||
62 | * <!-- begin-user-doc --> | 48 | * <!-- begin-user-doc --> |
63 | * <!-- end-user-doc --> | 49 | * <!-- end-user-doc --> |
64 | * @generated | 50 | * @generated |
@@ -98,7 +84,10 @@ public abstract class CommunicatingElementImpl extends MinimalEObjectImpl.Contai | |||
98 | */ | 84 | */ |
99 | @Override | 85 | @Override |
100 | public DirectedCommunicationLink getCommunicationLink() { | 86 | public DirectedCommunicationLink getCommunicationLink() { |
101 | return communicationLink; | 87 | DirectedCommunicationLink communicationLink = basicGetCommunicationLink(); |
88 | return communicationLink != null && communicationLink.eIsProxy() | ||
89 | ? (DirectedCommunicationLink) eResolveProxy((InternalEObject) communicationLink) | ||
90 | : communicationLink; | ||
102 | } | 91 | } |
103 | 92 | ||
104 | /** | 93 | /** |
@@ -106,46 +95,11 @@ public abstract class CommunicatingElementImpl extends MinimalEObjectImpl.Contai | |||
106 | * <!-- end-user-doc --> | 95 | * <!-- end-user-doc --> |
107 | * @generated | 96 | * @generated |
108 | */ | 97 | */ |
109 | public NotificationChain basicSetCommunicationLink(DirectedCommunicationLink newCommunicationLink, | 98 | public DirectedCommunicationLink basicGetCommunicationLink() { |
110 | NotificationChain msgs) { | 99 | // TODO: implement this method to return the 'Communication Link' reference |
111 | DirectedCommunicationLink oldCommunicationLink = communicationLink; | 100 | // -> do not perform proxy resolution |
112 | communicationLink = newCommunicationLink; | 101 | // Ensure that you remove @generated or mark it @generated NOT |
113 | if (eNotificationRequired()) { | 102 | throw new UnsupportedOperationException(); |
114 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, | ||
115 | SatellitePackage.COMMUNICATING_ELEMENT__COMMUNICATION_LINK, oldCommunicationLink, | ||
116 | newCommunicationLink); | ||
117 | if (msgs == null) | ||
118 | msgs = notification; | ||
119 | else | ||
120 | msgs.add(notification); | ||
121 | } | ||
122 | return msgs; | ||
123 | } | ||
124 | |||
125 | /** | ||
126 | * <!-- begin-user-doc --> | ||
127 | * <!-- end-user-doc --> | ||
128 | * @generated | ||
129 | */ | ||
130 | @Override | ||
131 | public void setCommunicationLink(DirectedCommunicationLink newCommunicationLink) { | ||
132 | if (newCommunicationLink != communicationLink) { | ||
133 | NotificationChain msgs = null; | ||
134 | if (communicationLink != null) | ||
135 | msgs = ((InternalEObject) communicationLink).eInverseRemove(this, | ||
136 | EOPPOSITE_FEATURE_BASE - SatellitePackage.COMMUNICATING_ELEMENT__COMMUNICATION_LINK, null, | ||
137 | msgs); | ||
138 | if (newCommunicationLink != null) | ||
139 | msgs = ((InternalEObject) newCommunicationLink).eInverseAdd(this, | ||
140 | EOPPOSITE_FEATURE_BASE - SatellitePackage.COMMUNICATING_ELEMENT__COMMUNICATION_LINK, null, | ||
141 | msgs); | ||
142 | msgs = basicSetCommunicationLink(newCommunicationLink, msgs); | ||
143 | if (msgs != null) | ||
144 | msgs.dispatch(); | ||
145 | } else if (eNotificationRequired()) | ||
146 | eNotify(new ENotificationImpl(this, Notification.SET, | ||
147 | SatellitePackage.COMMUNICATING_ELEMENT__COMMUNICATION_LINK, newCommunicationLink, | ||
148 | newCommunicationLink)); | ||
149 | } | 103 | } |
150 | 104 | ||
151 | /** | 105 | /** |
@@ -158,8 +112,6 @@ public abstract class CommunicatingElementImpl extends MinimalEObjectImpl.Contai | |||
158 | switch (featureID) { | 112 | switch (featureID) { |
159 | case SatellitePackage.COMMUNICATING_ELEMENT__COMM_SUBSYSTEM: | 113 | case SatellitePackage.COMMUNICATING_ELEMENT__COMM_SUBSYSTEM: |
160 | return ((InternalEList<?>) getCommSubsystem()).basicRemove(otherEnd, msgs); | 114 | return ((InternalEList<?>) getCommSubsystem()).basicRemove(otherEnd, msgs); |
161 | case SatellitePackage.COMMUNICATING_ELEMENT__COMMUNICATION_LINK: | ||
162 | return basicSetCommunicationLink(null, msgs); | ||
163 | } | 115 | } |
164 | return super.eInverseRemove(otherEnd, featureID, msgs); | 116 | return super.eInverseRemove(otherEnd, featureID, msgs); |
165 | } | 117 | } |
@@ -175,7 +127,9 @@ public abstract class CommunicatingElementImpl extends MinimalEObjectImpl.Contai | |||
175 | case SatellitePackage.COMMUNICATING_ELEMENT__COMM_SUBSYSTEM: | 127 | case SatellitePackage.COMMUNICATING_ELEMENT__COMM_SUBSYSTEM: |
176 | return getCommSubsystem(); | 128 | return getCommSubsystem(); |
177 | case SatellitePackage.COMMUNICATING_ELEMENT__COMMUNICATION_LINK: | 129 | case SatellitePackage.COMMUNICATING_ELEMENT__COMMUNICATION_LINK: |
178 | return getCommunicationLink(); | 130 | if (resolve) |
131 | return getCommunicationLink(); | ||
132 | return basicGetCommunicationLink(); | ||
179 | } | 133 | } |
180 | return super.eGet(featureID, resolve, coreType); | 134 | return super.eGet(featureID, resolve, coreType); |
181 | } | 135 | } |
@@ -193,9 +147,6 @@ public abstract class CommunicatingElementImpl extends MinimalEObjectImpl.Contai | |||
193 | getCommSubsystem().clear(); | 147 | getCommSubsystem().clear(); |
194 | getCommSubsystem().addAll((Collection<? extends CommSubsystem>) newValue); | 148 | getCommSubsystem().addAll((Collection<? extends CommSubsystem>) newValue); |
195 | return; | 149 | return; |
196 | case SatellitePackage.COMMUNICATING_ELEMENT__COMMUNICATION_LINK: | ||
197 | setCommunicationLink((DirectedCommunicationLink) newValue); | ||
198 | return; | ||
199 | } | 150 | } |
200 | super.eSet(featureID, newValue); | 151 | super.eSet(featureID, newValue); |
201 | } | 152 | } |
@@ -211,9 +162,6 @@ public abstract class CommunicatingElementImpl extends MinimalEObjectImpl.Contai | |||
211 | case SatellitePackage.COMMUNICATING_ELEMENT__COMM_SUBSYSTEM: | 162 | case SatellitePackage.COMMUNICATING_ELEMENT__COMM_SUBSYSTEM: |
212 | getCommSubsystem().clear(); | 163 | getCommSubsystem().clear(); |
213 | return; | 164 | return; |
214 | case SatellitePackage.COMMUNICATING_ELEMENT__COMMUNICATION_LINK: | ||
215 | setCommunicationLink((DirectedCommunicationLink) null); | ||
216 | return; | ||
217 | } | 165 | } |
218 | super.eUnset(featureID); | 166 | super.eUnset(featureID); |
219 | } | 167 | } |
@@ -229,7 +177,7 @@ public abstract class CommunicatingElementImpl extends MinimalEObjectImpl.Contai | |||
229 | case SatellitePackage.COMMUNICATING_ELEMENT__COMM_SUBSYSTEM: | 177 | case SatellitePackage.COMMUNICATING_ELEMENT__COMM_SUBSYSTEM: |
230 | return commSubsystem != null && !commSubsystem.isEmpty(); | 178 | return commSubsystem != null && !commSubsystem.isEmpty(); |
231 | case SatellitePackage.COMMUNICATING_ELEMENT__COMMUNICATION_LINK: | 179 | case SatellitePackage.COMMUNICATING_ELEMENT__COMMUNICATION_LINK: |
232 | return communicationLink != null; | 180 | return basicGetCommunicationLink() != null; |
233 | } | 181 | } |
234 | return super.eIsSet(featureID); | 182 | return super.eIsSet(featureID); |
235 | } | 183 | } |