diff options
Diffstat (limited to 'Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/impl')
15 files changed, 0 insertions, 2544 deletions
diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/impl/CommSubsystemImpl.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/impl/CommSubsystemImpl.java deleted file mode 100644 index fbde1603..00000000 --- a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/impl/CommSubsystemImpl.java +++ /dev/null | |||
@@ -1,226 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.domains.satellite.impl; | ||
4 | |||
5 | import hu.bme.mit.inf.dslreasoner.domains.satellite.AntennaGain; | ||
6 | import hu.bme.mit.inf.dslreasoner.domains.satellite.CommSubsystem; | ||
7 | import hu.bme.mit.inf.dslreasoner.domains.satellite.SatellitePackage; | ||
8 | import hu.bme.mit.inf.dslreasoner.domains.satellite.TransceiverBand; | ||
9 | |||
10 | import org.eclipse.emf.common.notify.Notification; | ||
11 | |||
12 | import org.eclipse.emf.ecore.EClass; | ||
13 | |||
14 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
15 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
16 | |||
17 | /** | ||
18 | * <!-- begin-user-doc --> | ||
19 | * An implementation of the model object '<em><b>Comm Subsystem</b></em>'. | ||
20 | * <!-- end-user-doc --> | ||
21 | * <p> | ||
22 | * The following features are implemented: | ||
23 | * </p> | ||
24 | * <ul> | ||
25 | * <li>{@link hu.bme.mit.inf.dslreasoner.domains.satellite.impl.CommSubsystemImpl#getBand <em>Band</em>}</li> | ||
26 | * <li>{@link hu.bme.mit.inf.dslreasoner.domains.satellite.impl.CommSubsystemImpl#getGain <em>Gain</em>}</li> | ||
27 | * </ul> | ||
28 | * | ||
29 | * @generated | ||
30 | */ | ||
31 | public class CommSubsystemImpl extends MinimalEObjectImpl.Container implements CommSubsystem { | ||
32 | /** | ||
33 | * The default value of the '{@link #getBand() <em>Band</em>}' attribute. | ||
34 | * <!-- begin-user-doc --> | ||
35 | * <!-- end-user-doc --> | ||
36 | * @see #getBand() | ||
37 | * @generated | ||
38 | * @ordered | ||
39 | */ | ||
40 | protected static final TransceiverBand BAND_EDEFAULT = TransceiverBand.UHF; | ||
41 | |||
42 | /** | ||
43 | * The cached value of the '{@link #getBand() <em>Band</em>}' attribute. | ||
44 | * <!-- begin-user-doc --> | ||
45 | * <!-- end-user-doc --> | ||
46 | * @see #getBand() | ||
47 | * @generated | ||
48 | * @ordered | ||
49 | */ | ||
50 | protected TransceiverBand band = BAND_EDEFAULT; | ||
51 | |||
52 | /** | ||
53 | * The default value of the '{@link #getGain() <em>Gain</em>}' attribute. | ||
54 | * <!-- begin-user-doc --> | ||
55 | * <!-- end-user-doc --> | ||
56 | * @see #getGain() | ||
57 | * @generated | ||
58 | * @ordered | ||
59 | */ | ||
60 | protected static final AntennaGain GAIN_EDEFAULT = AntennaGain.LOW; | ||
61 | |||
62 | /** | ||
63 | * The cached value of the '{@link #getGain() <em>Gain</em>}' attribute. | ||
64 | * <!-- begin-user-doc --> | ||
65 | * <!-- end-user-doc --> | ||
66 | * @see #getGain() | ||
67 | * @generated | ||
68 | * @ordered | ||
69 | */ | ||
70 | protected AntennaGain gain = GAIN_EDEFAULT; | ||
71 | |||
72 | /** | ||
73 | * <!-- begin-user-doc --> | ||
74 | * <!-- end-user-doc --> | ||
75 | * @generated | ||
76 | */ | ||
77 | protected CommSubsystemImpl() { | ||
78 | super(); | ||
79 | } | ||
80 | |||
81 | /** | ||
82 | * <!-- begin-user-doc --> | ||
83 | * <!-- end-user-doc --> | ||
84 | * @generated | ||
85 | */ | ||
86 | @Override | ||
87 | protected EClass eStaticClass() { | ||
88 | return SatellitePackage.Literals.COMM_SUBSYSTEM; | ||
89 | } | ||
90 | |||
91 | /** | ||
92 | * <!-- begin-user-doc --> | ||
93 | * <!-- end-user-doc --> | ||
94 | * @generated | ||
95 | */ | ||
96 | @Override | ||
97 | public TransceiverBand getBand() { | ||
98 | return band; | ||
99 | } | ||
100 | |||
101 | /** | ||
102 | * <!-- begin-user-doc --> | ||
103 | * <!-- end-user-doc --> | ||
104 | * @generated | ||
105 | */ | ||
106 | @Override | ||
107 | public void setBand(TransceiverBand newBand) { | ||
108 | TransceiverBand oldBand = band; | ||
109 | band = newBand == null ? BAND_EDEFAULT : newBand; | ||
110 | if (eNotificationRequired()) | ||
111 | eNotify(new ENotificationImpl(this, Notification.SET, SatellitePackage.COMM_SUBSYSTEM__BAND, oldBand, | ||
112 | band)); | ||
113 | } | ||
114 | |||
115 | /** | ||
116 | * <!-- begin-user-doc --> | ||
117 | * <!-- end-user-doc --> | ||
118 | * @generated | ||
119 | */ | ||
120 | @Override | ||
121 | public AntennaGain getGain() { | ||
122 | return gain; | ||
123 | } | ||
124 | |||
125 | /** | ||
126 | * <!-- begin-user-doc --> | ||
127 | * <!-- end-user-doc --> | ||
128 | * @generated | ||
129 | */ | ||
130 | @Override | ||
131 | public void setGain(AntennaGain newGain) { | ||
132 | AntennaGain oldGain = gain; | ||
133 | gain = newGain == null ? GAIN_EDEFAULT : newGain; | ||
134 | if (eNotificationRequired()) | ||
135 | eNotify(new ENotificationImpl(this, Notification.SET, SatellitePackage.COMM_SUBSYSTEM__GAIN, oldGain, | ||
136 | gain)); | ||
137 | } | ||
138 | |||
139 | /** | ||
140 | * <!-- begin-user-doc --> | ||
141 | * <!-- end-user-doc --> | ||
142 | * @generated | ||
143 | */ | ||
144 | @Override | ||
145 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
146 | switch (featureID) { | ||
147 | case SatellitePackage.COMM_SUBSYSTEM__BAND: | ||
148 | return getBand(); | ||
149 | case SatellitePackage.COMM_SUBSYSTEM__GAIN: | ||
150 | return getGain(); | ||
151 | } | ||
152 | return super.eGet(featureID, resolve, coreType); | ||
153 | } | ||
154 | |||
155 | /** | ||
156 | * <!-- begin-user-doc --> | ||
157 | * <!-- end-user-doc --> | ||
158 | * @generated | ||
159 | */ | ||
160 | @Override | ||
161 | public void eSet(int featureID, Object newValue) { | ||
162 | switch (featureID) { | ||
163 | case SatellitePackage.COMM_SUBSYSTEM__BAND: | ||
164 | setBand((TransceiverBand) newValue); | ||
165 | return; | ||
166 | case SatellitePackage.COMM_SUBSYSTEM__GAIN: | ||
167 | setGain((AntennaGain) newValue); | ||
168 | return; | ||
169 | } | ||
170 | super.eSet(featureID, newValue); | ||
171 | } | ||
172 | |||
173 | /** | ||
174 | * <!-- begin-user-doc --> | ||
175 | * <!-- end-user-doc --> | ||
176 | * @generated | ||
177 | */ | ||
178 | @Override | ||
179 | public void eUnset(int featureID) { | ||
180 | switch (featureID) { | ||
181 | case SatellitePackage.COMM_SUBSYSTEM__BAND: | ||
182 | setBand(BAND_EDEFAULT); | ||
183 | return; | ||
184 | case SatellitePackage.COMM_SUBSYSTEM__GAIN: | ||
185 | setGain(GAIN_EDEFAULT); | ||
186 | return; | ||
187 | } | ||
188 | super.eUnset(featureID); | ||
189 | } | ||
190 | |||
191 | /** | ||
192 | * <!-- begin-user-doc --> | ||
193 | * <!-- end-user-doc --> | ||
194 | * @generated | ||
195 | */ | ||
196 | @Override | ||
197 | public boolean eIsSet(int featureID) { | ||
198 | switch (featureID) { | ||
199 | case SatellitePackage.COMM_SUBSYSTEM__BAND: | ||
200 | return band != BAND_EDEFAULT; | ||
201 | case SatellitePackage.COMM_SUBSYSTEM__GAIN: | ||
202 | return gain != GAIN_EDEFAULT; | ||
203 | } | ||
204 | return super.eIsSet(featureID); | ||
205 | } | ||
206 | |||
207 | /** | ||
208 | * <!-- begin-user-doc --> | ||
209 | * <!-- end-user-doc --> | ||
210 | * @generated | ||
211 | */ | ||
212 | @Override | ||
213 | public String toString() { | ||
214 | if (eIsProxy()) | ||
215 | return super.toString(); | ||
216 | |||
217 | StringBuilder result = new StringBuilder(super.toString()); | ||
218 | result.append(" (band: "); | ||
219 | result.append(band); | ||
220 | result.append(", gain: "); | ||
221 | result.append(gain); | ||
222 | result.append(')'); | ||
223 | return result.toString(); | ||
224 | } | ||
225 | |||
226 | } //CommSubsystemImpl | ||
diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/impl/CommunicatingElementImpl.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/impl/CommunicatingElementImpl.java deleted file mode 100644 index 4b51e52e..00000000 --- a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/impl/CommunicatingElementImpl.java +++ /dev/null | |||
@@ -1,237 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.domains.satellite.impl; | ||
4 | |||
5 | import hu.bme.mit.inf.dslreasoner.domains.satellite.CommSubsystem; | ||
6 | import hu.bme.mit.inf.dslreasoner.domains.satellite.CommunicatingElement; | ||
7 | import hu.bme.mit.inf.dslreasoner.domains.satellite.DirectedCommunicationLink; | ||
8 | import hu.bme.mit.inf.dslreasoner.domains.satellite.SatellitePackage; | ||
9 | |||
10 | import java.util.Collection; | ||
11 | |||
12 | import org.eclipse.emf.common.notify.Notification; | ||
13 | import org.eclipse.emf.common.notify.NotificationChain; | ||
14 | |||
15 | import org.eclipse.emf.common.util.EList; | ||
16 | |||
17 | import org.eclipse.emf.ecore.EClass; | ||
18 | import org.eclipse.emf.ecore.InternalEObject; | ||
19 | |||
20 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
21 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
22 | |||
23 | import org.eclipse.emf.ecore.util.EObjectContainmentEList; | ||
24 | import org.eclipse.emf.ecore.util.InternalEList; | ||
25 | |||
26 | /** | ||
27 | * <!-- begin-user-doc --> | ||
28 | * An implementation of the model object '<em><b>Communicating Element</b></em>'. | ||
29 | * <!-- end-user-doc --> | ||
30 | * <p> | ||
31 | * The following features are implemented: | ||
32 | * </p> | ||
33 | * <ul> | ||
34 | * <li>{@link hu.bme.mit.inf.dslreasoner.domains.satellite.impl.CommunicatingElementImpl#getCommSubsystem <em>Comm Subsystem</em>}</li> | ||
35 | * <li>{@link hu.bme.mit.inf.dslreasoner.domains.satellite.impl.CommunicatingElementImpl#getCommunicationLink <em>Communication Link</em>}</li> | ||
36 | * </ul> | ||
37 | * | ||
38 | * @generated | ||
39 | */ | ||
40 | public abstract class CommunicatingElementImpl extends MinimalEObjectImpl.Container implements CommunicatingElement { | ||
41 | /** | ||
42 | * The cached value of the '{@link #getCommSubsystem() <em>Comm Subsystem</em>}' containment reference list. | ||
43 | * <!-- begin-user-doc --> | ||
44 | * <!-- end-user-doc --> | ||
45 | * @see #getCommSubsystem() | ||
46 | * @generated | ||
47 | * @ordered | ||
48 | */ | ||
49 | protected EList<CommSubsystem> commSubsystem; | ||
50 | |||
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 | /** | ||
62 | * <!-- begin-user-doc --> | ||
63 | * <!-- end-user-doc --> | ||
64 | * @generated | ||
65 | */ | ||
66 | protected CommunicatingElementImpl() { | ||
67 | super(); | ||
68 | } | ||
69 | |||
70 | /** | ||
71 | * <!-- begin-user-doc --> | ||
72 | * <!-- end-user-doc --> | ||
73 | * @generated | ||
74 | */ | ||
75 | @Override | ||
76 | protected EClass eStaticClass() { | ||
77 | return SatellitePackage.Literals.COMMUNICATING_ELEMENT; | ||
78 | } | ||
79 | |||
80 | /** | ||
81 | * <!-- begin-user-doc --> | ||
82 | * <!-- end-user-doc --> | ||
83 | * @generated | ||
84 | */ | ||
85 | @Override | ||
86 | public EList<CommSubsystem> getCommSubsystem() { | ||
87 | if (commSubsystem == null) { | ||
88 | commSubsystem = new EObjectContainmentEList<CommSubsystem>(CommSubsystem.class, this, | ||
89 | SatellitePackage.COMMUNICATING_ELEMENT__COMM_SUBSYSTEM); | ||
90 | } | ||
91 | return commSubsystem; | ||
92 | } | ||
93 | |||
94 | /** | ||
95 | * <!-- begin-user-doc --> | ||
96 | * <!-- end-user-doc --> | ||
97 | * @generated | ||
98 | */ | ||
99 | @Override | ||
100 | public DirectedCommunicationLink getCommunicationLink() { | ||
101 | return communicationLink; | ||
102 | } | ||
103 | |||
104 | /** | ||
105 | * <!-- begin-user-doc --> | ||
106 | * <!-- end-user-doc --> | ||
107 | * @generated | ||
108 | */ | ||
109 | public NotificationChain basicSetCommunicationLink(DirectedCommunicationLink newCommunicationLink, | ||
110 | NotificationChain msgs) { | ||
111 | DirectedCommunicationLink oldCommunicationLink = communicationLink; | ||
112 | communicationLink = newCommunicationLink; | ||
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)); | ||
149 | } | ||
150 | |||
151 | /** | ||
152 | * <!-- begin-user-doc --> | ||
153 | * <!-- end-user-doc --> | ||
154 | * @generated | ||
155 | */ | ||
156 | @Override | ||
157 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
158 | switch (featureID) { | ||
159 | case SatellitePackage.COMMUNICATING_ELEMENT__COMM_SUBSYSTEM: | ||
160 | return ((InternalEList<?>) getCommSubsystem()).basicRemove(otherEnd, msgs); | ||
161 | case SatellitePackage.COMMUNICATING_ELEMENT__COMMUNICATION_LINK: | ||
162 | return basicSetCommunicationLink(null, msgs); | ||
163 | } | ||
164 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
165 | } | ||
166 | |||
167 | /** | ||
168 | * <!-- begin-user-doc --> | ||
169 | * <!-- end-user-doc --> | ||
170 | * @generated | ||
171 | */ | ||
172 | @Override | ||
173 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
174 | switch (featureID) { | ||
175 | case SatellitePackage.COMMUNICATING_ELEMENT__COMM_SUBSYSTEM: | ||
176 | return getCommSubsystem(); | ||
177 | case SatellitePackage.COMMUNICATING_ELEMENT__COMMUNICATION_LINK: | ||
178 | return getCommunicationLink(); | ||
179 | } | ||
180 | return super.eGet(featureID, resolve, coreType); | ||
181 | } | ||
182 | |||
183 | /** | ||
184 | * <!-- begin-user-doc --> | ||
185 | * <!-- end-user-doc --> | ||
186 | * @generated | ||
187 | */ | ||
188 | @SuppressWarnings("unchecked") | ||
189 | @Override | ||
190 | public void eSet(int featureID, Object newValue) { | ||
191 | switch (featureID) { | ||
192 | case SatellitePackage.COMMUNICATING_ELEMENT__COMM_SUBSYSTEM: | ||
193 | getCommSubsystem().clear(); | ||
194 | getCommSubsystem().addAll((Collection<? extends CommSubsystem>) newValue); | ||
195 | return; | ||
196 | case SatellitePackage.COMMUNICATING_ELEMENT__COMMUNICATION_LINK: | ||
197 | setCommunicationLink((DirectedCommunicationLink) newValue); | ||
198 | return; | ||
199 | } | ||
200 | super.eSet(featureID, newValue); | ||
201 | } | ||
202 | |||
203 | /** | ||
204 | * <!-- begin-user-doc --> | ||
205 | * <!-- end-user-doc --> | ||
206 | * @generated | ||
207 | */ | ||
208 | @Override | ||
209 | public void eUnset(int featureID) { | ||
210 | switch (featureID) { | ||
211 | case SatellitePackage.COMMUNICATING_ELEMENT__COMM_SUBSYSTEM: | ||
212 | getCommSubsystem().clear(); | ||
213 | return; | ||
214 | case SatellitePackage.COMMUNICATING_ELEMENT__COMMUNICATION_LINK: | ||
215 | setCommunicationLink((DirectedCommunicationLink) null); | ||
216 | return; | ||
217 | } | ||
218 | super.eUnset(featureID); | ||
219 | } | ||
220 | |||
221 | /** | ||
222 | * <!-- begin-user-doc --> | ||
223 | * <!-- end-user-doc --> | ||
224 | * @generated | ||
225 | */ | ||
226 | @Override | ||
227 | public boolean eIsSet(int featureID) { | ||
228 | switch (featureID) { | ||
229 | case SatellitePackage.COMMUNICATING_ELEMENT__COMM_SUBSYSTEM: | ||
230 | return commSubsystem != null && !commSubsystem.isEmpty(); | ||
231 | case SatellitePackage.COMMUNICATING_ELEMENT__COMMUNICATION_LINK: | ||
232 | return communicationLink != null; | ||
233 | } | ||
234 | return super.eIsSet(featureID); | ||
235 | } | ||
236 | |||
237 | } //CommunicatingElementImpl | ||
diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/impl/ConstellationMissionImpl.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/impl/ConstellationMissionImpl.java deleted file mode 100644 index 710b5982..00000000 --- a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/impl/ConstellationMissionImpl.java +++ /dev/null | |||
@@ -1,237 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.domains.satellite.impl; | ||
4 | |||
5 | import hu.bme.mit.inf.dslreasoner.domains.satellite.ConstellationMission; | ||
6 | import hu.bme.mit.inf.dslreasoner.domains.satellite.GroundStationNetwork; | ||
7 | import hu.bme.mit.inf.dslreasoner.domains.satellite.SatellitePackage; | ||
8 | import hu.bme.mit.inf.dslreasoner.domains.satellite.Spacecraft; | ||
9 | |||
10 | import java.util.Collection; | ||
11 | |||
12 | import org.eclipse.emf.common.notify.Notification; | ||
13 | import org.eclipse.emf.common.notify.NotificationChain; | ||
14 | |||
15 | import org.eclipse.emf.common.util.EList; | ||
16 | |||
17 | import org.eclipse.emf.ecore.EClass; | ||
18 | import org.eclipse.emf.ecore.InternalEObject; | ||
19 | |||
20 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
21 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
22 | |||
23 | import org.eclipse.emf.ecore.util.EObjectContainmentEList; | ||
24 | import org.eclipse.emf.ecore.util.InternalEList; | ||
25 | |||
26 | /** | ||
27 | * <!-- begin-user-doc --> | ||
28 | * An implementation of the model object '<em><b>Constellation Mission</b></em>'. | ||
29 | * <!-- end-user-doc --> | ||
30 | * <p> | ||
31 | * The following features are implemented: | ||
32 | * </p> | ||
33 | * <ul> | ||
34 | * <li>{@link hu.bme.mit.inf.dslreasoner.domains.satellite.impl.ConstellationMissionImpl#getGroundStationNetwork <em>Ground Station Network</em>}</li> | ||
35 | * <li>{@link hu.bme.mit.inf.dslreasoner.domains.satellite.impl.ConstellationMissionImpl#getSpacecraft <em>Spacecraft</em>}</li> | ||
36 | * </ul> | ||
37 | * | ||
38 | * @generated | ||
39 | */ | ||
40 | public abstract class ConstellationMissionImpl extends MinimalEObjectImpl.Container implements ConstellationMission { | ||
41 | /** | ||
42 | * The cached value of the '{@link #getGroundStationNetwork() <em>Ground Station Network</em>}' containment reference. | ||
43 | * <!-- begin-user-doc --> | ||
44 | * <!-- end-user-doc --> | ||
45 | * @see #getGroundStationNetwork() | ||
46 | * @generated | ||
47 | * @ordered | ||
48 | */ | ||
49 | protected GroundStationNetwork groundStationNetwork; | ||
50 | |||
51 | /** | ||
52 | * The cached value of the '{@link #getSpacecraft() <em>Spacecraft</em>}' containment reference list. | ||
53 | * <!-- begin-user-doc --> | ||
54 | * <!-- end-user-doc --> | ||
55 | * @see #getSpacecraft() | ||
56 | * @generated | ||
57 | * @ordered | ||
58 | */ | ||
59 | protected EList<Spacecraft> spacecraft; | ||
60 | |||
61 | /** | ||
62 | * <!-- begin-user-doc --> | ||
63 | * <!-- end-user-doc --> | ||
64 | * @generated | ||
65 | */ | ||
66 | protected ConstellationMissionImpl() { | ||
67 | super(); | ||
68 | } | ||
69 | |||
70 | /** | ||
71 | * <!-- begin-user-doc --> | ||
72 | * <!-- end-user-doc --> | ||
73 | * @generated | ||
74 | */ | ||
75 | @Override | ||
76 | protected EClass eStaticClass() { | ||
77 | return SatellitePackage.Literals.CONSTELLATION_MISSION; | ||
78 | } | ||
79 | |||
80 | /** | ||
81 | * <!-- begin-user-doc --> | ||
82 | * <!-- end-user-doc --> | ||
83 | * @generated | ||
84 | */ | ||
85 | @Override | ||
86 | public GroundStationNetwork getGroundStationNetwork() { | ||
87 | return groundStationNetwork; | ||
88 | } | ||
89 | |||
90 | /** | ||
91 | * <!-- begin-user-doc --> | ||
92 | * <!-- end-user-doc --> | ||
93 | * @generated | ||
94 | */ | ||
95 | public NotificationChain basicSetGroundStationNetwork(GroundStationNetwork newGroundStationNetwork, | ||
96 | NotificationChain msgs) { | ||
97 | GroundStationNetwork oldGroundStationNetwork = groundStationNetwork; | ||
98 | groundStationNetwork = newGroundStationNetwork; | ||
99 | if (eNotificationRequired()) { | ||
100 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, | ||
101 | SatellitePackage.CONSTELLATION_MISSION__GROUND_STATION_NETWORK, oldGroundStationNetwork, | ||
102 | newGroundStationNetwork); | ||
103 | if (msgs == null) | ||
104 | msgs = notification; | ||
105 | else | ||
106 | msgs.add(notification); | ||
107 | } | ||
108 | return msgs; | ||
109 | } | ||
110 | |||
111 | /** | ||
112 | * <!-- begin-user-doc --> | ||
113 | * <!-- end-user-doc --> | ||
114 | * @generated | ||
115 | */ | ||
116 | @Override | ||
117 | public void setGroundStationNetwork(GroundStationNetwork newGroundStationNetwork) { | ||
118 | if (newGroundStationNetwork != groundStationNetwork) { | ||
119 | NotificationChain msgs = null; | ||
120 | if (groundStationNetwork != null) | ||
121 | msgs = ((InternalEObject) groundStationNetwork).eInverseRemove(this, | ||
122 | EOPPOSITE_FEATURE_BASE - SatellitePackage.CONSTELLATION_MISSION__GROUND_STATION_NETWORK, null, | ||
123 | msgs); | ||
124 | if (newGroundStationNetwork != null) | ||
125 | msgs = ((InternalEObject) newGroundStationNetwork).eInverseAdd(this, | ||
126 | EOPPOSITE_FEATURE_BASE - SatellitePackage.CONSTELLATION_MISSION__GROUND_STATION_NETWORK, null, | ||
127 | msgs); | ||
128 | msgs = basicSetGroundStationNetwork(newGroundStationNetwork, msgs); | ||
129 | if (msgs != null) | ||
130 | msgs.dispatch(); | ||
131 | } else if (eNotificationRequired()) | ||
132 | eNotify(new ENotificationImpl(this, Notification.SET, | ||
133 | SatellitePackage.CONSTELLATION_MISSION__GROUND_STATION_NETWORK, newGroundStationNetwork, | ||
134 | newGroundStationNetwork)); | ||
135 | } | ||
136 | |||
137 | /** | ||
138 | * <!-- begin-user-doc --> | ||
139 | * <!-- end-user-doc --> | ||
140 | * @generated | ||
141 | */ | ||
142 | @Override | ||
143 | public EList<Spacecraft> getSpacecraft() { | ||
144 | if (spacecraft == null) { | ||
145 | spacecraft = new EObjectContainmentEList<Spacecraft>(Spacecraft.class, this, | ||
146 | SatellitePackage.CONSTELLATION_MISSION__SPACECRAFT); | ||
147 | } | ||
148 | return spacecraft; | ||
149 | } | ||
150 | |||
151 | /** | ||
152 | * <!-- begin-user-doc --> | ||
153 | * <!-- end-user-doc --> | ||
154 | * @generated | ||
155 | */ | ||
156 | @Override | ||
157 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
158 | switch (featureID) { | ||
159 | case SatellitePackage.CONSTELLATION_MISSION__GROUND_STATION_NETWORK: | ||
160 | return basicSetGroundStationNetwork(null, msgs); | ||
161 | case SatellitePackage.CONSTELLATION_MISSION__SPACECRAFT: | ||
162 | return ((InternalEList<?>) getSpacecraft()).basicRemove(otherEnd, msgs); | ||
163 | } | ||
164 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
165 | } | ||
166 | |||
167 | /** | ||
168 | * <!-- begin-user-doc --> | ||
169 | * <!-- end-user-doc --> | ||
170 | * @generated | ||
171 | */ | ||
172 | @Override | ||
173 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
174 | switch (featureID) { | ||
175 | case SatellitePackage.CONSTELLATION_MISSION__GROUND_STATION_NETWORK: | ||
176 | return getGroundStationNetwork(); | ||
177 | case SatellitePackage.CONSTELLATION_MISSION__SPACECRAFT: | ||
178 | return getSpacecraft(); | ||
179 | } | ||
180 | return super.eGet(featureID, resolve, coreType); | ||
181 | } | ||
182 | |||
183 | /** | ||
184 | * <!-- begin-user-doc --> | ||
185 | * <!-- end-user-doc --> | ||
186 | * @generated | ||
187 | */ | ||
188 | @SuppressWarnings("unchecked") | ||
189 | @Override | ||
190 | public void eSet(int featureID, Object newValue) { | ||
191 | switch (featureID) { | ||
192 | case SatellitePackage.CONSTELLATION_MISSION__GROUND_STATION_NETWORK: | ||
193 | setGroundStationNetwork((GroundStationNetwork) newValue); | ||
194 | return; | ||
195 | case SatellitePackage.CONSTELLATION_MISSION__SPACECRAFT: | ||
196 | getSpacecraft().clear(); | ||
197 | getSpacecraft().addAll((Collection<? extends Spacecraft>) newValue); | ||
198 | return; | ||
199 | } | ||
200 | super.eSet(featureID, newValue); | ||
201 | } | ||
202 | |||
203 | /** | ||
204 | * <!-- begin-user-doc --> | ||
205 | * <!-- end-user-doc --> | ||
206 | * @generated | ||
207 | */ | ||
208 | @Override | ||
209 | public void eUnset(int featureID) { | ||
210 | switch (featureID) { | ||
211 | case SatellitePackage.CONSTELLATION_MISSION__GROUND_STATION_NETWORK: | ||
212 | setGroundStationNetwork((GroundStationNetwork) null); | ||
213 | return; | ||
214 | case SatellitePackage.CONSTELLATION_MISSION__SPACECRAFT: | ||
215 | getSpacecraft().clear(); | ||
216 | return; | ||
217 | } | ||
218 | super.eUnset(featureID); | ||
219 | } | ||
220 | |||
221 | /** | ||
222 | * <!-- begin-user-doc --> | ||
223 | * <!-- end-user-doc --> | ||
224 | * @generated | ||
225 | */ | ||
226 | @Override | ||
227 | public boolean eIsSet(int featureID) { | ||
228 | switch (featureID) { | ||
229 | case SatellitePackage.CONSTELLATION_MISSION__GROUND_STATION_NETWORK: | ||
230 | return groundStationNetwork != null; | ||
231 | case SatellitePackage.CONSTELLATION_MISSION__SPACECRAFT: | ||
232 | return spacecraft != null && !spacecraft.isEmpty(); | ||
233 | } | ||
234 | return super.eIsSet(featureID); | ||
235 | } | ||
236 | |||
237 | } //ConstellationMissionImpl | ||
diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/impl/CubeSat3UImpl.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/impl/CubeSat3UImpl.java deleted file mode 100644 index 3e0d6f2c..00000000 --- a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/impl/CubeSat3UImpl.java +++ /dev/null | |||
@@ -1,37 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.domains.satellite.impl; | ||
4 | |||
5 | import hu.bme.mit.inf.dslreasoner.domains.satellite.CubeSat3U; | ||
6 | import hu.bme.mit.inf.dslreasoner.domains.satellite.SatellitePackage; | ||
7 | |||
8 | import org.eclipse.emf.ecore.EClass; | ||
9 | |||
10 | /** | ||
11 | * <!-- begin-user-doc --> | ||
12 | * An implementation of the model object '<em><b>Cube Sat3 U</b></em>'. | ||
13 | * <!-- end-user-doc --> | ||
14 | * | ||
15 | * @generated | ||
16 | */ | ||
17 | public class CubeSat3UImpl extends CubeSatImpl implements CubeSat3U { | ||
18 | /** | ||
19 | * <!-- begin-user-doc --> | ||
20 | * <!-- end-user-doc --> | ||
21 | * @generated | ||
22 | */ | ||
23 | protected CubeSat3UImpl() { | ||
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_SAT3_U; | ||
35 | } | ||
36 | |||
37 | } //CubeSat3UImpl | ||
diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/impl/CubeSat6UImpl.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/impl/CubeSat6UImpl.java deleted file mode 100644 index 7ad2bc87..00000000 --- a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/impl/CubeSat6UImpl.java +++ /dev/null | |||
@@ -1,37 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.domains.satellite.impl; | ||
4 | |||
5 | import hu.bme.mit.inf.dslreasoner.domains.satellite.CubeSat6U; | ||
6 | import hu.bme.mit.inf.dslreasoner.domains.satellite.SatellitePackage; | ||
7 | |||
8 | import org.eclipse.emf.ecore.EClass; | ||
9 | |||
10 | /** | ||
11 | * <!-- begin-user-doc --> | ||
12 | * An implementation of the model object '<em><b>Cube Sat6 U</b></em>'. | ||
13 | * <!-- end-user-doc --> | ||
14 | * | ||
15 | * @generated | ||
16 | */ | ||
17 | public class CubeSat6UImpl extends CubeSatImpl implements CubeSat6U { | ||
18 | /** | ||
19 | * <!-- begin-user-doc --> | ||
20 | * <!-- end-user-doc --> | ||
21 | * @generated | ||
22 | */ | ||
23 | protected CubeSat6UImpl() { | ||
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_SAT6_U; | ||
35 | } | ||
36 | |||
37 | } //CubeSat6UImpl | ||
diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/impl/CubeSatImpl.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/impl/CubeSatImpl.java deleted file mode 100644 index b8e364a3..00000000 --- a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/impl/CubeSatImpl.java +++ /dev/null | |||
@@ -1,37 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.domains.satellite.impl; | ||
4 | |||
5 | import hu.bme.mit.inf.dslreasoner.domains.satellite.CubeSat; | ||
6 | import hu.bme.mit.inf.dslreasoner.domains.satellite.SatellitePackage; | ||
7 | |||
8 | import org.eclipse.emf.ecore.EClass; | ||
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/hu/bme/mit/inf/dslreasoner/domains/satellite/impl/DirectedCommunicationLinkImpl.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/impl/DirectedCommunicationLinkImpl.java deleted file mode 100644 index b0338e2d..00000000 --- a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/impl/DirectedCommunicationLinkImpl.java +++ /dev/null | |||
@@ -1,227 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.domains.satellite.impl; | ||
4 | |||
5 | import hu.bme.mit.inf.dslreasoner.domains.satellite.CommSubsystem; | ||
6 | import hu.bme.mit.inf.dslreasoner.domains.satellite.DirectedCommunicationLink; | ||
7 | import hu.bme.mit.inf.dslreasoner.domains.satellite.SatellitePackage; | ||
8 | |||
9 | import org.eclipse.emf.common.notify.Notification; | ||
10 | |||
11 | import org.eclipse.emf.ecore.EClass; | ||
12 | import org.eclipse.emf.ecore.InternalEObject; | ||
13 | |||
14 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
15 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
16 | |||
17 | /** | ||
18 | * <!-- begin-user-doc --> | ||
19 | * An implementation of the model object '<em><b>Directed Communication Link</b></em>'. | ||
20 | * <!-- end-user-doc --> | ||
21 | * <p> | ||
22 | * The following features are implemented: | ||
23 | * </p> | ||
24 | * <ul> | ||
25 | * <li>{@link hu.bme.mit.inf.dslreasoner.domains.satellite.impl.DirectedCommunicationLinkImpl#getSource <em>Source</em>}</li> | ||
26 | * <li>{@link hu.bme.mit.inf.dslreasoner.domains.satellite.impl.DirectedCommunicationLinkImpl#getTarget <em>Target</em>}</li> | ||
27 | * </ul> | ||
28 | * | ||
29 | * @generated | ||
30 | */ | ||
31 | public class DirectedCommunicationLinkImpl extends MinimalEObjectImpl.Container implements DirectedCommunicationLink { | ||
32 | /** | ||
33 | * The cached value of the '{@link #getSource() <em>Source</em>}' reference. | ||
34 | * <!-- begin-user-doc --> | ||
35 | * <!-- end-user-doc --> | ||
36 | * @see #getSource() | ||
37 | * @generated | ||
38 | * @ordered | ||
39 | */ | ||
40 | protected CommSubsystem source; | ||
41 | |||
42 | /** | ||
43 | * The cached value of the '{@link #getTarget() <em>Target</em>}' reference. | ||
44 | * <!-- begin-user-doc --> | ||
45 | * <!-- end-user-doc --> | ||
46 | * @see #getTarget() | ||
47 | * @generated | ||
48 | * @ordered | ||
49 | */ | ||
50 | protected CommSubsystem target; | ||
51 | |||
52 | /** | ||
53 | * <!-- begin-user-doc --> | ||
54 | * <!-- end-user-doc --> | ||
55 | * @generated | ||
56 | */ | ||
57 | protected DirectedCommunicationLinkImpl() { | ||
58 | super(); | ||
59 | } | ||
60 | |||
61 | /** | ||
62 | * <!-- begin-user-doc --> | ||
63 | * <!-- end-user-doc --> | ||
64 | * @generated | ||
65 | */ | ||
66 | @Override | ||
67 | protected EClass eStaticClass() { | ||
68 | return SatellitePackage.Literals.DIRECTED_COMMUNICATION_LINK; | ||
69 | } | ||
70 | |||
71 | /** | ||
72 | * <!-- begin-user-doc --> | ||
73 | * <!-- end-user-doc --> | ||
74 | * @generated | ||
75 | */ | ||
76 | @Override | ||
77 | public CommSubsystem getSource() { | ||
78 | if (source != null && source.eIsProxy()) { | ||
79 | InternalEObject oldSource = (InternalEObject) source; | ||
80 | source = (CommSubsystem) eResolveProxy(oldSource); | ||
81 | if (source != oldSource) { | ||
82 | if (eNotificationRequired()) | ||
83 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, | ||
84 | SatellitePackage.DIRECTED_COMMUNICATION_LINK__SOURCE, oldSource, source)); | ||
85 | } | ||
86 | } | ||
87 | return source; | ||
88 | } | ||
89 | |||
90 | /** | ||
91 | * <!-- begin-user-doc --> | ||
92 | * <!-- end-user-doc --> | ||
93 | * @generated | ||
94 | */ | ||
95 | public CommSubsystem basicGetSource() { | ||
96 | return source; | ||
97 | } | ||
98 | |||
99 | /** | ||
100 | * <!-- begin-user-doc --> | ||
101 | * <!-- end-user-doc --> | ||
102 | * @generated | ||
103 | */ | ||
104 | @Override | ||
105 | public void setSource(CommSubsystem newSource) { | ||
106 | CommSubsystem oldSource = source; | ||
107 | source = newSource; | ||
108 | if (eNotificationRequired()) | ||
109 | eNotify(new ENotificationImpl(this, Notification.SET, SatellitePackage.DIRECTED_COMMUNICATION_LINK__SOURCE, | ||
110 | oldSource, source)); | ||
111 | } | ||
112 | |||
113 | /** | ||
114 | * <!-- begin-user-doc --> | ||
115 | * <!-- end-user-doc --> | ||
116 | * @generated | ||
117 | */ | ||
118 | @Override | ||
119 | public CommSubsystem getTarget() { | ||
120 | if (target != null && target.eIsProxy()) { | ||
121 | InternalEObject oldTarget = (InternalEObject) target; | ||
122 | target = (CommSubsystem) eResolveProxy(oldTarget); | ||
123 | if (target != oldTarget) { | ||
124 | if (eNotificationRequired()) | ||
125 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, | ||
126 | SatellitePackage.DIRECTED_COMMUNICATION_LINK__TARGET, oldTarget, target)); | ||
127 | } | ||
128 | } | ||
129 | return target; | ||
130 | } | ||
131 | |||
132 | /** | ||
133 | * <!-- begin-user-doc --> | ||
134 | * <!-- end-user-doc --> | ||
135 | * @generated | ||
136 | */ | ||
137 | public CommSubsystem basicGetTarget() { | ||
138 | return target; | ||
139 | } | ||
140 | |||
141 | /** | ||
142 | * <!-- begin-user-doc --> | ||
143 | * <!-- end-user-doc --> | ||
144 | * @generated | ||
145 | */ | ||
146 | @Override | ||
147 | public void setTarget(CommSubsystem newTarget) { | ||
148 | CommSubsystem oldTarget = target; | ||
149 | target = newTarget; | ||
150 | if (eNotificationRequired()) | ||
151 | eNotify(new ENotificationImpl(this, Notification.SET, SatellitePackage.DIRECTED_COMMUNICATION_LINK__TARGET, | ||
152 | oldTarget, target)); | ||
153 | } | ||
154 | |||
155 | /** | ||
156 | * <!-- begin-user-doc --> | ||
157 | * <!-- end-user-doc --> | ||
158 | * @generated | ||
159 | */ | ||
160 | @Override | ||
161 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
162 | switch (featureID) { | ||
163 | case SatellitePackage.DIRECTED_COMMUNICATION_LINK__SOURCE: | ||
164 | if (resolve) | ||
165 | return getSource(); | ||
166 | return basicGetSource(); | ||
167 | case SatellitePackage.DIRECTED_COMMUNICATION_LINK__TARGET: | ||
168 | if (resolve) | ||
169 | return getTarget(); | ||
170 | return basicGetTarget(); | ||
171 | } | ||
172 | return super.eGet(featureID, resolve, coreType); | ||
173 | } | ||
174 | |||
175 | /** | ||
176 | * <!-- begin-user-doc --> | ||
177 | * <!-- end-user-doc --> | ||
178 | * @generated | ||
179 | */ | ||
180 | @Override | ||
181 | public void eSet(int featureID, Object newValue) { | ||
182 | switch (featureID) { | ||
183 | case SatellitePackage.DIRECTED_COMMUNICATION_LINK__SOURCE: | ||
184 | setSource((CommSubsystem) newValue); | ||
185 | return; | ||
186 | case SatellitePackage.DIRECTED_COMMUNICATION_LINK__TARGET: | ||
187 | setTarget((CommSubsystem) newValue); | ||
188 | return; | ||
189 | } | ||
190 | super.eSet(featureID, newValue); | ||
191 | } | ||
192 | |||
193 | /** | ||
194 | * <!-- begin-user-doc --> | ||
195 | * <!-- end-user-doc --> | ||
196 | * @generated | ||
197 | */ | ||
198 | @Override | ||
199 | public void eUnset(int featureID) { | ||
200 | switch (featureID) { | ||
201 | case SatellitePackage.DIRECTED_COMMUNICATION_LINK__SOURCE: | ||
202 | setSource((CommSubsystem) null); | ||
203 | return; | ||
204 | case SatellitePackage.DIRECTED_COMMUNICATION_LINK__TARGET: | ||
205 | setTarget((CommSubsystem) null); | ||
206 | return; | ||
207 | } | ||
208 | super.eUnset(featureID); | ||
209 | } | ||
210 | |||
211 | /** | ||
212 | * <!-- begin-user-doc --> | ||
213 | * <!-- end-user-doc --> | ||
214 | * @generated | ||
215 | */ | ||
216 | @Override | ||
217 | public boolean eIsSet(int featureID) { | ||
218 | switch (featureID) { | ||
219 | case SatellitePackage.DIRECTED_COMMUNICATION_LINK__SOURCE: | ||
220 | return source != null; | ||
221 | case SatellitePackage.DIRECTED_COMMUNICATION_LINK__TARGET: | ||
222 | return target != null; | ||
223 | } | ||
224 | return super.eIsSet(featureID); | ||
225 | } | ||
226 | |||
227 | } //DirectedCommunicationLinkImpl | ||
diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/impl/GroundStationNetworkImpl.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/impl/GroundStationNetworkImpl.java deleted file mode 100644 index 890e807c..00000000 --- a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/impl/GroundStationNetworkImpl.java +++ /dev/null | |||
@@ -1,37 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.domains.satellite.impl; | ||
4 | |||
5 | import hu.bme.mit.inf.dslreasoner.domains.satellite.GroundStationNetwork; | ||
6 | import hu.bme.mit.inf.dslreasoner.domains.satellite.SatellitePackage; | ||
7 | |||
8 | import org.eclipse.emf.ecore.EClass; | ||
9 | |||
10 | /** | ||
11 | * <!-- begin-user-doc --> | ||
12 | * An implementation of the model object '<em><b>Ground Station Network</b></em>'. | ||
13 | * <!-- end-user-doc --> | ||
14 | * | ||
15 | * @generated | ||
16 | */ | ||
17 | public class GroundStationNetworkImpl extends CommunicatingElementImpl implements GroundStationNetwork { | ||
18 | /** | ||
19 | * <!-- begin-user-doc --> | ||
20 | * <!-- end-user-doc --> | ||
21 | * @generated | ||
22 | */ | ||
23 | protected GroundStationNetworkImpl() { | ||
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.GROUND_STATION_NETWORK; | ||
35 | } | ||
36 | |||
37 | } //GroundStationNetworkImpl | ||
diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/impl/InterferometryMissionImpl.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/impl/InterferometryMissionImpl.java deleted file mode 100644 index b2687ea3..00000000 --- a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/impl/InterferometryMissionImpl.java +++ /dev/null | |||
@@ -1,166 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.domains.satellite.impl; | ||
4 | |||
5 | import hu.bme.mit.inf.dslreasoner.domains.satellite.InterferometryMission; | ||
6 | import hu.bme.mit.inf.dslreasoner.domains.satellite.SatellitePackage; | ||
7 | |||
8 | import org.eclipse.emf.common.notify.Notification; | ||
9 | |||
10 | import org.eclipse.emf.ecore.EClass; | ||
11 | |||
12 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
13 | |||
14 | /** | ||
15 | * <!-- begin-user-doc --> | ||
16 | * An implementation of the model object '<em><b>Interferometry Mission</b></em>'. | ||
17 | * <!-- end-user-doc --> | ||
18 | * <p> | ||
19 | * The following features are implemented: | ||
20 | * </p> | ||
21 | * <ul> | ||
22 | * <li>{@link hu.bme.mit.inf.dslreasoner.domains.satellite.impl.InterferometryMissionImpl#getObservationTime <em>Observation Time</em>}</li> | ||
23 | * </ul> | ||
24 | * | ||
25 | * @generated | ||
26 | */ | ||
27 | public class InterferometryMissionImpl extends ConstellationMissionImpl implements InterferometryMission { | ||
28 | /** | ||
29 | * The default value of the '{@link #getObservationTime() <em>Observation Time</em>}' attribute. | ||
30 | * <!-- begin-user-doc --> | ||
31 | * <!-- end-user-doc --> | ||
32 | * @see #getObservationTime() | ||
33 | * @generated | ||
34 | * @ordered | ||
35 | */ | ||
36 | protected static final float OBSERVATION_TIME_EDEFAULT = 2.0F; | ||
37 | |||
38 | /** | ||
39 | * The cached value of the '{@link #getObservationTime() <em>Observation Time</em>}' attribute. | ||
40 | * <!-- begin-user-doc --> | ||
41 | * <!-- end-user-doc --> | ||
42 | * @see #getObservationTime() | ||
43 | * @generated | ||
44 | * @ordered | ||
45 | */ | ||
46 | protected float observationTime = OBSERVATION_TIME_EDEFAULT; | ||
47 | |||
48 | /** | ||
49 | * <!-- begin-user-doc --> | ||
50 | * <!-- end-user-doc --> | ||
51 | * @generated | ||
52 | */ | ||
53 | protected InterferometryMissionImpl() { | ||
54 | super(); | ||
55 | } | ||
56 | |||
57 | /** | ||
58 | * <!-- begin-user-doc --> | ||
59 | * <!-- end-user-doc --> | ||
60 | * @generated | ||
61 | */ | ||
62 | @Override | ||
63 | protected EClass eStaticClass() { | ||
64 | return SatellitePackage.Literals.INTERFEROMETRY_MISSION; | ||
65 | } | ||
66 | |||
67 | /** | ||
68 | * <!-- begin-user-doc --> | ||
69 | * <!-- end-user-doc --> | ||
70 | * @generated | ||
71 | */ | ||
72 | @Override | ||
73 | public float getObservationTime() { | ||
74 | return observationTime; | ||
75 | } | ||
76 | |||
77 | /** | ||
78 | * <!-- begin-user-doc --> | ||
79 | * <!-- end-user-doc --> | ||
80 | * @generated | ||
81 | */ | ||
82 | @Override | ||
83 | public void setObservationTime(float newObservationTime) { | ||
84 | float oldObservationTime = observationTime; | ||
85 | observationTime = newObservationTime; | ||
86 | if (eNotificationRequired()) | ||
87 | eNotify(new ENotificationImpl(this, Notification.SET, | ||
88 | SatellitePackage.INTERFEROMETRY_MISSION__OBSERVATION_TIME, oldObservationTime, observationTime)); | ||
89 | } | ||
90 | |||
91 | /** | ||
92 | * <!-- begin-user-doc --> | ||
93 | * <!-- end-user-doc --> | ||
94 | * @generated | ||
95 | */ | ||
96 | @Override | ||
97 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
98 | switch (featureID) { | ||
99 | case SatellitePackage.INTERFEROMETRY_MISSION__OBSERVATION_TIME: | ||
100 | return getObservationTime(); | ||
101 | } | ||
102 | return super.eGet(featureID, resolve, coreType); | ||
103 | } | ||
104 | |||
105 | /** | ||
106 | * <!-- begin-user-doc --> | ||
107 | * <!-- end-user-doc --> | ||
108 | * @generated | ||
109 | */ | ||
110 | @Override | ||
111 | public void eSet(int featureID, Object newValue) { | ||
112 | switch (featureID) { | ||
113 | case SatellitePackage.INTERFEROMETRY_MISSION__OBSERVATION_TIME: | ||
114 | setObservationTime((Float) newValue); | ||
115 | return; | ||
116 | } | ||
117 | super.eSet(featureID, newValue); | ||
118 | } | ||
119 | |||
120 | /** | ||
121 | * <!-- begin-user-doc --> | ||
122 | * <!-- end-user-doc --> | ||
123 | * @generated | ||
124 | */ | ||
125 | @Override | ||
126 | public void eUnset(int featureID) { | ||
127 | switch (featureID) { | ||
128 | case SatellitePackage.INTERFEROMETRY_MISSION__OBSERVATION_TIME: | ||
129 | setObservationTime(OBSERVATION_TIME_EDEFAULT); | ||
130 | return; | ||
131 | } | ||
132 | super.eUnset(featureID); | ||
133 | } | ||
134 | |||
135 | /** | ||
136 | * <!-- begin-user-doc --> | ||
137 | * <!-- end-user-doc --> | ||
138 | * @generated | ||
139 | */ | ||
140 | @Override | ||
141 | public boolean eIsSet(int featureID) { | ||
142 | switch (featureID) { | ||
143 | case SatellitePackage.INTERFEROMETRY_MISSION__OBSERVATION_TIME: | ||
144 | return observationTime != OBSERVATION_TIME_EDEFAULT; | ||
145 | } | ||
146 | return super.eIsSet(featureID); | ||
147 | } | ||
148 | |||
149 | /** | ||
150 | * <!-- begin-user-doc --> | ||
151 | * <!-- end-user-doc --> | ||
152 | * @generated | ||
153 | */ | ||
154 | @Override | ||
155 | public String toString() { | ||
156 | if (eIsProxy()) | ||
157 | return super.toString(); | ||
158 | |||
159 | StringBuilder result = new StringBuilder(super.toString()); | ||
160 | result.append(" (observationTime: "); | ||
161 | result.append(observationTime); | ||
162 | result.append(')'); | ||
163 | return result.toString(); | ||
164 | } | ||
165 | |||
166 | } //InterferometryMissionImpl | ||
diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/impl/InterferometryPayloadImpl.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/impl/InterferometryPayloadImpl.java deleted file mode 100644 index 5657c268..00000000 --- a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/impl/InterferometryPayloadImpl.java +++ /dev/null | |||
@@ -1,37 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.domains.satellite.impl; | ||
4 | |||
5 | import hu.bme.mit.inf.dslreasoner.domains.satellite.InterferometryPayload; | ||
6 | import hu.bme.mit.inf.dslreasoner.domains.satellite.SatellitePackage; | ||
7 | |||
8 | import org.eclipse.emf.ecore.EClass; | ||
9 | |||
10 | /** | ||
11 | * <!-- begin-user-doc --> | ||
12 | * An implementation of the model object '<em><b>Interferometry Payload</b></em>'. | ||
13 | * <!-- end-user-doc --> | ||
14 | * | ||
15 | * @generated | ||
16 | */ | ||
17 | public class InterferometryPayloadImpl extends PayloadImpl implements InterferometryPayload { | ||
18 | /** | ||
19 | * <!-- begin-user-doc --> | ||
20 | * <!-- end-user-doc --> | ||
21 | * @generated | ||
22 | */ | ||
23 | protected InterferometryPayloadImpl() { | ||
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.INTERFEROMETRY_PAYLOAD; | ||
35 | } | ||
36 | |||
37 | } //InterferometryPayloadImpl | ||
diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/impl/PayloadImpl.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/impl/PayloadImpl.java deleted file mode 100644 index 78625d22..00000000 --- a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/impl/PayloadImpl.java +++ /dev/null | |||
@@ -1,39 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.domains.satellite.impl; | ||
4 | |||
5 | import hu.bme.mit.inf.dslreasoner.domains.satellite.Payload; | ||
6 | import hu.bme.mit.inf.dslreasoner.domains.satellite.SatellitePackage; | ||
7 | |||
8 | import org.eclipse.emf.ecore.EClass; | ||
9 | |||
10 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
11 | |||
12 | /** | ||
13 | * <!-- begin-user-doc --> | ||
14 | * An implementation of the model object '<em><b>Payload</b></em>'. | ||
15 | * <!-- end-user-doc --> | ||
16 | * | ||
17 | * @generated | ||
18 | */ | ||
19 | public abstract class PayloadImpl extends MinimalEObjectImpl.Container implements Payload { | ||
20 | /** | ||
21 | * <!-- begin-user-doc --> | ||
22 | * <!-- end-user-doc --> | ||
23 | * @generated | ||
24 | */ | ||
25 | protected PayloadImpl() { | ||
26 | super(); | ||
27 | } | ||
28 | |||
29 | /** | ||
30 | * <!-- begin-user-doc --> | ||
31 | * <!-- end-user-doc --> | ||
32 | * @generated | ||
33 | */ | ||
34 | @Override | ||
35 | protected EClass eStaticClass() { | ||
36 | return SatellitePackage.Literals.PAYLOAD; | ||
37 | } | ||
38 | |||
39 | } //PayloadImpl | ||
diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/impl/SatelliteFactoryImpl.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/impl/SatelliteFactoryImpl.java deleted file mode 100644 index 028ba662..00000000 --- a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/impl/SatelliteFactoryImpl.java +++ /dev/null | |||
@@ -1,294 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.domains.satellite.impl; | ||
4 | |||
5 | import hu.bme.mit.inf.dslreasoner.domains.satellite.*; | ||
6 | |||
7 | import org.eclipse.emf.ecore.EClass; | ||
8 | import org.eclipse.emf.ecore.EDataType; | ||
9 | import org.eclipse.emf.ecore.EObject; | ||
10 | import org.eclipse.emf.ecore.EPackage; | ||
11 | |||
12 | import org.eclipse.emf.ecore.impl.EFactoryImpl; | ||
13 | |||
14 | import org.eclipse.emf.ecore.plugin.EcorePlugin; | ||
15 | |||
16 | /** | ||
17 | * <!-- begin-user-doc --> | ||
18 | * An implementation of the model <b>Factory</b>. | ||
19 | * <!-- end-user-doc --> | ||
20 | * @generated | ||
21 | */ | ||
22 | public class SatelliteFactoryImpl extends EFactoryImpl implements SatelliteFactory { | ||
23 | /** | ||
24 | * Creates the default factory implementation. | ||
25 | * <!-- begin-user-doc --> | ||
26 | * <!-- end-user-doc --> | ||
27 | * @generated | ||
28 | */ | ||
29 | public static SatelliteFactory init() { | ||
30 | try { | ||
31 | SatelliteFactory theSatelliteFactory = (SatelliteFactory) EPackage.Registry.INSTANCE | ||
32 | .getEFactory(SatellitePackage.eNS_URI); | ||
33 | if (theSatelliteFactory != null) { | ||
34 | return theSatelliteFactory; | ||
35 | } | ||
36 | } catch (Exception exception) { | ||
37 | EcorePlugin.INSTANCE.log(exception); | ||
38 | } | ||
39 | return new SatelliteFactoryImpl(); | ||
40 | } | ||
41 | |||
42 | /** | ||
43 | * Creates an instance of the factory. | ||
44 | * <!-- begin-user-doc --> | ||
45 | * <!-- end-user-doc --> | ||
46 | * @generated | ||
47 | */ | ||
48 | public SatelliteFactoryImpl() { | ||
49 | super(); | ||
50 | } | ||
51 | |||
52 | /** | ||
53 | * <!-- begin-user-doc --> | ||
54 | * <!-- end-user-doc --> | ||
55 | * @generated | ||
56 | */ | ||
57 | @Override | ||
58 | public EObject create(EClass eClass) { | ||
59 | switch (eClass.getClassifierID()) { | ||
60 | case SatellitePackage.INTERFEROMETRY_MISSION: | ||
61 | return createInterferometryMission(); | ||
62 | case SatellitePackage.GROUND_STATION_NETWORK: | ||
63 | return createGroundStationNetwork(); | ||
64 | case SatellitePackage.COMM_SUBSYSTEM: | ||
65 | return createCommSubsystem(); | ||
66 | case SatellitePackage.DIRECTED_COMMUNICATION_LINK: | ||
67 | return createDirectedCommunicationLink(); | ||
68 | case SatellitePackage.INTERFEROMETRY_PAYLOAD: | ||
69 | return createInterferometryPayload(); | ||
70 | case SatellitePackage.CUBE_SAT3_U: | ||
71 | return createCubeSat3U(); | ||
72 | case SatellitePackage.CUBE_SAT6_U: | ||
73 | return createCubeSat6U(); | ||
74 | case SatellitePackage.SMALL_SAT: | ||
75 | return createSmallSat(); | ||
76 | default: | ||
77 | throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); | ||
78 | } | ||
79 | } | ||
80 | |||
81 | /** | ||
82 | * <!-- begin-user-doc --> | ||
83 | * <!-- end-user-doc --> | ||
84 | * @generated | ||
85 | */ | ||
86 | @Override | ||
87 | public Object createFromString(EDataType eDataType, String initialValue) { | ||
88 | switch (eDataType.getClassifierID()) { | ||
89 | case SatellitePackage.TRANSCEIVER_BAND: | ||
90 | return createTransceiverBandFromString(eDataType, initialValue); | ||
91 | case SatellitePackage.ANTENNA_GAIN: | ||
92 | return createAntennaGainFromString(eDataType, initialValue); | ||
93 | case SatellitePackage.SPACECRAFT_KIND: | ||
94 | return createSpacecraftKindFromString(eDataType, initialValue); | ||
95 | default: | ||
96 | throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); | ||
97 | } | ||
98 | } | ||
99 | |||
100 | /** | ||
101 | * <!-- begin-user-doc --> | ||
102 | * <!-- end-user-doc --> | ||
103 | * @generated | ||
104 | */ | ||
105 | @Override | ||
106 | public String convertToString(EDataType eDataType, Object instanceValue) { | ||
107 | switch (eDataType.getClassifierID()) { | ||
108 | case SatellitePackage.TRANSCEIVER_BAND: | ||
109 | return convertTransceiverBandToString(eDataType, instanceValue); | ||
110 | case SatellitePackage.ANTENNA_GAIN: | ||
111 | return convertAntennaGainToString(eDataType, instanceValue); | ||
112 | case SatellitePackage.SPACECRAFT_KIND: | ||
113 | return convertSpacecraftKindToString(eDataType, instanceValue); | ||
114 | default: | ||
115 | throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); | ||
116 | } | ||
117 | } | ||
118 | |||
119 | /** | ||
120 | * <!-- begin-user-doc --> | ||
121 | * <!-- end-user-doc --> | ||
122 | * @generated | ||
123 | */ | ||
124 | @Override | ||
125 | public InterferometryMission createInterferometryMission() { | ||
126 | InterferometryMissionImpl interferometryMission = new InterferometryMissionImpl(); | ||
127 | return interferometryMission; | ||
128 | } | ||
129 | |||
130 | /** | ||
131 | * <!-- begin-user-doc --> | ||
132 | * <!-- end-user-doc --> | ||
133 | * @generated | ||
134 | */ | ||
135 | @Override | ||
136 | public GroundStationNetwork createGroundStationNetwork() { | ||
137 | GroundStationNetworkImpl groundStationNetwork = new GroundStationNetworkImpl(); | ||
138 | return groundStationNetwork; | ||
139 | } | ||
140 | |||
141 | /** | ||
142 | * <!-- begin-user-doc --> | ||
143 | * <!-- end-user-doc --> | ||
144 | * @generated | ||
145 | */ | ||
146 | @Override | ||
147 | public CommSubsystem createCommSubsystem() { | ||
148 | CommSubsystemImpl commSubsystem = new CommSubsystemImpl(); | ||
149 | return commSubsystem; | ||
150 | } | ||
151 | |||
152 | /** | ||
153 | * <!-- begin-user-doc --> | ||
154 | * <!-- end-user-doc --> | ||
155 | * @generated | ||
156 | */ | ||
157 | @Override | ||
158 | public DirectedCommunicationLink createDirectedCommunicationLink() { | ||
159 | DirectedCommunicationLinkImpl directedCommunicationLink = new DirectedCommunicationLinkImpl(); | ||
160 | return directedCommunicationLink; | ||
161 | } | ||
162 | |||
163 | /** | ||
164 | * <!-- begin-user-doc --> | ||
165 | * <!-- end-user-doc --> | ||
166 | * @generated | ||
167 | */ | ||
168 | @Override | ||
169 | public InterferometryPayload createInterferometryPayload() { | ||
170 | InterferometryPayloadImpl interferometryPayload = new InterferometryPayloadImpl(); | ||
171 | return interferometryPayload; | ||
172 | } | ||
173 | |||
174 | /** | ||
175 | * <!-- begin-user-doc --> | ||
176 | * <!-- end-user-doc --> | ||
177 | * @generated | ||
178 | */ | ||
179 | @Override | ||
180 | public CubeSat3U createCubeSat3U() { | ||
181 | CubeSat3UImpl cubeSat3U = new CubeSat3UImpl(); | ||
182 | return cubeSat3U; | ||
183 | } | ||
184 | |||
185 | /** | ||
186 | * <!-- begin-user-doc --> | ||
187 | * <!-- end-user-doc --> | ||
188 | * @generated | ||
189 | */ | ||
190 | @Override | ||
191 | public CubeSat6U createCubeSat6U() { | ||
192 | CubeSat6UImpl cubeSat6U = new CubeSat6UImpl(); | ||
193 | return cubeSat6U; | ||
194 | } | ||
195 | |||
196 | /** | ||
197 | * <!-- begin-user-doc --> | ||
198 | * <!-- end-user-doc --> | ||
199 | * @generated | ||
200 | */ | ||
201 | @Override | ||
202 | public SmallSat createSmallSat() { | ||
203 | SmallSatImpl smallSat = new SmallSatImpl(); | ||
204 | return smallSat; | ||
205 | } | ||
206 | |||
207 | /** | ||
208 | * <!-- begin-user-doc --> | ||
209 | * <!-- end-user-doc --> | ||
210 | * @generated | ||
211 | */ | ||
212 | public TransceiverBand createTransceiverBandFromString(EDataType eDataType, String initialValue) { | ||
213 | TransceiverBand result = TransceiverBand.get(initialValue); | ||
214 | if (result == null) | ||
215 | throw new IllegalArgumentException( | ||
216 | "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); | ||
217 | return result; | ||
218 | } | ||
219 | |||
220 | /** | ||
221 | * <!-- begin-user-doc --> | ||
222 | * <!-- end-user-doc --> | ||
223 | * @generated | ||
224 | */ | ||
225 | public String convertTransceiverBandToString(EDataType eDataType, Object instanceValue) { | ||
226 | return instanceValue == null ? null : instanceValue.toString(); | ||
227 | } | ||
228 | |||
229 | /** | ||
230 | * <!-- begin-user-doc --> | ||
231 | * <!-- end-user-doc --> | ||
232 | * @generated | ||
233 | */ | ||
234 | public AntennaGain createAntennaGainFromString(EDataType eDataType, String initialValue) { | ||
235 | AntennaGain result = AntennaGain.get(initialValue); | ||
236 | if (result == null) | ||
237 | throw new IllegalArgumentException( | ||
238 | "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); | ||
239 | return result; | ||
240 | } | ||
241 | |||
242 | /** | ||
243 | * <!-- begin-user-doc --> | ||
244 | * <!-- end-user-doc --> | ||
245 | * @generated | ||
246 | */ | ||
247 | public String convertAntennaGainToString(EDataType eDataType, Object instanceValue) { | ||
248 | return instanceValue == null ? null : instanceValue.toString(); | ||
249 | } | ||
250 | |||
251 | /** | ||
252 | * <!-- begin-user-doc --> | ||
253 | * <!-- end-user-doc --> | ||
254 | * @generated | ||
255 | */ | ||
256 | public SpacecraftKind createSpacecraftKindFromString(EDataType eDataType, String initialValue) { | ||
257 | SpacecraftKind result = SpacecraftKind.get(initialValue); | ||
258 | if (result == null) | ||
259 | throw new IllegalArgumentException( | ||
260 | "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); | ||
261 | return result; | ||
262 | } | ||
263 | |||
264 | /** | ||
265 | * <!-- begin-user-doc --> | ||
266 | * <!-- end-user-doc --> | ||
267 | * @generated | ||
268 | */ | ||
269 | public String convertSpacecraftKindToString(EDataType eDataType, Object instanceValue) { | ||
270 | return instanceValue == null ? null : instanceValue.toString(); | ||
271 | } | ||
272 | |||
273 | /** | ||
274 | * <!-- begin-user-doc --> | ||
275 | * <!-- end-user-doc --> | ||
276 | * @generated | ||
277 | */ | ||
278 | @Override | ||
279 | public SatellitePackage getSatellitePackage() { | ||
280 | return (SatellitePackage) getEPackage(); | ||
281 | } | ||
282 | |||
283 | /** | ||
284 | * <!-- begin-user-doc --> | ||
285 | * <!-- end-user-doc --> | ||
286 | * @deprecated | ||
287 | * @generated | ||
288 | */ | ||
289 | @Deprecated | ||
290 | public static SatellitePackage getPackage() { | ||
291 | return SatellitePackage.eINSTANCE; | ||
292 | } | ||
293 | |||
294 | } //SatelliteFactoryImpl | ||
diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/impl/SatellitePackageImpl.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/impl/SatellitePackageImpl.java deleted file mode 100644 index bbe77e4d..00000000 --- a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/impl/SatellitePackageImpl.java +++ /dev/null | |||
@@ -1,684 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.domains.satellite.impl; | ||
4 | |||
5 | import hu.bme.mit.inf.dslreasoner.domains.satellite.AntennaGain; | ||
6 | import hu.bme.mit.inf.dslreasoner.domains.satellite.CommSubsystem; | ||
7 | import hu.bme.mit.inf.dslreasoner.domains.satellite.CommunicatingElement; | ||
8 | import hu.bme.mit.inf.dslreasoner.domains.satellite.ConstellationMission; | ||
9 | import hu.bme.mit.inf.dslreasoner.domains.satellite.CubeSat; | ||
10 | import hu.bme.mit.inf.dslreasoner.domains.satellite.CubeSat3U; | ||
11 | import hu.bme.mit.inf.dslreasoner.domains.satellite.CubeSat6U; | ||
12 | import hu.bme.mit.inf.dslreasoner.domains.satellite.DirectedCommunicationLink; | ||
13 | import hu.bme.mit.inf.dslreasoner.domains.satellite.GroundStationNetwork; | ||
14 | import hu.bme.mit.inf.dslreasoner.domains.satellite.InterferometryMission; | ||
15 | import hu.bme.mit.inf.dslreasoner.domains.satellite.InterferometryPayload; | ||
16 | import hu.bme.mit.inf.dslreasoner.domains.satellite.Payload; | ||
17 | import hu.bme.mit.inf.dslreasoner.domains.satellite.SatelliteFactory; | ||
18 | import hu.bme.mit.inf.dslreasoner.domains.satellite.SatellitePackage; | ||
19 | import hu.bme.mit.inf.dslreasoner.domains.satellite.SmallSat; | ||
20 | import hu.bme.mit.inf.dslreasoner.domains.satellite.Spacecraft; | ||
21 | import hu.bme.mit.inf.dslreasoner.domains.satellite.SpacecraftKind; | ||
22 | import hu.bme.mit.inf.dslreasoner.domains.satellite.TransceiverBand; | ||
23 | |||
24 | import org.eclipse.emf.ecore.EAttribute; | ||
25 | import org.eclipse.emf.ecore.EClass; | ||
26 | import org.eclipse.emf.ecore.EEnum; | ||
27 | import org.eclipse.emf.ecore.EPackage; | ||
28 | import org.eclipse.emf.ecore.EReference; | ||
29 | |||
30 | import org.eclipse.emf.ecore.impl.EPackageImpl; | ||
31 | |||
32 | /** | ||
33 | * <!-- begin-user-doc --> | ||
34 | * An implementation of the model <b>Package</b>. | ||
35 | * <!-- end-user-doc --> | ||
36 | * @generated | ||
37 | */ | ||
38 | public class SatellitePackageImpl extends EPackageImpl implements SatellitePackage { | ||
39 | /** | ||
40 | * <!-- begin-user-doc --> | ||
41 | * <!-- end-user-doc --> | ||
42 | * @generated | ||
43 | */ | ||
44 | private EClass constellationMissionEClass = null; | ||
45 | |||
46 | /** | ||
47 | * <!-- begin-user-doc --> | ||
48 | * <!-- end-user-doc --> | ||
49 | * @generated | ||
50 | */ | ||
51 | private EClass interferometryMissionEClass = null; | ||
52 | |||
53 | /** | ||
54 | * <!-- begin-user-doc --> | ||
55 | * <!-- end-user-doc --> | ||
56 | * @generated | ||
57 | */ | ||
58 | private EClass communicatingElementEClass = null; | ||
59 | |||
60 | /** | ||
61 | * <!-- begin-user-doc --> | ||
62 | * <!-- end-user-doc --> | ||
63 | * @generated | ||
64 | */ | ||
65 | private EClass groundStationNetworkEClass = null; | ||
66 | |||
67 | /** | ||
68 | * <!-- begin-user-doc --> | ||
69 | * <!-- end-user-doc --> | ||
70 | * @generated | ||
71 | */ | ||
72 | private EClass spacecraftEClass = null; | ||
73 | |||
74 | /** | ||
75 | * <!-- begin-user-doc --> | ||
76 | * <!-- end-user-doc --> | ||
77 | * @generated | ||
78 | */ | ||
79 | private EClass commSubsystemEClass = null; | ||
80 | |||
81 | /** | ||
82 | * <!-- begin-user-doc --> | ||
83 | * <!-- end-user-doc --> | ||
84 | * @generated | ||
85 | */ | ||
86 | private EClass directedCommunicationLinkEClass = null; | ||
87 | |||
88 | /** | ||
89 | * <!-- begin-user-doc --> | ||
90 | * <!-- end-user-doc --> | ||
91 | * @generated | ||
92 | */ | ||
93 | private EClass payloadEClass = null; | ||
94 | |||
95 | /** | ||
96 | * <!-- begin-user-doc --> | ||
97 | * <!-- end-user-doc --> | ||
98 | * @generated | ||
99 | */ | ||
100 | private EClass interferometryPayloadEClass = null; | ||
101 | |||
102 | /** | ||
103 | * <!-- begin-user-doc --> | ||
104 | * <!-- end-user-doc --> | ||
105 | * @generated | ||
106 | */ | ||
107 | private EClass cubeSat3UEClass = null; | ||
108 | |||
109 | /** | ||
110 | * <!-- begin-user-doc --> | ||
111 | * <!-- end-user-doc --> | ||
112 | * @generated | ||
113 | */ | ||
114 | private EClass cubeSat6UEClass = null; | ||
115 | |||
116 | /** | ||
117 | * <!-- begin-user-doc --> | ||
118 | * <!-- end-user-doc --> | ||
119 | * @generated | ||
120 | */ | ||
121 | private EClass smallSatEClass = null; | ||
122 | |||
123 | /** | ||
124 | * <!-- begin-user-doc --> | ||
125 | * <!-- end-user-doc --> | ||
126 | * @generated | ||
127 | */ | ||
128 | private EClass cubeSatEClass = null; | ||
129 | |||
130 | /** | ||
131 | * <!-- begin-user-doc --> | ||
132 | * <!-- end-user-doc --> | ||
133 | * @generated | ||
134 | */ | ||
135 | private EEnum transceiverBandEEnum = null; | ||
136 | |||
137 | /** | ||
138 | * <!-- begin-user-doc --> | ||
139 | * <!-- end-user-doc --> | ||
140 | * @generated | ||
141 | */ | ||
142 | private EEnum antennaGainEEnum = null; | ||
143 | |||
144 | /** | ||
145 | * <!-- begin-user-doc --> | ||
146 | * <!-- end-user-doc --> | ||
147 | * @generated | ||
148 | */ | ||
149 | private EEnum spacecraftKindEEnum = null; | ||
150 | |||
151 | /** | ||
152 | * Creates an instance of the model <b>Package</b>, registered with | ||
153 | * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package | ||
154 | * package URI value. | ||
155 | * <p>Note: the correct way to create the package is via the static | ||
156 | * factory method {@link #init init()}, which also performs | ||
157 | * initialization of the package, or returns the registered package, | ||
158 | * if one already exists. | ||
159 | * <!-- begin-user-doc --> | ||
160 | * <!-- end-user-doc --> | ||
161 | * @see org.eclipse.emf.ecore.EPackage.Registry | ||
162 | * @see hu.bme.mit.inf.dslreasoner.domains.satellite.SatellitePackage#eNS_URI | ||
163 | * @see #init() | ||
164 | * @generated | ||
165 | */ | ||
166 | private SatellitePackageImpl() { | ||
167 | super(eNS_URI, SatelliteFactory.eINSTANCE); | ||
168 | } | ||
169 | |||
170 | /** | ||
171 | * <!-- begin-user-doc --> | ||
172 | * <!-- end-user-doc --> | ||
173 | * @generated | ||
174 | */ | ||
175 | private static boolean isInited = false; | ||
176 | |||
177 | /** | ||
178 | * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends. | ||
179 | * | ||
180 | * <p>This method is used to initialize {@link SatellitePackage#eINSTANCE} when that field is accessed. | ||
181 | * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. | ||
182 | * <!-- begin-user-doc --> | ||
183 | * <!-- end-user-doc --> | ||
184 | * @see #eNS_URI | ||
185 | * @see #createPackageContents() | ||
186 | * @see #initializePackageContents() | ||
187 | * @generated | ||
188 | */ | ||
189 | public static SatellitePackage init() { | ||
190 | if (isInited) | ||
191 | return (SatellitePackage) EPackage.Registry.INSTANCE.getEPackage(SatellitePackage.eNS_URI); | ||
192 | |||
193 | // Obtain or create and register package | ||
194 | Object registeredSatellitePackage = EPackage.Registry.INSTANCE.get(eNS_URI); | ||
195 | SatellitePackageImpl theSatellitePackage = registeredSatellitePackage instanceof SatellitePackageImpl | ||
196 | ? (SatellitePackageImpl) registeredSatellitePackage | ||
197 | : new SatellitePackageImpl(); | ||
198 | |||
199 | isInited = true; | ||
200 | |||
201 | // Create package meta-data objects | ||
202 | theSatellitePackage.createPackageContents(); | ||
203 | |||
204 | // Initialize created meta-data | ||
205 | theSatellitePackage.initializePackageContents(); | ||
206 | |||
207 | // Mark meta-data to indicate it can't be changed | ||
208 | theSatellitePackage.freeze(); | ||
209 | |||
210 | // Update the registry and return the package | ||
211 | EPackage.Registry.INSTANCE.put(SatellitePackage.eNS_URI, theSatellitePackage); | ||
212 | return theSatellitePackage; | ||
213 | } | ||
214 | |||
215 | /** | ||
216 | * <!-- begin-user-doc --> | ||
217 | * <!-- end-user-doc --> | ||
218 | * @generated | ||
219 | */ | ||
220 | @Override | ||
221 | public EClass getConstellationMission() { | ||
222 | return constellationMissionEClass; | ||
223 | } | ||
224 | |||
225 | /** | ||
226 | * <!-- begin-user-doc --> | ||
227 | * <!-- end-user-doc --> | ||
228 | * @generated | ||
229 | */ | ||
230 | @Override | ||
231 | public EReference getConstellationMission_GroundStationNetwork() { | ||
232 | return (EReference) constellationMissionEClass.getEStructuralFeatures().get(0); | ||
233 | } | ||
234 | |||
235 | /** | ||
236 | * <!-- begin-user-doc --> | ||
237 | * <!-- end-user-doc --> | ||
238 | * @generated | ||
239 | */ | ||
240 | @Override | ||
241 | public EReference getConstellationMission_Spacecraft() { | ||
242 | return (EReference) constellationMissionEClass.getEStructuralFeatures().get(1); | ||
243 | } | ||
244 | |||
245 | /** | ||
246 | * <!-- begin-user-doc --> | ||
247 | * <!-- end-user-doc --> | ||
248 | * @generated | ||
249 | */ | ||
250 | @Override | ||
251 | public EClass getInterferometryMission() { | ||
252 | return interferometryMissionEClass; | ||
253 | } | ||
254 | |||
255 | /** | ||
256 | * <!-- begin-user-doc --> | ||
257 | * <!-- end-user-doc --> | ||
258 | * @generated | ||
259 | */ | ||
260 | @Override | ||
261 | public EAttribute getInterferometryMission_ObservationTime() { | ||
262 | return (EAttribute) interferometryMissionEClass.getEStructuralFeatures().get(0); | ||
263 | } | ||
264 | |||
265 | /** | ||
266 | * <!-- begin-user-doc --> | ||
267 | * <!-- end-user-doc --> | ||
268 | * @generated | ||
269 | */ | ||
270 | @Override | ||
271 | public EClass getCommunicatingElement() { | ||
272 | return communicatingElementEClass; | ||
273 | } | ||
274 | |||
275 | /** | ||
276 | * <!-- begin-user-doc --> | ||
277 | * <!-- end-user-doc --> | ||
278 | * @generated | ||
279 | */ | ||
280 | @Override | ||
281 | public EReference getCommunicatingElement_CommSubsystem() { | ||
282 | return (EReference) communicatingElementEClass.getEStructuralFeatures().get(0); | ||
283 | } | ||
284 | |||
285 | /** | ||
286 | * <!-- begin-user-doc --> | ||
287 | * <!-- end-user-doc --> | ||
288 | * @generated | ||
289 | */ | ||
290 | @Override | ||
291 | public EReference getCommunicatingElement_CommunicationLink() { | ||
292 | return (EReference) communicatingElementEClass.getEStructuralFeatures().get(1); | ||
293 | } | ||
294 | |||
295 | /** | ||
296 | * <!-- begin-user-doc --> | ||
297 | * <!-- end-user-doc --> | ||
298 | * @generated | ||
299 | */ | ||
300 | @Override | ||
301 | public EClass getGroundStationNetwork() { | ||
302 | return groundStationNetworkEClass; | ||
303 | } | ||
304 | |||
305 | /** | ||
306 | * <!-- begin-user-doc --> | ||
307 | * <!-- end-user-doc --> | ||
308 | * @generated | ||
309 | */ | ||
310 | @Override | ||
311 | public EClass getSpacecraft() { | ||
312 | return spacecraftEClass; | ||
313 | } | ||
314 | |||
315 | /** | ||
316 | * <!-- begin-user-doc --> | ||
317 | * <!-- end-user-doc --> | ||
318 | * @generated | ||
319 | */ | ||
320 | @Override | ||
321 | public EReference getSpacecraft_Payload() { | ||
322 | return (EReference) spacecraftEClass.getEStructuralFeatures().get(0); | ||
323 | } | ||
324 | |||
325 | /** | ||
326 | * <!-- begin-user-doc --> | ||
327 | * <!-- end-user-doc --> | ||
328 | * @generated | ||
329 | */ | ||
330 | @Override | ||
331 | public EAttribute getSpacecraft_Kind() { | ||
332 | return (EAttribute) spacecraftEClass.getEStructuralFeatures().get(1); | ||
333 | } | ||
334 | |||
335 | /** | ||
336 | * <!-- begin-user-doc --> | ||
337 | * <!-- end-user-doc --> | ||
338 | * @generated | ||
339 | */ | ||
340 | @Override | ||
341 | public EClass getCommSubsystem() { | ||
342 | return commSubsystemEClass; | ||
343 | } | ||
344 | |||
345 | /** | ||
346 | * <!-- begin-user-doc --> | ||
347 | * <!-- end-user-doc --> | ||
348 | * @generated | ||
349 | */ | ||
350 | @Override | ||
351 | public EAttribute getCommSubsystem_Band() { | ||
352 | return (EAttribute) commSubsystemEClass.getEStructuralFeatures().get(0); | ||
353 | } | ||
354 | |||
355 | /** | ||
356 | * <!-- begin-user-doc --> | ||
357 | * <!-- end-user-doc --> | ||
358 | * @generated | ||
359 | */ | ||
360 | @Override | ||
361 | public EAttribute getCommSubsystem_Gain() { | ||
362 | return (EAttribute) commSubsystemEClass.getEStructuralFeatures().get(1); | ||
363 | } | ||
364 | |||
365 | /** | ||
366 | * <!-- begin-user-doc --> | ||
367 | * <!-- end-user-doc --> | ||
368 | * @generated | ||
369 | */ | ||
370 | @Override | ||
371 | public EClass getDirectedCommunicationLink() { | ||
372 | return directedCommunicationLinkEClass; | ||
373 | } | ||
374 | |||
375 | /** | ||
376 | * <!-- begin-user-doc --> | ||
377 | * <!-- end-user-doc --> | ||
378 | * @generated | ||
379 | */ | ||
380 | @Override | ||
381 | public EReference getDirectedCommunicationLink_Source() { | ||
382 | return (EReference) directedCommunicationLinkEClass.getEStructuralFeatures().get(0); | ||
383 | } | ||
384 | |||
385 | /** | ||
386 | * <!-- begin-user-doc --> | ||
387 | * <!-- end-user-doc --> | ||
388 | * @generated | ||
389 | */ | ||
390 | @Override | ||
391 | public EReference getDirectedCommunicationLink_Target() { | ||
392 | return (EReference) directedCommunicationLinkEClass.getEStructuralFeatures().get(1); | ||
393 | } | ||
394 | |||
395 | /** | ||
396 | * <!-- begin-user-doc --> | ||
397 | * <!-- end-user-doc --> | ||
398 | * @generated | ||
399 | */ | ||
400 | @Override | ||
401 | public EClass getPayload() { | ||
402 | return payloadEClass; | ||
403 | } | ||
404 | |||
405 | /** | ||
406 | * <!-- begin-user-doc --> | ||
407 | * <!-- end-user-doc --> | ||
408 | * @generated | ||
409 | */ | ||
410 | @Override | ||
411 | public EClass getInterferometryPayload() { | ||
412 | return interferometryPayloadEClass; | ||
413 | } | ||
414 | |||
415 | /** | ||
416 | * <!-- begin-user-doc --> | ||
417 | * <!-- end-user-doc --> | ||
418 | * @generated | ||
419 | */ | ||
420 | @Override | ||
421 | public EClass getCubeSat3U() { | ||
422 | return cubeSat3UEClass; | ||
423 | } | ||
424 | |||
425 | /** | ||
426 | * <!-- begin-user-doc --> | ||
427 | * <!-- end-user-doc --> | ||
428 | * @generated | ||
429 | */ | ||
430 | @Override | ||
431 | public EClass getCubeSat6U() { | ||
432 | return cubeSat6UEClass; | ||
433 | } | ||
434 | |||
435 | /** | ||
436 | * <!-- begin-user-doc --> | ||
437 | * <!-- end-user-doc --> | ||
438 | * @generated | ||
439 | */ | ||
440 | @Override | ||
441 | public EClass getSmallSat() { | ||
442 | return smallSatEClass; | ||
443 | } | ||
444 | |||
445 | /** | ||
446 | * <!-- begin-user-doc --> | ||
447 | * <!-- end-user-doc --> | ||
448 | * @generated | ||
449 | */ | ||
450 | @Override | ||
451 | public EClass getCubeSat() { | ||
452 | return cubeSatEClass; | ||
453 | } | ||
454 | |||
455 | /** | ||
456 | * <!-- begin-user-doc --> | ||
457 | * <!-- end-user-doc --> | ||
458 | * @generated | ||
459 | */ | ||
460 | @Override | ||
461 | public EEnum getTransceiverBand() { | ||
462 | return transceiverBandEEnum; | ||
463 | } | ||
464 | |||
465 | /** | ||
466 | * <!-- begin-user-doc --> | ||
467 | * <!-- end-user-doc --> | ||
468 | * @generated | ||
469 | */ | ||
470 | @Override | ||
471 | public EEnum getAntennaGain() { | ||
472 | return antennaGainEEnum; | ||
473 | } | ||
474 | |||
475 | /** | ||
476 | * <!-- begin-user-doc --> | ||
477 | * <!-- end-user-doc --> | ||
478 | * @generated | ||
479 | */ | ||
480 | @Override | ||
481 | public EEnum getSpacecraftKind() { | ||
482 | return spacecraftKindEEnum; | ||
483 | } | ||
484 | |||
485 | /** | ||
486 | * <!-- begin-user-doc --> | ||
487 | * <!-- end-user-doc --> | ||
488 | * @generated | ||
489 | */ | ||
490 | @Override | ||
491 | public SatelliteFactory getSatelliteFactory() { | ||
492 | return (SatelliteFactory) getEFactoryInstance(); | ||
493 | } | ||
494 | |||
495 | /** | ||
496 | * <!-- begin-user-doc --> | ||
497 | * <!-- end-user-doc --> | ||
498 | * @generated | ||
499 | */ | ||
500 | private boolean isCreated = false; | ||
501 | |||
502 | /** | ||
503 | * Creates the meta-model objects for the package. This method is | ||
504 | * guarded to have no affect on any invocation but its first. | ||
505 | * <!-- begin-user-doc --> | ||
506 | * <!-- end-user-doc --> | ||
507 | * @generated | ||
508 | */ | ||
509 | public void createPackageContents() { | ||
510 | if (isCreated) | ||
511 | return; | ||
512 | isCreated = true; | ||
513 | |||
514 | // Create classes and their features | ||
515 | constellationMissionEClass = createEClass(CONSTELLATION_MISSION); | ||
516 | createEReference(constellationMissionEClass, CONSTELLATION_MISSION__GROUND_STATION_NETWORK); | ||
517 | createEReference(constellationMissionEClass, CONSTELLATION_MISSION__SPACECRAFT); | ||
518 | |||
519 | interferometryMissionEClass = createEClass(INTERFEROMETRY_MISSION); | ||
520 | createEAttribute(interferometryMissionEClass, INTERFEROMETRY_MISSION__OBSERVATION_TIME); | ||
521 | |||
522 | communicatingElementEClass = createEClass(COMMUNICATING_ELEMENT); | ||
523 | createEReference(communicatingElementEClass, COMMUNICATING_ELEMENT__COMM_SUBSYSTEM); | ||
524 | createEReference(communicatingElementEClass, COMMUNICATING_ELEMENT__COMMUNICATION_LINK); | ||
525 | |||
526 | groundStationNetworkEClass = createEClass(GROUND_STATION_NETWORK); | ||
527 | |||
528 | spacecraftEClass = createEClass(SPACECRAFT); | ||
529 | createEReference(spacecraftEClass, SPACECRAFT__PAYLOAD); | ||
530 | createEAttribute(spacecraftEClass, SPACECRAFT__KIND); | ||
531 | |||
532 | commSubsystemEClass = createEClass(COMM_SUBSYSTEM); | ||
533 | createEAttribute(commSubsystemEClass, COMM_SUBSYSTEM__BAND); | ||
534 | createEAttribute(commSubsystemEClass, COMM_SUBSYSTEM__GAIN); | ||
535 | |||
536 | directedCommunicationLinkEClass = createEClass(DIRECTED_COMMUNICATION_LINK); | ||
537 | createEReference(directedCommunicationLinkEClass, DIRECTED_COMMUNICATION_LINK__SOURCE); | ||
538 | createEReference(directedCommunicationLinkEClass, DIRECTED_COMMUNICATION_LINK__TARGET); | ||
539 | |||
540 | payloadEClass = createEClass(PAYLOAD); | ||
541 | |||
542 | interferometryPayloadEClass = createEClass(INTERFEROMETRY_PAYLOAD); | ||
543 | |||
544 | cubeSat3UEClass = createEClass(CUBE_SAT3_U); | ||
545 | |||
546 | cubeSat6UEClass = createEClass(CUBE_SAT6_U); | ||
547 | |||
548 | smallSatEClass = createEClass(SMALL_SAT); | ||
549 | |||
550 | cubeSatEClass = createEClass(CUBE_SAT); | ||
551 | |||
552 | // Create enums | ||
553 | transceiverBandEEnum = createEEnum(TRANSCEIVER_BAND); | ||
554 | antennaGainEEnum = createEEnum(ANTENNA_GAIN); | ||
555 | spacecraftKindEEnum = createEEnum(SPACECRAFT_KIND); | ||
556 | } | ||
557 | |||
558 | /** | ||
559 | * <!-- begin-user-doc --> | ||
560 | * <!-- end-user-doc --> | ||
561 | * @generated | ||
562 | */ | ||
563 | private boolean isInitialized = false; | ||
564 | |||
565 | /** | ||
566 | * Complete the initialization of the package and its meta-model. This | ||
567 | * method is guarded to have no affect on any invocation but its first. | ||
568 | * <!-- begin-user-doc --> | ||
569 | * <!-- end-user-doc --> | ||
570 | * @generated | ||
571 | */ | ||
572 | public void initializePackageContents() { | ||
573 | if (isInitialized) | ||
574 | return; | ||
575 | isInitialized = true; | ||
576 | |||
577 | // Initialize package | ||
578 | setName(eNAME); | ||
579 | setNsPrefix(eNS_PREFIX); | ||
580 | setNsURI(eNS_URI); | ||
581 | |||
582 | // Create type parameters | ||
583 | |||
584 | // Set bounds for type parameters | ||
585 | |||
586 | // Add supertypes to classes | ||
587 | interferometryMissionEClass.getESuperTypes().add(this.getConstellationMission()); | ||
588 | groundStationNetworkEClass.getESuperTypes().add(this.getCommunicatingElement()); | ||
589 | spacecraftEClass.getESuperTypes().add(this.getCommunicatingElement()); | ||
590 | interferometryPayloadEClass.getESuperTypes().add(this.getPayload()); | ||
591 | cubeSat3UEClass.getESuperTypes().add(this.getCubeSat()); | ||
592 | cubeSat6UEClass.getESuperTypes().add(this.getCubeSat()); | ||
593 | smallSatEClass.getESuperTypes().add(this.getSpacecraft()); | ||
594 | cubeSatEClass.getESuperTypes().add(this.getSpacecraft()); | ||
595 | |||
596 | // Initialize classes, features, and operations; add parameters | ||
597 | initEClass(constellationMissionEClass, ConstellationMission.class, "ConstellationMission", IS_ABSTRACT, | ||
598 | !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
599 | initEReference(getConstellationMission_GroundStationNetwork(), this.getGroundStationNetwork(), null, | ||
600 | "groundStationNetwork", null, 1, 1, ConstellationMission.class, !IS_TRANSIENT, !IS_VOLATILE, | ||
601 | IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
602 | initEReference(getConstellationMission_Spacecraft(), this.getSpacecraft(), null, "spacecraft", null, 2, 50, | ||
603 | ConstellationMission.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, | ||
604 | !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
605 | |||
606 | initEClass(interferometryMissionEClass, InterferometryMission.class, "InterferometryMission", !IS_ABSTRACT, | ||
607 | !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
608 | initEAttribute(getInterferometryMission_ObservationTime(), ecorePackage.getEFloat(), "observationTime", "2.0", | ||
609 | 1, 1, InterferometryMission.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, | ||
610 | IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
611 | |||
612 | initEClass(communicatingElementEClass, CommunicatingElement.class, "CommunicatingElement", IS_ABSTRACT, | ||
613 | !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
614 | initEReference(getCommunicatingElement_CommSubsystem(), this.getCommSubsystem(), null, "commSubsystem", null, 1, | ||
615 | 2, CommunicatingElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, | ||
616 | !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
617 | initEReference(getCommunicatingElement_CommunicationLink(), this.getDirectedCommunicationLink(), null, | ||
618 | "communicationLink", null, 0, 1, CommunicatingElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, | ||
619 | IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
620 | |||
621 | initEClass(groundStationNetworkEClass, GroundStationNetwork.class, "GroundStationNetwork", !IS_ABSTRACT, | ||
622 | !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
623 | |||
624 | initEClass(spacecraftEClass, Spacecraft.class, "Spacecraft", IS_ABSTRACT, !IS_INTERFACE, | ||
625 | IS_GENERATED_INSTANCE_CLASS); | ||
626 | initEReference(getSpacecraft_Payload(), this.getPayload(), null, "payload", null, 0, 1, Spacecraft.class, | ||
627 | !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, | ||
628 | IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
629 | initEAttribute(getSpacecraft_Kind(), this.getSpacecraftKind(), "kind", null, 1, 1, Spacecraft.class, | ||
630 | IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, IS_DERIVED, IS_ORDERED); | ||
631 | |||
632 | initEClass(commSubsystemEClass, CommSubsystem.class, "CommSubsystem", !IS_ABSTRACT, !IS_INTERFACE, | ||
633 | IS_GENERATED_INSTANCE_CLASS); | ||
634 | initEAttribute(getCommSubsystem_Band(), this.getTransceiverBand(), "band", null, 1, 1, CommSubsystem.class, | ||
635 | !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
636 | initEAttribute(getCommSubsystem_Gain(), this.getAntennaGain(), "gain", null, 1, 1, CommSubsystem.class, | ||
637 | !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
638 | |||
639 | initEClass(directedCommunicationLinkEClass, DirectedCommunicationLink.class, "DirectedCommunicationLink", | ||
640 | !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
641 | initEReference(getDirectedCommunicationLink_Source(), this.getCommSubsystem(), null, "source", null, 1, 1, | ||
642 | DirectedCommunicationLink.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, | ||
643 | IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
644 | initEReference(getDirectedCommunicationLink_Target(), this.getCommSubsystem(), null, "target", null, 1, 1, | ||
645 | DirectedCommunicationLink.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, | ||
646 | IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
647 | |||
648 | initEClass(payloadEClass, Payload.class, "Payload", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
649 | |||
650 | initEClass(interferometryPayloadEClass, InterferometryPayload.class, "InterferometryPayload", !IS_ABSTRACT, | ||
651 | !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
652 | |||
653 | initEClass(cubeSat3UEClass, CubeSat3U.class, "CubeSat3U", !IS_ABSTRACT, !IS_INTERFACE, | ||
654 | IS_GENERATED_INSTANCE_CLASS); | ||
655 | |||
656 | initEClass(cubeSat6UEClass, CubeSat6U.class, "CubeSat6U", !IS_ABSTRACT, !IS_INTERFACE, | ||
657 | IS_GENERATED_INSTANCE_CLASS); | ||
658 | |||
659 | initEClass(smallSatEClass, SmallSat.class, "SmallSat", !IS_ABSTRACT, !IS_INTERFACE, | ||
660 | IS_GENERATED_INSTANCE_CLASS); | ||
661 | |||
662 | initEClass(cubeSatEClass, CubeSat.class, "CubeSat", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
663 | |||
664 | // Initialize enums and add enum literals | ||
665 | initEEnum(transceiverBandEEnum, TransceiverBand.class, "TransceiverBand"); | ||
666 | addEEnumLiteral(transceiverBandEEnum, TransceiverBand.UHF); | ||
667 | addEEnumLiteral(transceiverBandEEnum, TransceiverBand.X); | ||
668 | addEEnumLiteral(transceiverBandEEnum, TransceiverBand.KA); | ||
669 | |||
670 | initEEnum(antennaGainEEnum, AntennaGain.class, "AntennaGain"); | ||
671 | addEEnumLiteral(antennaGainEEnum, AntennaGain.LOW); | ||
672 | addEEnumLiteral(antennaGainEEnum, AntennaGain.MEDIUM); | ||
673 | addEEnumLiteral(antennaGainEEnum, AntennaGain.HIGH); | ||
674 | |||
675 | initEEnum(spacecraftKindEEnum, SpacecraftKind.class, "SpacecraftKind"); | ||
676 | addEEnumLiteral(spacecraftKindEEnum, SpacecraftKind.CUBE_SAT3_U); | ||
677 | addEEnumLiteral(spacecraftKindEEnum, SpacecraftKind.CUBE_SAT6_U); | ||
678 | addEEnumLiteral(spacecraftKindEEnum, SpacecraftKind.SMALL_SAT); | ||
679 | |||
680 | // Create resource | ||
681 | createResource(eNS_URI); | ||
682 | } | ||
683 | |||
684 | } //SatellitePackageImpl | ||
diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/impl/SmallSatImpl.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/impl/SmallSatImpl.java deleted file mode 100644 index 522991ad..00000000 --- a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/impl/SmallSatImpl.java +++ /dev/null | |||
@@ -1,37 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.domains.satellite.impl; | ||
4 | |||
5 | import hu.bme.mit.inf.dslreasoner.domains.satellite.SatellitePackage; | ||
6 | import hu.bme.mit.inf.dslreasoner.domains.satellite.SmallSat; | ||
7 | |||
8 | import org.eclipse.emf.ecore.EClass; | ||
9 | |||
10 | /** | ||
11 | * <!-- begin-user-doc --> | ||
12 | * An implementation of the model object '<em><b>Small Sat</b></em>'. | ||
13 | * <!-- end-user-doc --> | ||
14 | * | ||
15 | * @generated | ||
16 | */ | ||
17 | public class SmallSatImpl extends SpacecraftImpl implements SmallSat { | ||
18 | /** | ||
19 | * <!-- begin-user-doc --> | ||
20 | * <!-- end-user-doc --> | ||
21 | * @generated | ||
22 | */ | ||
23 | protected SmallSatImpl() { | ||
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.SMALL_SAT; | ||
35 | } | ||
36 | |||
37 | } //SmallSatImpl | ||
diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/impl/SpacecraftImpl.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/impl/SpacecraftImpl.java deleted file mode 100644 index 9d74270a..00000000 --- a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/impl/SpacecraftImpl.java +++ /dev/null | |||
@@ -1,212 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.domains.satellite.impl; | ||
4 | |||
5 | import hu.bme.mit.inf.dslreasoner.domains.satellite.Payload; | ||
6 | import hu.bme.mit.inf.dslreasoner.domains.satellite.SatellitePackage; | ||
7 | import hu.bme.mit.inf.dslreasoner.domains.satellite.Spacecraft; | ||
8 | |||
9 | import hu.bme.mit.inf.dslreasoner.domains.satellite.SpacecraftKind; | ||
10 | import org.eclipse.emf.common.notify.Notification; | ||
11 | import org.eclipse.emf.common.notify.NotificationChain; | ||
12 | |||
13 | import org.eclipse.emf.ecore.EClass; | ||
14 | import org.eclipse.emf.ecore.InternalEObject; | ||
15 | |||
16 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
17 | |||
18 | /** | ||
19 | * <!-- begin-user-doc --> | ||
20 | * An implementation of the model object '<em><b>Spacecraft</b></em>'. | ||
21 | * <!-- end-user-doc --> | ||
22 | * <p> | ||
23 | * The following features are implemented: | ||
24 | * </p> | ||
25 | * <ul> | ||
26 | * <li>{@link hu.bme.mit.inf.dslreasoner.domains.satellite.impl.SpacecraftImpl#getPayload <em>Payload</em>}</li> | ||
27 | * <li>{@link hu.bme.mit.inf.dslreasoner.domains.satellite.impl.SpacecraftImpl#getKind <em>Kind</em>}</li> | ||
28 | * </ul> | ||
29 | * | ||
30 | * @generated | ||
31 | */ | ||
32 | public abstract class SpacecraftImpl extends CommunicatingElementImpl implements Spacecraft { | ||
33 | /** | ||
34 | * The cached value of the '{@link #getPayload() <em>Payload</em>}' containment reference. | ||
35 | * <!-- begin-user-doc --> | ||
36 | * <!-- end-user-doc --> | ||
37 | * @see #getPayload() | ||
38 | * @generated | ||
39 | * @ordered | ||
40 | */ | ||
41 | protected Payload payload; | ||
42 | |||
43 | /** | ||
44 | * The default value of the '{@link #getKind() <em>Kind</em>}' attribute. | ||
45 | * <!-- begin-user-doc --> | ||
46 | * <!-- end-user-doc --> | ||
47 | * @see #getKind() | ||
48 | * @generated | ||
49 | * @ordered | ||
50 | */ | ||
51 | protected static final SpacecraftKind KIND_EDEFAULT = SpacecraftKind.CUBE_SAT3_U; | ||
52 | |||
53 | /** | ||
54 | * <!-- begin-user-doc --> | ||
55 | * <!-- end-user-doc --> | ||
56 | * @generated | ||
57 | */ | ||
58 | protected SpacecraftImpl() { | ||
59 | super(); | ||
60 | } | ||
61 | |||
62 | /** | ||
63 | * <!-- begin-user-doc --> | ||
64 | * <!-- end-user-doc --> | ||
65 | * @generated | ||
66 | */ | ||
67 | @Override | ||
68 | protected EClass eStaticClass() { | ||
69 | return SatellitePackage.Literals.SPACECRAFT; | ||
70 | } | ||
71 | |||
72 | /** | ||
73 | * <!-- begin-user-doc --> | ||
74 | * <!-- end-user-doc --> | ||
75 | * @generated | ||
76 | */ | ||
77 | @Override | ||
78 | public Payload getPayload() { | ||
79 | return payload; | ||
80 | } | ||
81 | |||
82 | /** | ||
83 | * <!-- begin-user-doc --> | ||
84 | * <!-- end-user-doc --> | ||
85 | * @generated | ||
86 | */ | ||
87 | public NotificationChain basicSetPayload(Payload newPayload, NotificationChain msgs) { | ||
88 | Payload oldPayload = payload; | ||
89 | payload = newPayload; | ||
90 | if (eNotificationRequired()) { | ||
91 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, | ||
92 | SatellitePackage.SPACECRAFT__PAYLOAD, oldPayload, newPayload); | ||
93 | if (msgs == null) | ||
94 | msgs = notification; | ||
95 | else | ||
96 | msgs.add(notification); | ||
97 | } | ||
98 | return msgs; | ||
99 | } | ||
100 | |||
101 | /** | ||
102 | * <!-- begin-user-doc --> | ||
103 | * <!-- end-user-doc --> | ||
104 | * @generated | ||
105 | */ | ||
106 | @Override | ||
107 | public void setPayload(Payload newPayload) { | ||
108 | if (newPayload != payload) { | ||
109 | NotificationChain msgs = null; | ||
110 | if (payload != null) | ||
111 | msgs = ((InternalEObject) payload).eInverseRemove(this, | ||
112 | EOPPOSITE_FEATURE_BASE - SatellitePackage.SPACECRAFT__PAYLOAD, null, msgs); | ||
113 | if (newPayload != null) | ||
114 | msgs = ((InternalEObject) newPayload).eInverseAdd(this, | ||
115 | EOPPOSITE_FEATURE_BASE - SatellitePackage.SPACECRAFT__PAYLOAD, null, msgs); | ||
116 | msgs = basicSetPayload(newPayload, msgs); | ||
117 | if (msgs != null) | ||
118 | msgs.dispatch(); | ||
119 | } else if (eNotificationRequired()) | ||
120 | eNotify(new ENotificationImpl(this, Notification.SET, SatellitePackage.SPACECRAFT__PAYLOAD, newPayload, | ||
121 | newPayload)); | ||
122 | } | ||
123 | |||
124 | /** | ||
125 | * <!-- begin-user-doc --> | ||
126 | * <!-- end-user-doc --> | ||
127 | * @generated | ||
128 | */ | ||
129 | @Override | ||
130 | public SpacecraftKind getKind() { | ||
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 | } | ||
135 | |||
136 | /** | ||
137 | * <!-- begin-user-doc --> | ||
138 | * <!-- end-user-doc --> | ||
139 | * @generated | ||
140 | */ | ||
141 | @Override | ||
142 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
143 | switch (featureID) { | ||
144 | case SatellitePackage.SPACECRAFT__PAYLOAD: | ||
145 | return basicSetPayload(null, msgs); | ||
146 | } | ||
147 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
148 | } | ||
149 | |||
150 | /** | ||
151 | * <!-- begin-user-doc --> | ||
152 | * <!-- end-user-doc --> | ||
153 | * @generated | ||
154 | */ | ||
155 | @Override | ||
156 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
157 | switch (featureID) { | ||
158 | case SatellitePackage.SPACECRAFT__PAYLOAD: | ||
159 | return getPayload(); | ||
160 | case SatellitePackage.SPACECRAFT__KIND: | ||
161 | return getKind(); | ||
162 | } | ||
163 | return super.eGet(featureID, resolve, coreType); | ||
164 | } | ||
165 | |||
166 | /** | ||
167 | * <!-- begin-user-doc --> | ||
168 | * <!-- end-user-doc --> | ||
169 | * @generated | ||
170 | */ | ||
171 | @Override | ||
172 | public void eSet(int featureID, Object newValue) { | ||
173 | switch (featureID) { | ||
174 | case SatellitePackage.SPACECRAFT__PAYLOAD: | ||
175 | setPayload((Payload) newValue); | ||
176 | return; | ||
177 | } | ||
178 | super.eSet(featureID, newValue); | ||
179 | } | ||
180 | |||
181 | /** | ||
182 | * <!-- begin-user-doc --> | ||
183 | * <!-- end-user-doc --> | ||
184 | * @generated | ||
185 | */ | ||
186 | @Override | ||
187 | public void eUnset(int featureID) { | ||
188 | switch (featureID) { | ||
189 | case SatellitePackage.SPACECRAFT__PAYLOAD: | ||
190 | setPayload((Payload) null); | ||
191 | return; | ||
192 | } | ||
193 | super.eUnset(featureID); | ||
194 | } | ||
195 | |||
196 | /** | ||
197 | * <!-- begin-user-doc --> | ||
198 | * <!-- end-user-doc --> | ||
199 | * @generated | ||
200 | */ | ||
201 | @Override | ||
202 | public boolean eIsSet(int featureID) { | ||
203 | switch (featureID) { | ||
204 | case SatellitePackage.SPACECRAFT__PAYLOAD: | ||
205 | return payload != null; | ||
206 | case SatellitePackage.SPACECRAFT__KIND: | ||
207 | return getKind() != KIND_EDEFAULT; | ||
208 | } | ||
209 | return super.eIsSet(featureID); | ||
210 | } | ||
211 | |||
212 | } //SpacecraftImpl | ||