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 | |
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')
7 files changed, 190 insertions, 91 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 | } |
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 | } |
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 a7ba37a7..350a9bcc 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 SpacecraftImpl implements CubeSat3U { | 17 | public class CubeSat3UImpl extends CubeSatImpl 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 d4f42e6c..3b9c5988 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 SpacecraftImpl implements CubeSat6U { | 17 | public class CubeSat6UImpl extends CubeSatImpl 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 new file mode 100644 index 00000000..660bd062 --- /dev/null +++ b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/CubeSatImpl.java | |||
@@ -0,0 +1,37 @@ | |||
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 2347fe07..68e4ce30 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,6 +14,7 @@ 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; | ||
17 | import satellite.CubeSat3U; | 18 | import satellite.CubeSat3U; |
18 | import satellite.CubeSat6U; | 19 | import satellite.CubeSat6U; |
19 | import satellite.DirectedCommunicationLink; | 20 | import satellite.DirectedCommunicationLink; |
@@ -124,6 +125,13 @@ public class SatellitePackageImpl extends EPackageImpl implements SatellitePacka | |||
124 | * <!-- end-user-doc --> | 125 | * <!-- end-user-doc --> |
125 | * @generated | 126 | * @generated |
126 | */ | 127 | */ |
128 | private EClass cubeSatEClass = null; | ||
129 | |||
130 | /** | ||
131 | * <!-- begin-user-doc --> | ||
132 | * <!-- end-user-doc --> | ||
133 | * @generated | ||
134 | */ | ||
127 | private EEnum transceiverBandEEnum = null; | 135 | private EEnum transceiverBandEEnum = null; |
128 | 136 | ||
129 | /** | 137 | /** |
@@ -360,6 +368,16 @@ public class SatellitePackageImpl extends EPackageImpl implements SatellitePacka | |||
360 | * @generated | 368 | * @generated |
361 | */ | 369 | */ |
362 | @Override | 370 | @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 | ||
363 | public EClass getDirectedCommunicationLink() { | 381 | public EClass getDirectedCommunicationLink() { |
364 | return directedCommunicationLinkEClass; | 382 | return directedCommunicationLinkEClass; |
365 | } | 383 | } |
@@ -440,6 +458,16 @@ public class SatellitePackageImpl extends EPackageImpl implements SatellitePacka | |||
440 | * @generated | 458 | * @generated |
441 | */ | 459 | */ |
442 | @Override | 460 | @Override |
461 | public EClass getCubeSat() { | ||
462 | return cubeSatEClass; | ||
463 | } | ||
464 | |||
465 | /** | ||
466 | * <!-- begin-user-doc --> | ||
467 | * <!-- end-user-doc --> | ||
468 | * @generated | ||
469 | */ | ||
470 | @Override | ||
443 | public EEnum getTransceiverBand() { | 471 | public EEnum getTransceiverBand() { |
444 | return transceiverBandEEnum; | 472 | return transceiverBandEEnum; |
445 | } | 473 | } |
@@ -514,6 +542,7 @@ public class SatellitePackageImpl extends EPackageImpl implements SatellitePacka | |||
514 | commSubsystemEClass = createEClass(COMM_SUBSYSTEM); | 542 | commSubsystemEClass = createEClass(COMM_SUBSYSTEM); |
515 | createEAttribute(commSubsystemEClass, COMM_SUBSYSTEM__BAND); | 543 | createEAttribute(commSubsystemEClass, COMM_SUBSYSTEM__BAND); |
516 | createEAttribute(commSubsystemEClass, COMM_SUBSYSTEM__GAIN); | 544 | createEAttribute(commSubsystemEClass, COMM_SUBSYSTEM__GAIN); |
545 | createEReference(commSubsystemEClass, COMM_SUBSYSTEM__COMMUNICATION_LINK); | ||
517 | 546 | ||
518 | directedCommunicationLinkEClass = createEClass(DIRECTED_COMMUNICATION_LINK); | 547 | directedCommunicationLinkEClass = createEClass(DIRECTED_COMMUNICATION_LINK); |
519 | createEReference(directedCommunicationLinkEClass, DIRECTED_COMMUNICATION_LINK__SOURCE); | 548 | createEReference(directedCommunicationLinkEClass, DIRECTED_COMMUNICATION_LINK__SOURCE); |
@@ -529,6 +558,8 @@ public class SatellitePackageImpl extends EPackageImpl implements SatellitePacka | |||
529 | 558 | ||
530 | smallSatEClass = createEClass(SMALL_SAT); | 559 | smallSatEClass = createEClass(SMALL_SAT); |
531 | 560 | ||
561 | cubeSatEClass = createEClass(CUBE_SAT); | ||
562 | |||
532 | // Create enums | 563 | // Create enums |
533 | transceiverBandEEnum = createEEnum(TRANSCEIVER_BAND); | 564 | transceiverBandEEnum = createEEnum(TRANSCEIVER_BAND); |
534 | antennaGainEEnum = createEEnum(ANTENNA_GAIN); | 565 | antennaGainEEnum = createEEnum(ANTENNA_GAIN); |
@@ -568,9 +599,10 @@ public class SatellitePackageImpl extends EPackageImpl implements SatellitePacka | |||
568 | groundStationNetworkEClass.getESuperTypes().add(this.getCommunicatingElement()); | 599 | groundStationNetworkEClass.getESuperTypes().add(this.getCommunicatingElement()); |
569 | spacecraftEClass.getESuperTypes().add(this.getCommunicatingElement()); | 600 | spacecraftEClass.getESuperTypes().add(this.getCommunicatingElement()); |
570 | interferometryPayloadEClass.getESuperTypes().add(this.getPayload()); | 601 | interferometryPayloadEClass.getESuperTypes().add(this.getPayload()); |
571 | cubeSat3UEClass.getESuperTypes().add(this.getSpacecraft()); | 602 | cubeSat3UEClass.getESuperTypes().add(this.getCubeSat()); |
572 | cubeSat6UEClass.getESuperTypes().add(this.getSpacecraft()); | 603 | cubeSat6UEClass.getESuperTypes().add(this.getCubeSat()); |
573 | smallSatEClass.getESuperTypes().add(this.getSpacecraft()); | 604 | smallSatEClass.getESuperTypes().add(this.getSpacecraft()); |
605 | cubeSatEClass.getESuperTypes().add(this.getSpacecraft()); | ||
574 | 606 | ||
575 | // Initialize classes, features, and operations; add parameters | 607 | // Initialize classes, features, and operations; add parameters |
576 | initEClass(constellationMissionEClass, ConstellationMission.class, "ConstellationMission", IS_ABSTRACT, | 608 | initEClass(constellationMissionEClass, ConstellationMission.class, "ConstellationMission", IS_ABSTRACT, |
@@ -594,8 +626,8 @@ public class SatellitePackageImpl extends EPackageImpl implements SatellitePacka | |||
594 | 2, CommunicatingElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, | 626 | 2, CommunicatingElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, |
595 | !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | 627 | !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
596 | initEReference(getCommunicatingElement_CommunicationLink(), this.getDirectedCommunicationLink(), null, | 628 | initEReference(getCommunicatingElement_CommunicationLink(), this.getDirectedCommunicationLink(), null, |
597 | "communicationLink", null, 0, 1, CommunicatingElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, | 629 | "communicationLink", null, 0, 1, CommunicatingElement.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, |
598 | IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | 630 | !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); |
599 | 631 | ||
600 | initEClass(groundStationNetworkEClass, GroundStationNetwork.class, "GroundStationNetwork", !IS_ABSTRACT, | 632 | initEClass(groundStationNetworkEClass, GroundStationNetwork.class, "GroundStationNetwork", !IS_ABSTRACT, |
601 | !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | 633 | !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
@@ -614,6 +646,9 @@ public class SatellitePackageImpl extends EPackageImpl implements SatellitePacka | |||
614 | !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | 646 | !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
615 | initEAttribute(getCommSubsystem_Gain(), this.getAntennaGain(), "gain", null, 1, 1, CommSubsystem.class, | 647 | initEAttribute(getCommSubsystem_Gain(), this.getAntennaGain(), "gain", null, 1, 1, CommSubsystem.class, |
616 | !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | 648 | !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); | ||
617 | 652 | ||
618 | initEClass(directedCommunicationLinkEClass, DirectedCommunicationLink.class, "DirectedCommunicationLink", | 653 | initEClass(directedCommunicationLinkEClass, DirectedCommunicationLink.class, "DirectedCommunicationLink", |
619 | !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | 654 | !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
@@ -638,6 +673,8 @@ public class SatellitePackageImpl extends EPackageImpl implements SatellitePacka | |||
638 | initEClass(smallSatEClass, SmallSat.class, "SmallSat", !IS_ABSTRACT, !IS_INTERFACE, | 673 | initEClass(smallSatEClass, SmallSat.class, "SmallSat", !IS_ABSTRACT, !IS_INTERFACE, |
639 | IS_GENERATED_INSTANCE_CLASS); | 674 | IS_GENERATED_INSTANCE_CLASS); |
640 | 675 | ||
676 | initEClass(cubeSatEClass, CubeSat.class, "CubeSat", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
677 | |||
641 | // Initialize enums and add enum literals | 678 | // Initialize enums and add enum literals |
642 | initEEnum(transceiverBandEEnum, TransceiverBand.class, "TransceiverBand"); | 679 | initEEnum(transceiverBandEEnum, TransceiverBand.class, "TransceiverBand"); |
643 | addEEnumLiteral(transceiverBandEEnum, TransceiverBand.UHF); | 680 | addEEnumLiteral(transceiverBandEEnum, TransceiverBand.UHF); |
@@ -660,8 +697,6 @@ public class SatellitePackageImpl extends EPackageImpl implements SatellitePacka | |||
660 | // Create annotations | 697 | // Create annotations |
661 | // http://www.eclipse.org/emf/2002/Ecore | 698 | // http://www.eclipse.org/emf/2002/Ecore |
662 | createEcoreAnnotations(); | 699 | createEcoreAnnotations(); |
663 | // org.eclipse.viatra.query.querybasedfeature | ||
664 | createOrgAnnotations(); | ||
665 | } | 700 | } |
666 | 701 | ||
667 | /** | 702 | /** |
@@ -675,16 +710,4 @@ public class SatellitePackageImpl extends EPackageImpl implements SatellitePacka | |||
675 | addAnnotation(this, source, new String[] { "settingDelegates", "org.eclipse.viatra.query.querybasedfeature" }); | 710 | addAnnotation(this, source, new String[] { "settingDelegates", "org.eclipse.viatra.query.querybasedfeature" }); |
676 | } | 711 | } |
677 | 712 | ||
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 | |||
690 | } //SatellitePackageImpl | 713 | } //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 73609fbd..ef98fb07 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,7 +6,6 @@ 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; | ||
10 | import org.eclipse.emf.ecore.InternalEObject; | 9 | import org.eclipse.emf.ecore.InternalEObject; |
11 | 10 | ||
12 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | 11 | import org.eclipse.emf.ecore.impl.ENotificationImpl; |
@@ -42,15 +41,14 @@ public abstract class SpacecraftImpl extends CommunicatingElementImpl implements | |||
42 | protected Payload payload; | 41 | protected Payload payload; |
43 | 42 | ||
44 | /** | 43 | /** |
45 | * The cached setting delegate for the '{@link #getKind() <em>Kind</em>}' attribute. | 44 | * The default value of the '{@link #getKind() <em>Kind</em>}' attribute. |
46 | * <!-- begin-user-doc --> | 45 | * <!-- begin-user-doc --> |
47 | * <!-- end-user-doc --> | 46 | * <!-- end-user-doc --> |
48 | * @see #getKind() | 47 | * @see #getKind() |
49 | * @generated | 48 | * @generated |
50 | * @ordered | 49 | * @ordered |
51 | */ | 50 | */ |
52 | protected EStructuralFeature.Internal.SettingDelegate KIND__ESETTING_DELEGATE = ((EStructuralFeature.Internal) SatellitePackage.Literals.SPACECRAFT__KIND) | 51 | protected static final SpacecraftKind KIND_EDEFAULT = SpacecraftKind.CUBE_SAT3_U; |
53 | .getSettingDelegate(); | ||
54 | 52 | ||
55 | /** | 53 | /** |
56 | * <!-- begin-user-doc --> | 54 | * <!-- begin-user-doc --> |
@@ -130,7 +128,9 @@ public abstract class SpacecraftImpl extends CommunicatingElementImpl implements | |||
130 | */ | 128 | */ |
131 | @Override | 129 | @Override |
132 | public SpacecraftKind getKind() { | 130 | public SpacecraftKind getKind() { |
133 | return (SpacecraftKind) KIND__ESETTING_DELEGATE.dynamicGet(this, null, 0, true, false); | 131 | // TODO: implement this method to return the 'Kind' attribute |
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 KIND__ESETTING_DELEGATE.dynamicIsSet(this, null, 0); | 207 | return getKind() != KIND_EDEFAULT; |
208 | } | 208 | } |
209 | return super.eIsSet(featureID); | 209 | return super.eIsSet(featureID); |
210 | } | 210 | } |