diff options
author | 2019-05-07 11:54:19 -0400 | |
---|---|---|
committer | 2019-05-07 11:54:19 -0400 | |
commit | 436ec038c24c42e615feb22a0fed029494bc74ea (patch) | |
tree | f3783961c521b73201a9d079be78feb26e8a285c /Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/CommunicatingElementImpl.java | |
parent | Try to restructure satellite case study (diff) | |
download | VIATRA-Generator-436ec038c24c42e615feb22a0fed029494bc74ea.tar.gz VIATRA-Generator-436ec038c24c42e615feb22a0fed029494bc74ea.tar.zst VIATRA-Generator-436ec038c24c42e615feb22a0fed029494bc74ea.zip |
Revert "Try to restructure satellite case study"
This reverts commit 9b83e33c055660f6de218d1b672f67734675f1f6.
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, 65 insertions, 13 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 f472580b..1f79da3b 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,12 +3,16 @@ | |||
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; | ||
6 | import org.eclipse.emf.common.notify.NotificationChain; | 8 | import org.eclipse.emf.common.notify.NotificationChain; |
7 | 9 | ||
8 | import org.eclipse.emf.common.util.EList; | 10 | import org.eclipse.emf.common.util.EList; |
9 | 11 | ||
10 | import org.eclipse.emf.ecore.EClass; | 12 | import org.eclipse.emf.ecore.EClass; |
11 | import org.eclipse.emf.ecore.InternalEObject; | 13 | import org.eclipse.emf.ecore.InternalEObject; |
14 | |||
15 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
12 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | 16 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; |
13 | 17 | ||
14 | import org.eclipse.emf.ecore.util.EObjectContainmentEList; | 18 | import org.eclipse.emf.ecore.util.EObjectContainmentEList; |
@@ -45,6 +49,16 @@ public abstract class CommunicatingElementImpl extends MinimalEObjectImpl.Contai | |||
45 | protected EList<CommSubsystem> commSubsystem; | 49 | protected EList<CommSubsystem> commSubsystem; |
46 | 50 | ||
47 | /** | 51 | /** |
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 | /** | ||
48 | * <!-- begin-user-doc --> | 62 | * <!-- begin-user-doc --> |
49 | * <!-- end-user-doc --> | 63 | * <!-- end-user-doc --> |
50 | * @generated | 64 | * @generated |
@@ -84,10 +98,7 @@ public abstract class CommunicatingElementImpl extends MinimalEObjectImpl.Contai | |||
84 | */ | 98 | */ |
85 | @Override | 99 | @Override |
86 | public DirectedCommunicationLink getCommunicationLink() { | 100 | public DirectedCommunicationLink getCommunicationLink() { |
87 | DirectedCommunicationLink communicationLink = basicGetCommunicationLink(); | 101 | return communicationLink; |
88 | return communicationLink != null && communicationLink.eIsProxy() | ||
89 | ? (DirectedCommunicationLink) eResolveProxy((InternalEObject) communicationLink) | ||
90 | : communicationLink; | ||
91 | } | 102 | } |
92 | 103 | ||
93 | /** | 104 | /** |
@@ -95,11 +106,46 @@ public abstract class CommunicatingElementImpl extends MinimalEObjectImpl.Contai | |||
95 | * <!-- end-user-doc --> | 106 | * <!-- end-user-doc --> |
96 | * @generated | 107 | * @generated |
97 | */ | 108 | */ |
98 | public DirectedCommunicationLink basicGetCommunicationLink() { | 109 | public NotificationChain basicSetCommunicationLink(DirectedCommunicationLink newCommunicationLink, |
99 | // TODO: implement this method to return the 'Communication Link' reference | 110 | NotificationChain msgs) { |
100 | // -> do not perform proxy resolution | 111 | DirectedCommunicationLink oldCommunicationLink = communicationLink; |
101 | // Ensure that you remove @generated or mark it @generated NOT | 112 | communicationLink = newCommunicationLink; |
102 | throw new UnsupportedOperationException(); | 113 | if (eNotificationRequired()) { |
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)); | ||
103 | } | 149 | } |
104 | 150 | ||
105 | /** | 151 | /** |
@@ -112,6 +158,8 @@ public abstract class CommunicatingElementImpl extends MinimalEObjectImpl.Contai | |||
112 | switch (featureID) { | 158 | switch (featureID) { |
113 | case SatellitePackage.COMMUNICATING_ELEMENT__COMM_SUBSYSTEM: | 159 | case SatellitePackage.COMMUNICATING_ELEMENT__COMM_SUBSYSTEM: |
114 | return ((InternalEList<?>) getCommSubsystem()).basicRemove(otherEnd, msgs); | 160 | return ((InternalEList<?>) getCommSubsystem()).basicRemove(otherEnd, msgs); |
161 | case SatellitePackage.COMMUNICATING_ELEMENT__COMMUNICATION_LINK: | ||
162 | return basicSetCommunicationLink(null, msgs); | ||
115 | } | 163 | } |
116 | return super.eInverseRemove(otherEnd, featureID, msgs); | 164 | return super.eInverseRemove(otherEnd, featureID, msgs); |
117 | } | 165 | } |
@@ -127,9 +175,7 @@ public abstract class CommunicatingElementImpl extends MinimalEObjectImpl.Contai | |||
127 | case SatellitePackage.COMMUNICATING_ELEMENT__COMM_SUBSYSTEM: | 175 | case SatellitePackage.COMMUNICATING_ELEMENT__COMM_SUBSYSTEM: |
128 | return getCommSubsystem(); | 176 | return getCommSubsystem(); |
129 | case SatellitePackage.COMMUNICATING_ELEMENT__COMMUNICATION_LINK: | 177 | case SatellitePackage.COMMUNICATING_ELEMENT__COMMUNICATION_LINK: |
130 | if (resolve) | 178 | return getCommunicationLink(); |
131 | return getCommunicationLink(); | ||
132 | return basicGetCommunicationLink(); | ||
133 | } | 179 | } |
134 | return super.eGet(featureID, resolve, coreType); | 180 | return super.eGet(featureID, resolve, coreType); |
135 | } | 181 | } |
@@ -147,6 +193,9 @@ public abstract class CommunicatingElementImpl extends MinimalEObjectImpl.Contai | |||
147 | getCommSubsystem().clear(); | 193 | getCommSubsystem().clear(); |
148 | getCommSubsystem().addAll((Collection<? extends CommSubsystem>) newValue); | 194 | getCommSubsystem().addAll((Collection<? extends CommSubsystem>) newValue); |
149 | return; | 195 | return; |
196 | case SatellitePackage.COMMUNICATING_ELEMENT__COMMUNICATION_LINK: | ||
197 | setCommunicationLink((DirectedCommunicationLink) newValue); | ||
198 | return; | ||
150 | } | 199 | } |
151 | super.eSet(featureID, newValue); | 200 | super.eSet(featureID, newValue); |
152 | } | 201 | } |
@@ -162,6 +211,9 @@ public abstract class CommunicatingElementImpl extends MinimalEObjectImpl.Contai | |||
162 | case SatellitePackage.COMMUNICATING_ELEMENT__COMM_SUBSYSTEM: | 211 | case SatellitePackage.COMMUNICATING_ELEMENT__COMM_SUBSYSTEM: |
163 | getCommSubsystem().clear(); | 212 | getCommSubsystem().clear(); |
164 | return; | 213 | return; |
214 | case SatellitePackage.COMMUNICATING_ELEMENT__COMMUNICATION_LINK: | ||
215 | setCommunicationLink((DirectedCommunicationLink) null); | ||
216 | return; | ||
165 | } | 217 | } |
166 | super.eUnset(featureID); | 218 | super.eUnset(featureID); |
167 | } | 219 | } |
@@ -177,7 +229,7 @@ public abstract class CommunicatingElementImpl extends MinimalEObjectImpl.Contai | |||
177 | case SatellitePackage.COMMUNICATING_ELEMENT__COMM_SUBSYSTEM: | 229 | case SatellitePackage.COMMUNICATING_ELEMENT__COMM_SUBSYSTEM: |
178 | return commSubsystem != null && !commSubsystem.isEmpty(); | 230 | return commSubsystem != null && !commSubsystem.isEmpty(); |
179 | case SatellitePackage.COMMUNICATING_ELEMENT__COMMUNICATION_LINK: | 231 | case SatellitePackage.COMMUNICATING_ELEMENT__COMMUNICATION_LINK: |
180 | return basicGetCommunicationLink() != null; | 232 | return communicationLink != null; |
181 | } | 233 | } |
182 | return super.eIsSet(featureID); | 234 | return super.eIsSet(featureID); |
183 | } | 235 | } |