diff options
Diffstat (limited to 'Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl')
7 files changed, 91 insertions, 190 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 70ee268e..cf8f1fe8 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,16 +4,13 @@ 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; | ||
8 | import org.eclipse.emf.ecore.EClass; | 7 | import org.eclipse.emf.ecore.EClass; |
9 | 8 | ||
10 | import org.eclipse.emf.ecore.InternalEObject; | ||
11 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | 9 | import org.eclipse.emf.ecore.impl.ENotificationImpl; |
12 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | 10 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; |
13 | 11 | ||
14 | import satellite.AntennaGain; | 12 | import satellite.AntennaGain; |
15 | import satellite.CommSubsystem; | 13 | import satellite.CommSubsystem; |
16 | import satellite.DirectedCommunicationLink; | ||
17 | import satellite.SatellitePackage; | 14 | import satellite.SatellitePackage; |
18 | import satellite.TransceiverBand; | 15 | import satellite.TransceiverBand; |
19 | 16 | ||
@@ -27,7 +24,6 @@ import satellite.TransceiverBand; | |||
27 | * <ul> | 24 | * <ul> |
28 | * <li>{@link satellite.impl.CommSubsystemImpl#getBand <em>Band</em>}</li> | 25 | * <li>{@link satellite.impl.CommSubsystemImpl#getBand <em>Band</em>}</li> |
29 | * <li>{@link satellite.impl.CommSubsystemImpl#getGain <em>Gain</em>}</li> | 26 | * <li>{@link satellite.impl.CommSubsystemImpl#getGain <em>Gain</em>}</li> |
30 | * <li>{@link satellite.impl.CommSubsystemImpl#getCommunicationLink <em>Communication Link</em>}</li> | ||
31 | * </ul> | 27 | * </ul> |
32 | * | 28 | * |
33 | * @generated | 29 | * @generated |
@@ -74,16 +70,6 @@ public class CommSubsystemImpl extends MinimalEObjectImpl.Container implements C | |||
74 | protected AntennaGain gain = GAIN_EDEFAULT; | 70 | protected AntennaGain gain = GAIN_EDEFAULT; |
75 | 71 | ||
76 | /** | 72 | /** |
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 | /** | ||
87 | * <!-- begin-user-doc --> | 73 | * <!-- begin-user-doc --> |
88 | * <!-- end-user-doc --> | 74 | * <!-- end-user-doc --> |
89 | * @generated | 75 | * @generated |
@@ -156,81 +142,12 @@ public class CommSubsystemImpl extends MinimalEObjectImpl.Container implements C | |||
156 | * @generated | 142 | * @generated |
157 | */ | 143 | */ |
158 | @Override | 144 | @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 | ||
226 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | 145 | public Object eGet(int featureID, boolean resolve, boolean coreType) { |
227 | switch (featureID) { | 146 | switch (featureID) { |
228 | case SatellitePackage.COMM_SUBSYSTEM__BAND: | 147 | case SatellitePackage.COMM_SUBSYSTEM__BAND: |
229 | return getBand(); | 148 | return getBand(); |
230 | case SatellitePackage.COMM_SUBSYSTEM__GAIN: | 149 | case SatellitePackage.COMM_SUBSYSTEM__GAIN: |
231 | return getGain(); | 150 | return getGain(); |
232 | case SatellitePackage.COMM_SUBSYSTEM__COMMUNICATION_LINK: | ||
233 | return getCommunicationLink(); | ||
234 | } | 151 | } |
235 | return super.eGet(featureID, resolve, coreType); | 152 | return super.eGet(featureID, resolve, coreType); |
236 | } | 153 | } |
@@ -249,9 +166,6 @@ public class CommSubsystemImpl extends MinimalEObjectImpl.Container implements C | |||
249 | case SatellitePackage.COMM_SUBSYSTEM__GAIN: | 166 | case SatellitePackage.COMM_SUBSYSTEM__GAIN: |
250 | setGain((AntennaGain) newValue); | 167 | setGain((AntennaGain) newValue); |
251 | return; | 168 | return; |
252 | case SatellitePackage.COMM_SUBSYSTEM__COMMUNICATION_LINK: | ||
253 | setCommunicationLink((DirectedCommunicationLink) newValue); | ||
254 | return; | ||
255 | } | 169 | } |
256 | super.eSet(featureID, newValue); | 170 | super.eSet(featureID, newValue); |
257 | } | 171 | } |
@@ -270,9 +184,6 @@ public class CommSubsystemImpl extends MinimalEObjectImpl.Container implements C | |||
270 | case SatellitePackage.COMM_SUBSYSTEM__GAIN: | 184 | case SatellitePackage.COMM_SUBSYSTEM__GAIN: |
271 | setGain(GAIN_EDEFAULT); | 185 | setGain(GAIN_EDEFAULT); |
272 | return; | 186 | return; |
273 | case SatellitePackage.COMM_SUBSYSTEM__COMMUNICATION_LINK: | ||
274 | setCommunicationLink((DirectedCommunicationLink) null); | ||
275 | return; | ||
276 | } | 187 | } |
277 | super.eUnset(featureID); | 188 | super.eUnset(featureID); |
278 | } | 189 | } |
@@ -289,8 +200,6 @@ public class CommSubsystemImpl extends MinimalEObjectImpl.Container implements C | |||
289 | return band != BAND_EDEFAULT; | 200 | return band != BAND_EDEFAULT; |
290 | case SatellitePackage.COMM_SUBSYSTEM__GAIN: | 201 | case SatellitePackage.COMM_SUBSYSTEM__GAIN: |
291 | return gain != GAIN_EDEFAULT; | 202 | return gain != GAIN_EDEFAULT; |
292 | case SatellitePackage.COMM_SUBSYSTEM__COMMUNICATION_LINK: | ||
293 | return communicationLink != null; | ||
294 | } | 203 | } |
295 | return super.eIsSet(featureID); | 204 | return super.eIsSet(featureID); |
296 | } | 205 | } |
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 | } |
diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/CubeSat3UImpl.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/CubeSat3UImpl.java index 350a9bcc..a7ba37a7 100644 --- a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/CubeSat3UImpl.java +++ b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/CubeSat3UImpl.java | |||
@@ -14,7 +14,7 @@ import satellite.SatellitePackage; | |||
14 | * | 14 | * |
15 | * @generated | 15 | * @generated |
16 | */ | 16 | */ |
17 | public class CubeSat3UImpl extends CubeSatImpl implements CubeSat3U { | 17 | public class CubeSat3UImpl extends SpacecraftImpl implements CubeSat3U { |
18 | /** | 18 | /** |
19 | * <!-- begin-user-doc --> | 19 | * <!-- begin-user-doc --> |
20 | * <!-- end-user-doc --> | 20 | * <!-- end-user-doc --> |
diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/CubeSat6UImpl.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/CubeSat6UImpl.java index 3b9c5988..d4f42e6c 100644 --- a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/CubeSat6UImpl.java +++ b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/CubeSat6UImpl.java | |||
@@ -14,7 +14,7 @@ import satellite.SatellitePackage; | |||
14 | * | 14 | * |
15 | * @generated | 15 | * @generated |
16 | */ | 16 | */ |
17 | public class CubeSat6UImpl extends CubeSatImpl implements CubeSat6U { | 17 | public class CubeSat6UImpl extends SpacecraftImpl implements CubeSat6U { |
18 | /** | 18 | /** |
19 | * <!-- begin-user-doc --> | 19 | * <!-- begin-user-doc --> |
20 | * <!-- end-user-doc --> | 20 | * <!-- end-user-doc --> |
diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/CubeSatImpl.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/CubeSatImpl.java deleted file mode 100644 index 660bd062..00000000 --- a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/CubeSatImpl.java +++ /dev/null | |||
@@ -1,37 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package satellite.impl; | ||
4 | |||
5 | import org.eclipse.emf.ecore.EClass; | ||
6 | |||
7 | import satellite.CubeSat; | ||
8 | import satellite.SatellitePackage; | ||
9 | |||
10 | /** | ||
11 | * <!-- begin-user-doc --> | ||
12 | * An implementation of the model object '<em><b>Cube Sat</b></em>'. | ||
13 | * <!-- end-user-doc --> | ||
14 | * | ||
15 | * @generated | ||
16 | */ | ||
17 | public abstract class CubeSatImpl extends SpacecraftImpl implements CubeSat { | ||
18 | /** | ||
19 | * <!-- begin-user-doc --> | ||
20 | * <!-- end-user-doc --> | ||
21 | * @generated | ||
22 | */ | ||
23 | protected CubeSatImpl() { | ||
24 | super(); | ||
25 | } | ||
26 | |||
27 | /** | ||
28 | * <!-- begin-user-doc --> | ||
29 | * <!-- end-user-doc --> | ||
30 | * @generated | ||
31 | */ | ||
32 | @Override | ||
33 | protected EClass eStaticClass() { | ||
34 | return SatellitePackage.Literals.CUBE_SAT; | ||
35 | } | ||
36 | |||
37 | } //CubeSatImpl | ||
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 68e4ce30..2347fe07 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 | |||
@@ -14,7 +14,6 @@ import satellite.AntennaGain; | |||
14 | import satellite.CommSubsystem; | 14 | import satellite.CommSubsystem; |
15 | import satellite.CommunicatingElement; | 15 | import satellite.CommunicatingElement; |
16 | import satellite.ConstellationMission; | 16 | import satellite.ConstellationMission; |
17 | import satellite.CubeSat; | ||
18 | import satellite.CubeSat3U; | 17 | import satellite.CubeSat3U; |
19 | import satellite.CubeSat6U; | 18 | import satellite.CubeSat6U; |
20 | import satellite.DirectedCommunicationLink; | 19 | import satellite.DirectedCommunicationLink; |
@@ -125,13 +124,6 @@ public class SatellitePackageImpl extends EPackageImpl implements SatellitePacka | |||
125 | * <!-- end-user-doc --> | 124 | * <!-- end-user-doc --> |
126 | * @generated | 125 | * @generated |
127 | */ | 126 | */ |
128 | private EClass cubeSatEClass = null; | ||
129 | |||
130 | /** | ||
131 | * <!-- begin-user-doc --> | ||
132 | * <!-- end-user-doc --> | ||
133 | * @generated | ||
134 | */ | ||
135 | private EEnum transceiverBandEEnum = null; | 127 | private EEnum transceiverBandEEnum = null; |
136 | 128 | ||
137 | /** | 129 | /** |
@@ -368,16 +360,6 @@ public class SatellitePackageImpl extends EPackageImpl implements SatellitePacka | |||
368 | * @generated | 360 | * @generated |
369 | */ | 361 | */ |
370 | @Override | 362 | @Override |
371 | public EReference getCommSubsystem_CommunicationLink() { | ||
372 | return (EReference) commSubsystemEClass.getEStructuralFeatures().get(2); | ||
373 | } | ||
374 | |||
375 | /** | ||
376 | * <!-- begin-user-doc --> | ||
377 | * <!-- end-user-doc --> | ||
378 | * @generated | ||
379 | */ | ||
380 | @Override | ||
381 | public EClass getDirectedCommunicationLink() { | 363 | public EClass getDirectedCommunicationLink() { |
382 | return directedCommunicationLinkEClass; | 364 | return directedCommunicationLinkEClass; |
383 | } | 365 | } |
@@ -458,16 +440,6 @@ public class SatellitePackageImpl extends EPackageImpl implements SatellitePacka | |||
458 | * @generated | 440 | * @generated |
459 | */ | 441 | */ |
460 | @Override | 442 | @Override |
461 | public EClass getCubeSat() { | ||
462 | return cubeSatEClass; | ||
463 | } | ||
464 | |||
465 | /** | ||
466 | * <!-- begin-user-doc --> | ||
467 | * <!-- end-user-doc --> | ||
468 | * @generated | ||
469 | */ | ||
470 | @Override | ||
471 | public EEnum getTransceiverBand() { | 443 | public EEnum getTransceiverBand() { |
472 | return transceiverBandEEnum; | 444 | return transceiverBandEEnum; |
473 | } | 445 | } |
@@ -542,7 +514,6 @@ public class SatellitePackageImpl extends EPackageImpl implements SatellitePacka | |||
542 | commSubsystemEClass = createEClass(COMM_SUBSYSTEM); | 514 | commSubsystemEClass = createEClass(COMM_SUBSYSTEM); |
543 | createEAttribute(commSubsystemEClass, COMM_SUBSYSTEM__BAND); | 515 | createEAttribute(commSubsystemEClass, COMM_SUBSYSTEM__BAND); |
544 | createEAttribute(commSubsystemEClass, COMM_SUBSYSTEM__GAIN); | 516 | createEAttribute(commSubsystemEClass, COMM_SUBSYSTEM__GAIN); |
545 | createEReference(commSubsystemEClass, COMM_SUBSYSTEM__COMMUNICATION_LINK); | ||
546 | 517 | ||
547 | directedCommunicationLinkEClass = createEClass(DIRECTED_COMMUNICATION_LINK); | 518 | directedCommunicationLinkEClass = createEClass(DIRECTED_COMMUNICATION_LINK); |
548 | createEReference(directedCommunicationLinkEClass, DIRECTED_COMMUNICATION_LINK__SOURCE); | 519 | createEReference(directedCommunicationLinkEClass, DIRECTED_COMMUNICATION_LINK__SOURCE); |
@@ -558,8 +529,6 @@ public class SatellitePackageImpl extends EPackageImpl implements SatellitePacka | |||
558 | 529 | ||
559 | smallSatEClass = createEClass(SMALL_SAT); | 530 | smallSatEClass = createEClass(SMALL_SAT); |
560 | 531 | ||
561 | cubeSatEClass = createEClass(CUBE_SAT); | ||
562 | |||
563 | // Create enums | 532 | // Create enums |
564 | transceiverBandEEnum = createEEnum(TRANSCEIVER_BAND); | 533 | transceiverBandEEnum = createEEnum(TRANSCEIVER_BAND); |
565 | antennaGainEEnum = createEEnum(ANTENNA_GAIN); | 534 | antennaGainEEnum = createEEnum(ANTENNA_GAIN); |
@@ -599,10 +568,9 @@ public class SatellitePackageImpl extends EPackageImpl implements SatellitePacka | |||
599 | groundStationNetworkEClass.getESuperTypes().add(this.getCommunicatingElement()); | 568 | groundStationNetworkEClass.getESuperTypes().add(this.getCommunicatingElement()); |
600 | spacecraftEClass.getESuperTypes().add(this.getCommunicatingElement()); | 569 | spacecraftEClass.getESuperTypes().add(this.getCommunicatingElement()); |
601 | interferometryPayloadEClass.getESuperTypes().add(this.getPayload()); | 570 | interferometryPayloadEClass.getESuperTypes().add(this.getPayload()); |
602 | cubeSat3UEClass.getESuperTypes().add(this.getCubeSat()); | 571 | cubeSat3UEClass.getESuperTypes().add(this.getSpacecraft()); |
603 | cubeSat6UEClass.getESuperTypes().add(this.getCubeSat()); | 572 | cubeSat6UEClass.getESuperTypes().add(this.getSpacecraft()); |
604 | smallSatEClass.getESuperTypes().add(this.getSpacecraft()); | 573 | smallSatEClass.getESuperTypes().add(this.getSpacecraft()); |
605 | cubeSatEClass.getESuperTypes().add(this.getSpacecraft()); | ||
606 | 574 | ||
607 | // Initialize classes, features, and operations; add parameters | 575 | // Initialize classes, features, and operations; add parameters |
608 | initEClass(constellationMissionEClass, ConstellationMission.class, "ConstellationMission", IS_ABSTRACT, | 576 | initEClass(constellationMissionEClass, ConstellationMission.class, "ConstellationMission", IS_ABSTRACT, |
@@ -626,8 +594,8 @@ public class SatellitePackageImpl extends EPackageImpl implements SatellitePacka | |||
626 | 2, CommunicatingElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, | 594 | 2, CommunicatingElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, |
627 | !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | 595 | !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
628 | initEReference(getCommunicatingElement_CommunicationLink(), this.getDirectedCommunicationLink(), null, | 596 | initEReference(getCommunicatingElement_CommunicationLink(), this.getDirectedCommunicationLink(), null, |
629 | "communicationLink", null, 0, 1, CommunicatingElement.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, | 597 | "communicationLink", null, 0, 1, CommunicatingElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, |
630 | !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); | 598 | IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
631 | 599 | ||
632 | initEClass(groundStationNetworkEClass, GroundStationNetwork.class, "GroundStationNetwork", !IS_ABSTRACT, | 600 | initEClass(groundStationNetworkEClass, GroundStationNetwork.class, "GroundStationNetwork", !IS_ABSTRACT, |
633 | !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | 601 | !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
@@ -646,9 +614,6 @@ public class SatellitePackageImpl extends EPackageImpl implements SatellitePacka | |||
646 | !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | 614 | !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
647 | initEAttribute(getCommSubsystem_Gain(), this.getAntennaGain(), "gain", null, 1, 1, CommSubsystem.class, | 615 | initEAttribute(getCommSubsystem_Gain(), this.getAntennaGain(), "gain", null, 1, 1, CommSubsystem.class, |
648 | !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | 616 | !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
649 | initEReference(getCommSubsystem_CommunicationLink(), this.getDirectedCommunicationLink(), null, | ||
650 | "communicationLink", null, 0, 1, CommSubsystem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, | ||
651 | IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
652 | 617 | ||
653 | initEClass(directedCommunicationLinkEClass, DirectedCommunicationLink.class, "DirectedCommunicationLink", | 618 | initEClass(directedCommunicationLinkEClass, DirectedCommunicationLink.class, "DirectedCommunicationLink", |
654 | !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | 619 | !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
@@ -673,8 +638,6 @@ public class SatellitePackageImpl extends EPackageImpl implements SatellitePacka | |||
673 | initEClass(smallSatEClass, SmallSat.class, "SmallSat", !IS_ABSTRACT, !IS_INTERFACE, | 638 | initEClass(smallSatEClass, SmallSat.class, "SmallSat", !IS_ABSTRACT, !IS_INTERFACE, |
674 | IS_GENERATED_INSTANCE_CLASS); | 639 | IS_GENERATED_INSTANCE_CLASS); |
675 | 640 | ||
676 | initEClass(cubeSatEClass, CubeSat.class, "CubeSat", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
677 | |||
678 | // Initialize enums and add enum literals | 641 | // Initialize enums and add enum literals |
679 | initEEnum(transceiverBandEEnum, TransceiverBand.class, "TransceiverBand"); | 642 | initEEnum(transceiverBandEEnum, TransceiverBand.class, "TransceiverBand"); |
680 | addEEnumLiteral(transceiverBandEEnum, TransceiverBand.UHF); | 643 | addEEnumLiteral(transceiverBandEEnum, TransceiverBand.UHF); |
@@ -697,6 +660,8 @@ public class SatellitePackageImpl extends EPackageImpl implements SatellitePacka | |||
697 | // Create annotations | 660 | // Create annotations |
698 | // http://www.eclipse.org/emf/2002/Ecore | 661 | // http://www.eclipse.org/emf/2002/Ecore |
699 | createEcoreAnnotations(); | 662 | createEcoreAnnotations(); |
663 | // org.eclipse.viatra.query.querybasedfeature | ||
664 | createOrgAnnotations(); | ||
700 | } | 665 | } |
701 | 666 | ||
702 | /** | 667 | /** |
@@ -710,4 +675,16 @@ public class SatellitePackageImpl extends EPackageImpl implements SatellitePacka | |||
710 | addAnnotation(this, source, new String[] { "settingDelegates", "org.eclipse.viatra.query.querybasedfeature" }); | 675 | addAnnotation(this, source, new String[] { "settingDelegates", "org.eclipse.viatra.query.querybasedfeature" }); |
711 | } | 676 | } |
712 | 677 | ||
678 | /** | ||
679 | * Initializes the annotations for <b>org.eclipse.viatra.query.querybasedfeature</b>. | ||
680 | * <!-- begin-user-doc --> | ||
681 | * <!-- end-user-doc --> | ||
682 | * @generated | ||
683 | */ | ||
684 | protected void createOrgAnnotations() { | ||
685 | String source = "org.eclipse.viatra.query.querybasedfeature"; | ||
686 | addAnnotation(getSpacecraft_Kind(), source, | ||
687 | new String[] { "patternFQN", "hu.bme.mit.inf.dslreasoner.domains.satellite.queries.spacecraftOfKind" }); | ||
688 | } | ||
689 | |||
713 | } //SatellitePackageImpl | 690 | } //SatellitePackageImpl |
diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/SpacecraftImpl.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/SpacecraftImpl.java index ef98fb07..73609fbd 100644 --- a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/SpacecraftImpl.java +++ b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/SpacecraftImpl.java | |||
@@ -6,6 +6,7 @@ import org.eclipse.emf.common.notify.Notification; | |||
6 | import org.eclipse.emf.common.notify.NotificationChain; | 6 | import org.eclipse.emf.common.notify.NotificationChain; |
7 | 7 | ||
8 | import org.eclipse.emf.ecore.EClass; | 8 | import org.eclipse.emf.ecore.EClass; |
9 | import org.eclipse.emf.ecore.EStructuralFeature; | ||
9 | import org.eclipse.emf.ecore.InternalEObject; | 10 | import org.eclipse.emf.ecore.InternalEObject; |
10 | 11 | ||
11 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | 12 | import org.eclipse.emf.ecore.impl.ENotificationImpl; |
@@ -41,14 +42,15 @@ public abstract class SpacecraftImpl extends CommunicatingElementImpl implements | |||
41 | protected Payload payload; | 42 | protected Payload payload; |
42 | 43 | ||
43 | /** | 44 | /** |
44 | * The default value of the '{@link #getKind() <em>Kind</em>}' attribute. | 45 | * The cached setting delegate for the '{@link #getKind() <em>Kind</em>}' attribute. |
45 | * <!-- begin-user-doc --> | 46 | * <!-- begin-user-doc --> |
46 | * <!-- end-user-doc --> | 47 | * <!-- end-user-doc --> |
47 | * @see #getKind() | 48 | * @see #getKind() |
48 | * @generated | 49 | * @generated |
49 | * @ordered | 50 | * @ordered |
50 | */ | 51 | */ |
51 | protected static final SpacecraftKind KIND_EDEFAULT = SpacecraftKind.CUBE_SAT3_U; | 52 | protected EStructuralFeature.Internal.SettingDelegate KIND__ESETTING_DELEGATE = ((EStructuralFeature.Internal) SatellitePackage.Literals.SPACECRAFT__KIND) |
53 | .getSettingDelegate(); | ||
52 | 54 | ||
53 | /** | 55 | /** |
54 | * <!-- begin-user-doc --> | 56 | * <!-- begin-user-doc --> |
@@ -128,9 +130,7 @@ public abstract class SpacecraftImpl extends CommunicatingElementImpl implements | |||
128 | */ | 130 | */ |
129 | @Override | 131 | @Override |
130 | public SpacecraftKind getKind() { | 132 | public SpacecraftKind getKind() { |
131 | // TODO: implement this method to return the 'Kind' attribute | 133 | return (SpacecraftKind) KIND__ESETTING_DELEGATE.dynamicGet(this, null, 0, true, false); |
132 | // Ensure that you remove @generated or mark it @generated NOT | ||
133 | throw new UnsupportedOperationException(); | ||
134 | } | 134 | } |
135 | 135 | ||
136 | /** | 136 | /** |
@@ -204,7 +204,7 @@ public abstract class SpacecraftImpl extends CommunicatingElementImpl implements | |||
204 | case SatellitePackage.SPACECRAFT__PAYLOAD: | 204 | case SatellitePackage.SPACECRAFT__PAYLOAD: |
205 | return payload != null; | 205 | return payload != null; |
206 | case SatellitePackage.SPACECRAFT__KIND: | 206 | case SatellitePackage.SPACECRAFT__KIND: |
207 | return getKind() != KIND_EDEFAULT; | 207 | return KIND__ESETTING_DELEGATE.dynamicIsSet(this, null, 0); |
208 | } | 208 | } |
209 | return super.eIsSet(featureID); | 209 | return super.eIsSet(featureID); |
210 | } | 210 | } |