diff options
author | 2020-11-04 01:33:58 -0500 | |
---|---|---|
committer | 2020-11-04 01:33:58 -0500 | |
commit | a20af4d0dbf5eab84ee271d426528aabb5a8ac3b (patch) | |
tree | a9ab772ee313125aaf3a941d66e131b408d949ba /Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl | |
parent | changes in settings of measurements (diff) | |
parent | merge with current master, comment numerical solver related logging (diff) | |
download | VIATRA-Generator-a20af4d0dbf5eab84ee271d426528aabb5a8ac3b.tar.gz VIATRA-Generator-a20af4d0dbf5eab84ee271d426528aabb5a8ac3b.tar.zst VIATRA-Generator-a20af4d0dbf5eab84ee271d426528aabb5a8ac3b.zip |
fix merging issue
Diffstat (limited to 'Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl')
17 files changed, 2073 insertions, 0 deletions
diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/CommSubsystemImpl.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/CommSubsystemImpl.java new file mode 100644 index 00000000..96a25d7c --- /dev/null +++ b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/CommSubsystemImpl.java | |||
@@ -0,0 +1,287 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package satellite.impl; | ||
4 | |||
5 | import org.eclipse.emf.common.notify.Notification; | ||
6 | import org.eclipse.emf.ecore.EClass; | ||
7 | import org.eclipse.emf.ecore.InternalEObject; | ||
8 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
9 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
10 | import satellite.CommSubsystem; | ||
11 | import satellite.SatellitePackage; | ||
12 | |||
13 | /** | ||
14 | * <!-- begin-user-doc --> | ||
15 | * An implementation of the model object '<em><b>Comm Subsystem</b></em>'. | ||
16 | * <!-- end-user-doc --> | ||
17 | * <p> | ||
18 | * The following features are implemented: | ||
19 | * </p> | ||
20 | * <ul> | ||
21 | * <li>{@link satellite.impl.CommSubsystemImpl#getTarget <em>Target</em>}</li> | ||
22 | * <li>{@link satellite.impl.CommSubsystemImpl#getFrequency <em>Frequency</em>}</li> | ||
23 | * <li>{@link satellite.impl.CommSubsystemImpl#getPathLength <em>Path Length</em>}</li> | ||
24 | * </ul> | ||
25 | * | ||
26 | * @generated | ||
27 | */ | ||
28 | public abstract class CommSubsystemImpl extends MinimalEObjectImpl.Container implements CommSubsystem { | ||
29 | /** | ||
30 | * The cached value of the '{@link #getTarget() <em>Target</em>}' reference. | ||
31 | * <!-- begin-user-doc --> | ||
32 | * <!-- end-user-doc --> | ||
33 | * @see #getTarget() | ||
34 | * @generated | ||
35 | * @ordered | ||
36 | */ | ||
37 | protected CommSubsystem target; | ||
38 | |||
39 | /** | ||
40 | * The default value of the '{@link #getFrequency() <em>Frequency</em>}' attribute. | ||
41 | * <!-- begin-user-doc --> | ||
42 | * <!-- end-user-doc --> | ||
43 | * @see #getFrequency() | ||
44 | * @generated | ||
45 | * @ordered | ||
46 | */ | ||
47 | protected static final int FREQUENCY_EDEFAULT = 0; | ||
48 | /** | ||
49 | * The cached value of the '{@link #getFrequency() <em>Frequency</em>}' attribute. | ||
50 | * <!-- begin-user-doc --> | ||
51 | * <!-- end-user-doc --> | ||
52 | * @see #getFrequency() | ||
53 | * @generated | ||
54 | * @ordered | ||
55 | */ | ||
56 | protected int frequency = FREQUENCY_EDEFAULT; | ||
57 | |||
58 | /** | ||
59 | * The default value of the '{@link #getPathLength() <em>Path Length</em>}' attribute. | ||
60 | * <!-- begin-user-doc --> | ||
61 | * <!-- end-user-doc --> | ||
62 | * @see #getPathLength() | ||
63 | * @generated | ||
64 | * @ordered | ||
65 | */ | ||
66 | protected static final int PATH_LENGTH_EDEFAULT = 0; | ||
67 | |||
68 | /** | ||
69 | * The cached value of the '{@link #getPathLength() <em>Path Length</em>}' attribute. | ||
70 | * <!-- begin-user-doc --> | ||
71 | * <!-- end-user-doc --> | ||
72 | * @see #getPathLength() | ||
73 | * @generated | ||
74 | * @ordered | ||
75 | */ | ||
76 | protected int pathLength = PATH_LENGTH_EDEFAULT; | ||
77 | |||
78 | /** | ||
79 | * <!-- begin-user-doc --> | ||
80 | * <!-- end-user-doc --> | ||
81 | * @generated | ||
82 | */ | ||
83 | protected CommSubsystemImpl() { | ||
84 | super(); | ||
85 | } | ||
86 | |||
87 | /** | ||
88 | * <!-- begin-user-doc --> | ||
89 | * <!-- end-user-doc --> | ||
90 | * @generated | ||
91 | */ | ||
92 | @Override | ||
93 | protected EClass eStaticClass() { | ||
94 | return SatellitePackage.Literals.COMM_SUBSYSTEM; | ||
95 | } | ||
96 | |||
97 | /** | ||
98 | * <!-- begin-user-doc --> | ||
99 | * <!-- end-user-doc --> | ||
100 | * @generated | ||
101 | */ | ||
102 | @Override | ||
103 | public CommSubsystem getTarget() { | ||
104 | if (target != null && target.eIsProxy()) { | ||
105 | InternalEObject oldTarget = (InternalEObject) target; | ||
106 | target = (CommSubsystem) eResolveProxy(oldTarget); | ||
107 | if (target != oldTarget) { | ||
108 | if (eNotificationRequired()) | ||
109 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, SatellitePackage.COMM_SUBSYSTEM__TARGET, | ||
110 | oldTarget, target)); | ||
111 | } | ||
112 | } | ||
113 | return target; | ||
114 | } | ||
115 | |||
116 | /** | ||
117 | * <!-- begin-user-doc --> | ||
118 | * <!-- end-user-doc --> | ||
119 | * @generated | ||
120 | */ | ||
121 | public CommSubsystem basicGetTarget() { | ||
122 | return target; | ||
123 | } | ||
124 | |||
125 | /** | ||
126 | * <!-- begin-user-doc --> | ||
127 | * <!-- end-user-doc --> | ||
128 | * @generated | ||
129 | */ | ||
130 | @Override | ||
131 | public void setTarget(CommSubsystem newTarget) { | ||
132 | CommSubsystem oldTarget = target; | ||
133 | target = newTarget; | ||
134 | if (eNotificationRequired()) | ||
135 | eNotify(new ENotificationImpl(this, Notification.SET, SatellitePackage.COMM_SUBSYSTEM__TARGET, oldTarget, | ||
136 | target)); | ||
137 | } | ||
138 | |||
139 | /** | ||
140 | * <!-- begin-user-doc --> | ||
141 | * <!-- end-user-doc --> | ||
142 | * @generated | ||
143 | */ | ||
144 | @Override | ||
145 | public int getFrequency() { | ||
146 | return frequency; | ||
147 | } | ||
148 | |||
149 | /** | ||
150 | * <!-- begin-user-doc --> | ||
151 | * <!-- end-user-doc --> | ||
152 | * @generated | ||
153 | */ | ||
154 | @Override | ||
155 | public void setFrequency(int newFrequency) { | ||
156 | int oldFrequency = frequency; | ||
157 | frequency = newFrequency; | ||
158 | if (eNotificationRequired()) | ||
159 | eNotify(new ENotificationImpl(this, Notification.SET, SatellitePackage.COMM_SUBSYSTEM__FREQUENCY, | ||
160 | oldFrequency, frequency)); | ||
161 | } | ||
162 | |||
163 | /** | ||
164 | * <!-- begin-user-doc --> | ||
165 | * <!-- end-user-doc --> | ||
166 | * @generated | ||
167 | */ | ||
168 | @Override | ||
169 | public int getPathLength() { | ||
170 | return pathLength; | ||
171 | } | ||
172 | |||
173 | /** | ||
174 | * <!-- begin-user-doc --> | ||
175 | * <!-- end-user-doc --> | ||
176 | * @generated | ||
177 | */ | ||
178 | @Override | ||
179 | public void setPathLength(int newPathLength) { | ||
180 | int oldPathLength = pathLength; | ||
181 | pathLength = newPathLength; | ||
182 | if (eNotificationRequired()) | ||
183 | eNotify(new ENotificationImpl(this, Notification.SET, SatellitePackage.COMM_SUBSYSTEM__PATH_LENGTH, | ||
184 | oldPathLength, pathLength)); | ||
185 | } | ||
186 | |||
187 | /** | ||
188 | * <!-- begin-user-doc --> | ||
189 | * <!-- end-user-doc --> | ||
190 | * @generated | ||
191 | */ | ||
192 | @Override | ||
193 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
194 | switch (featureID) { | ||
195 | case SatellitePackage.COMM_SUBSYSTEM__TARGET: | ||
196 | if (resolve) | ||
197 | return getTarget(); | ||
198 | return basicGetTarget(); | ||
199 | case SatellitePackage.COMM_SUBSYSTEM__FREQUENCY: | ||
200 | return getFrequency(); | ||
201 | case SatellitePackage.COMM_SUBSYSTEM__PATH_LENGTH: | ||
202 | return getPathLength(); | ||
203 | } | ||
204 | return super.eGet(featureID, resolve, coreType); | ||
205 | } | ||
206 | |||
207 | /** | ||
208 | * <!-- begin-user-doc --> | ||
209 | * <!-- end-user-doc --> | ||
210 | * @generated | ||
211 | */ | ||
212 | @SuppressWarnings("unchecked") | ||
213 | @Override | ||
214 | public void eSet(int featureID, Object newValue) { | ||
215 | switch (featureID) { | ||
216 | case SatellitePackage.COMM_SUBSYSTEM__TARGET: | ||
217 | setTarget((CommSubsystem) newValue); | ||
218 | return; | ||
219 | case SatellitePackage.COMM_SUBSYSTEM__FREQUENCY: | ||
220 | setFrequency((Integer) newValue); | ||
221 | return; | ||
222 | case SatellitePackage.COMM_SUBSYSTEM__PATH_LENGTH: | ||
223 | setPathLength((Integer) newValue); | ||
224 | return; | ||
225 | } | ||
226 | super.eSet(featureID, newValue); | ||
227 | } | ||
228 | |||
229 | /** | ||
230 | * <!-- begin-user-doc --> | ||
231 | * <!-- end-user-doc --> | ||
232 | * @generated | ||
233 | */ | ||
234 | @Override | ||
235 | public void eUnset(int featureID) { | ||
236 | switch (featureID) { | ||
237 | case SatellitePackage.COMM_SUBSYSTEM__TARGET: | ||
238 | setTarget((CommSubsystem) null); | ||
239 | return; | ||
240 | case SatellitePackage.COMM_SUBSYSTEM__FREQUENCY: | ||
241 | setFrequency(FREQUENCY_EDEFAULT); | ||
242 | return; | ||
243 | case SatellitePackage.COMM_SUBSYSTEM__PATH_LENGTH: | ||
244 | setPathLength(PATH_LENGTH_EDEFAULT); | ||
245 | return; | ||
246 | } | ||
247 | super.eUnset(featureID); | ||
248 | } | ||
249 | |||
250 | /** | ||
251 | * <!-- begin-user-doc --> | ||
252 | * <!-- end-user-doc --> | ||
253 | * @generated | ||
254 | */ | ||
255 | @Override | ||
256 | public boolean eIsSet(int featureID) { | ||
257 | switch (featureID) { | ||
258 | case SatellitePackage.COMM_SUBSYSTEM__TARGET: | ||
259 | return target != null; | ||
260 | case SatellitePackage.COMM_SUBSYSTEM__FREQUENCY: | ||
261 | return frequency != FREQUENCY_EDEFAULT; | ||
262 | case SatellitePackage.COMM_SUBSYSTEM__PATH_LENGTH: | ||
263 | return pathLength != PATH_LENGTH_EDEFAULT; | ||
264 | } | ||
265 | return super.eIsSet(featureID); | ||
266 | } | ||
267 | |||
268 | /** | ||
269 | * <!-- begin-user-doc --> | ||
270 | * <!-- end-user-doc --> | ||
271 | * @generated | ||
272 | */ | ||
273 | @Override | ||
274 | public String toString() { | ||
275 | if (eIsProxy()) | ||
276 | return super.toString(); | ||
277 | |||
278 | StringBuilder result = new StringBuilder(super.toString()); | ||
279 | result.append(" (frequency: "); | ||
280 | result.append(frequency); | ||
281 | result.append(", pathLength: "); | ||
282 | result.append(pathLength); | ||
283 | result.append(')'); | ||
284 | return result.toString(); | ||
285 | } | ||
286 | |||
287 | } //CommSubsystemImpl | ||
diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/CommunicatingElementImpl.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/CommunicatingElementImpl.java new file mode 100644 index 00000000..d44547d3 --- /dev/null +++ b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/CommunicatingElementImpl.java | |||
@@ -0,0 +1,152 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package satellite.impl; | ||
4 | |||
5 | import java.util.Collection; | ||
6 | import org.eclipse.emf.common.notify.NotificationChain; | ||
7 | |||
8 | import org.eclipse.emf.common.util.EList; | ||
9 | |||
10 | import org.eclipse.emf.ecore.EClass; | ||
11 | import org.eclipse.emf.ecore.InternalEObject; | ||
12 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
13 | |||
14 | import org.eclipse.emf.ecore.util.EObjectContainmentEList; | ||
15 | import org.eclipse.emf.ecore.util.InternalEList; | ||
16 | |||
17 | import satellite.CommSubsystem; | ||
18 | import satellite.CommunicatingElement; | ||
19 | import satellite.SatellitePackage; | ||
20 | |||
21 | /** | ||
22 | * <!-- begin-user-doc --> | ||
23 | * An implementation of the model object '<em><b>Communicating Element</b></em>'. | ||
24 | * <!-- end-user-doc --> | ||
25 | * <p> | ||
26 | * The following features are implemented: | ||
27 | * </p> | ||
28 | * <ul> | ||
29 | * <li>{@link satellite.impl.CommunicatingElementImpl#getCommSubsystem <em>Comm Subsystem</em>}</li> | ||
30 | * </ul> | ||
31 | * | ||
32 | * @generated | ||
33 | */ | ||
34 | public abstract class CommunicatingElementImpl extends MinimalEObjectImpl.Container implements CommunicatingElement { | ||
35 | /** | ||
36 | * The cached value of the '{@link #getCommSubsystem() <em>Comm Subsystem</em>}' containment reference list. | ||
37 | * <!-- begin-user-doc --> | ||
38 | * <!-- end-user-doc --> | ||
39 | * @see #getCommSubsystem() | ||
40 | * @generated | ||
41 | * @ordered | ||
42 | */ | ||
43 | protected EList<CommSubsystem> commSubsystem; | ||
44 | |||
45 | /** | ||
46 | * <!-- begin-user-doc --> | ||
47 | * <!-- end-user-doc --> | ||
48 | * @generated | ||
49 | */ | ||
50 | protected CommunicatingElementImpl() { | ||
51 | super(); | ||
52 | } | ||
53 | |||
54 | /** | ||
55 | * <!-- begin-user-doc --> | ||
56 | * <!-- end-user-doc --> | ||
57 | * @generated | ||
58 | */ | ||
59 | @Override | ||
60 | protected EClass eStaticClass() { | ||
61 | return SatellitePackage.Literals.COMMUNICATING_ELEMENT; | ||
62 | } | ||
63 | |||
64 | /** | ||
65 | * <!-- begin-user-doc --> | ||
66 | * <!-- end-user-doc --> | ||
67 | * @generated | ||
68 | */ | ||
69 | @Override | ||
70 | public EList<CommSubsystem> getCommSubsystem() { | ||
71 | if (commSubsystem == null) { | ||
72 | commSubsystem = new EObjectContainmentEList<CommSubsystem>(CommSubsystem.class, this, | ||
73 | SatellitePackage.COMMUNICATING_ELEMENT__COMM_SUBSYSTEM); | ||
74 | } | ||
75 | return commSubsystem; | ||
76 | } | ||
77 | |||
78 | /** | ||
79 | * <!-- begin-user-doc --> | ||
80 | * <!-- end-user-doc --> | ||
81 | * @generated | ||
82 | */ | ||
83 | @Override | ||
84 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
85 | switch (featureID) { | ||
86 | case SatellitePackage.COMMUNICATING_ELEMENT__COMM_SUBSYSTEM: | ||
87 | return ((InternalEList<?>) getCommSubsystem()).basicRemove(otherEnd, msgs); | ||
88 | } | ||
89 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
90 | } | ||
91 | |||
92 | /** | ||
93 | * <!-- begin-user-doc --> | ||
94 | * <!-- end-user-doc --> | ||
95 | * @generated | ||
96 | */ | ||
97 | @Override | ||
98 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
99 | switch (featureID) { | ||
100 | case SatellitePackage.COMMUNICATING_ELEMENT__COMM_SUBSYSTEM: | ||
101 | return getCommSubsystem(); | ||
102 | } | ||
103 | return super.eGet(featureID, resolve, coreType); | ||
104 | } | ||
105 | |||
106 | /** | ||
107 | * <!-- begin-user-doc --> | ||
108 | * <!-- end-user-doc --> | ||
109 | * @generated | ||
110 | */ | ||
111 | @SuppressWarnings("unchecked") | ||
112 | @Override | ||
113 | public void eSet(int featureID, Object newValue) { | ||
114 | switch (featureID) { | ||
115 | case SatellitePackage.COMMUNICATING_ELEMENT__COMM_SUBSYSTEM: | ||
116 | getCommSubsystem().clear(); | ||
117 | getCommSubsystem().addAll((Collection<? extends CommSubsystem>) newValue); | ||
118 | return; | ||
119 | } | ||
120 | super.eSet(featureID, newValue); | ||
121 | } | ||
122 | |||
123 | /** | ||
124 | * <!-- begin-user-doc --> | ||
125 | * <!-- end-user-doc --> | ||
126 | * @generated | ||
127 | */ | ||
128 | @Override | ||
129 | public void eUnset(int featureID) { | ||
130 | switch (featureID) { | ||
131 | case SatellitePackage.COMMUNICATING_ELEMENT__COMM_SUBSYSTEM: | ||
132 | getCommSubsystem().clear(); | ||
133 | return; | ||
134 | } | ||
135 | super.eUnset(featureID); | ||
136 | } | ||
137 | |||
138 | /** | ||
139 | * <!-- begin-user-doc --> | ||
140 | * <!-- end-user-doc --> | ||
141 | * @generated | ||
142 | */ | ||
143 | @Override | ||
144 | public boolean eIsSet(int featureID) { | ||
145 | switch (featureID) { | ||
146 | case SatellitePackage.COMMUNICATING_ELEMENT__COMM_SUBSYSTEM: | ||
147 | return commSubsystem != null && !commSubsystem.isEmpty(); | ||
148 | } | ||
149 | return super.eIsSet(featureID); | ||
150 | } | ||
151 | |||
152 | } //CommunicatingElementImpl | ||
diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/ConstellationMissionImpl.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/ConstellationMissionImpl.java new file mode 100644 index 00000000..7635d7cd --- /dev/null +++ b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/ConstellationMissionImpl.java | |||
@@ -0,0 +1,237 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package satellite.impl; | ||
4 | |||
5 | import java.util.Collection; | ||
6 | |||
7 | import org.eclipse.emf.common.notify.Notification; | ||
8 | import org.eclipse.emf.common.notify.NotificationChain; | ||
9 | |||
10 | import org.eclipse.emf.common.util.EList; | ||
11 | |||
12 | import org.eclipse.emf.ecore.EClass; | ||
13 | import org.eclipse.emf.ecore.InternalEObject; | ||
14 | |||
15 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
16 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
17 | |||
18 | import org.eclipse.emf.ecore.util.EObjectContainmentEList; | ||
19 | import org.eclipse.emf.ecore.util.InternalEList; | ||
20 | |||
21 | import satellite.ConstellationMission; | ||
22 | import satellite.GroundStationNetwork; | ||
23 | import satellite.SatellitePackage; | ||
24 | import satellite.Spacecraft; | ||
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 satellite.impl.ConstellationMissionImpl#getGroundStationNetwork <em>Ground Station Network</em>}</li> | ||
35 | * <li>{@link 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/satellite/impl/CubeSat3UImpl.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/CubeSat3UImpl.java new file mode 100644 index 00000000..350a9bcc --- /dev/null +++ b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/CubeSat3UImpl.java | |||
@@ -0,0 +1,37 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package satellite.impl; | ||
4 | |||
5 | import org.eclipse.emf.ecore.EClass; | ||
6 | |||
7 | import satellite.CubeSat3U; | ||
8 | import satellite.SatellitePackage; | ||
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/satellite/impl/CubeSat6UImpl.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/CubeSat6UImpl.java new file mode 100644 index 00000000..3b9c5988 --- /dev/null +++ b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/CubeSat6UImpl.java | |||
@@ -0,0 +1,37 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package satellite.impl; | ||
4 | |||
5 | import org.eclipse.emf.ecore.EClass; | ||
6 | |||
7 | import satellite.CubeSat6U; | ||
8 | import satellite.SatellitePackage; | ||
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/satellite/impl/CubeSatImpl.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/CubeSatImpl.java new file mode 100644 index 00000000..660bd062 --- /dev/null +++ b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/CubeSatImpl.java | |||
@@ -0,0 +1,37 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package satellite.impl; | ||
4 | |||
5 | import org.eclipse.emf.ecore.EClass; | ||
6 | |||
7 | import satellite.CubeSat; | ||
8 | import satellite.SatellitePackage; | ||
9 | |||
10 | /** | ||
11 | * <!-- begin-user-doc --> | ||
12 | * An implementation of the model object '<em><b>Cube Sat</b></em>'. | ||
13 | * <!-- end-user-doc --> | ||
14 | * | ||
15 | * @generated | ||
16 | */ | ||
17 | public abstract class CubeSatImpl extends SpacecraftImpl implements CubeSat { | ||
18 | /** | ||
19 | * <!-- begin-user-doc --> | ||
20 | * <!-- end-user-doc --> | ||
21 | * @generated | ||
22 | */ | ||
23 | protected CubeSatImpl() { | ||
24 | super(); | ||
25 | } | ||
26 | |||
27 | /** | ||
28 | * <!-- begin-user-doc --> | ||
29 | * <!-- end-user-doc --> | ||
30 | * @generated | ||
31 | */ | ||
32 | @Override | ||
33 | protected EClass eStaticClass() { | ||
34 | return SatellitePackage.Literals.CUBE_SAT; | ||
35 | } | ||
36 | |||
37 | } //CubeSatImpl | ||
diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/GroundStationNetworkImpl.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/GroundStationNetworkImpl.java new file mode 100644 index 00000000..244b9568 --- /dev/null +++ b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/GroundStationNetworkImpl.java | |||
@@ -0,0 +1,37 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package satellite.impl; | ||
4 | |||
5 | import org.eclipse.emf.ecore.EClass; | ||
6 | |||
7 | import satellite.GroundStationNetwork; | ||
8 | import satellite.SatellitePackage; | ||
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/satellite/impl/InterferometryMissionImpl.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/InterferometryMissionImpl.java new file mode 100644 index 00000000..450f8a9a --- /dev/null +++ b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/InterferometryMissionImpl.java | |||
@@ -0,0 +1,36 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package satellite.impl; | ||
4 | |||
5 | import org.eclipse.emf.ecore.EClass; | ||
6 | import satellite.InterferometryMission; | ||
7 | import satellite.SatellitePackage; | ||
8 | |||
9 | /** | ||
10 | * <!-- begin-user-doc --> | ||
11 | * An implementation of the model object '<em><b>Interferometry Mission</b></em>'. | ||
12 | * <!-- end-user-doc --> | ||
13 | * | ||
14 | * @generated | ||
15 | */ | ||
16 | public class InterferometryMissionImpl extends ConstellationMissionImpl implements InterferometryMission { | ||
17 | /** | ||
18 | * <!-- begin-user-doc --> | ||
19 | * <!-- end-user-doc --> | ||
20 | * @generated | ||
21 | */ | ||
22 | protected InterferometryMissionImpl() { | ||
23 | super(); | ||
24 | } | ||
25 | |||
26 | /** | ||
27 | * <!-- begin-user-doc --> | ||
28 | * <!-- end-user-doc --> | ||
29 | * @generated | ||
30 | */ | ||
31 | @Override | ||
32 | protected EClass eStaticClass() { | ||
33 | return SatellitePackage.Literals.INTERFEROMETRY_MISSION; | ||
34 | } | ||
35 | |||
36 | } //InterferometryMissionImpl | ||
diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/InterferometryPayloadImpl.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/InterferometryPayloadImpl.java new file mode 100644 index 00000000..c8f9e816 --- /dev/null +++ b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/InterferometryPayloadImpl.java | |||
@@ -0,0 +1,37 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package satellite.impl; | ||
4 | |||
5 | import org.eclipse.emf.ecore.EClass; | ||
6 | |||
7 | import satellite.InterferometryPayload; | ||
8 | import satellite.SatellitePackage; | ||
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/satellite/impl/KaCommSubsystemImpl.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/KaCommSubsystemImpl.java new file mode 100644 index 00000000..3f4fc432 --- /dev/null +++ b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/KaCommSubsystemImpl.java | |||
@@ -0,0 +1,37 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package satellite.impl; | ||
4 | |||
5 | import org.eclipse.emf.ecore.EClass; | ||
6 | |||
7 | import satellite.KaCommSubsystem; | ||
8 | import satellite.SatellitePackage; | ||
9 | |||
10 | /** | ||
11 | * <!-- begin-user-doc --> | ||
12 | * An implementation of the model object '<em><b>Ka Comm Subsystem</b></em>'. | ||
13 | * <!-- end-user-doc --> | ||
14 | * | ||
15 | * @generated | ||
16 | */ | ||
17 | public class KaCommSubsystemImpl extends CommSubsystemImpl implements KaCommSubsystem { | ||
18 | /** | ||
19 | * <!-- begin-user-doc --> | ||
20 | * <!-- end-user-doc --> | ||
21 | * @generated | ||
22 | */ | ||
23 | protected KaCommSubsystemImpl() { | ||
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.KA_COMM_SUBSYSTEM; | ||
35 | } | ||
36 | |||
37 | } //KaCommSubsystemImpl | ||
diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/PayloadImpl.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/PayloadImpl.java new file mode 100644 index 00000000..6ee96353 --- /dev/null +++ b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/PayloadImpl.java | |||
@@ -0,0 +1,39 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package satellite.impl; | ||
4 | |||
5 | import org.eclipse.emf.ecore.EClass; | ||
6 | |||
7 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
8 | |||
9 | import satellite.Payload; | ||
10 | import satellite.SatellitePackage; | ||
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/satellite/impl/SatelliteFactoryImpl.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/SatelliteFactoryImpl.java new file mode 100644 index 00000000..71e16abf --- /dev/null +++ b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/SatelliteFactoryImpl.java | |||
@@ -0,0 +1,202 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package satellite.impl; | ||
4 | |||
5 | import org.eclipse.emf.ecore.EClass; | ||
6 | import org.eclipse.emf.ecore.EObject; | ||
7 | import org.eclipse.emf.ecore.EPackage; | ||
8 | |||
9 | import org.eclipse.emf.ecore.impl.EFactoryImpl; | ||
10 | |||
11 | import org.eclipse.emf.ecore.plugin.EcorePlugin; | ||
12 | |||
13 | import satellite.*; | ||
14 | |||
15 | /** | ||
16 | * <!-- begin-user-doc --> | ||
17 | * An implementation of the model <b>Factory</b>. | ||
18 | * <!-- end-user-doc --> | ||
19 | * @generated | ||
20 | */ | ||
21 | public class SatelliteFactoryImpl extends EFactoryImpl implements SatelliteFactory { | ||
22 | /** | ||
23 | * Creates the default factory implementation. | ||
24 | * <!-- begin-user-doc --> | ||
25 | * <!-- end-user-doc --> | ||
26 | * @generated | ||
27 | */ | ||
28 | public static SatelliteFactory init() { | ||
29 | try { | ||
30 | SatelliteFactory theSatelliteFactory = (SatelliteFactory) EPackage.Registry.INSTANCE | ||
31 | .getEFactory(SatellitePackage.eNS_URI); | ||
32 | if (theSatelliteFactory != null) { | ||
33 | return theSatelliteFactory; | ||
34 | } | ||
35 | } catch (Exception exception) { | ||
36 | EcorePlugin.INSTANCE.log(exception); | ||
37 | } | ||
38 | return new SatelliteFactoryImpl(); | ||
39 | } | ||
40 | |||
41 | /** | ||
42 | * Creates an instance of the factory. | ||
43 | * <!-- begin-user-doc --> | ||
44 | * <!-- end-user-doc --> | ||
45 | * @generated | ||
46 | */ | ||
47 | public SatelliteFactoryImpl() { | ||
48 | super(); | ||
49 | } | ||
50 | |||
51 | /** | ||
52 | * <!-- begin-user-doc --> | ||
53 | * <!-- end-user-doc --> | ||
54 | * @generated | ||
55 | */ | ||
56 | @Override | ||
57 | public EObject create(EClass eClass) { | ||
58 | switch (eClass.getClassifierID()) { | ||
59 | case SatellitePackage.INTERFEROMETRY_MISSION: | ||
60 | return createInterferometryMission(); | ||
61 | case SatellitePackage.GROUND_STATION_NETWORK: | ||
62 | return createGroundStationNetwork(); | ||
63 | case SatellitePackage.INTERFEROMETRY_PAYLOAD: | ||
64 | return createInterferometryPayload(); | ||
65 | case SatellitePackage.CUBE_SAT3_U: | ||
66 | return createCubeSat3U(); | ||
67 | case SatellitePackage.CUBE_SAT6_U: | ||
68 | return createCubeSat6U(); | ||
69 | case SatellitePackage.SMALL_SAT: | ||
70 | return createSmallSat(); | ||
71 | case SatellitePackage.UHF_COMM_SUBSYSTEM: | ||
72 | return createUHFCommSubsystem(); | ||
73 | case SatellitePackage.XCOMM_SUBSYSTEM: | ||
74 | return createXCommSubsystem(); | ||
75 | case SatellitePackage.KA_COMM_SUBSYSTEM: | ||
76 | return createKaCommSubsystem(); | ||
77 | default: | ||
78 | throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); | ||
79 | } | ||
80 | } | ||
81 | |||
82 | /** | ||
83 | * <!-- begin-user-doc --> | ||
84 | * <!-- end-user-doc --> | ||
85 | * @generated | ||
86 | */ | ||
87 | @Override | ||
88 | public InterferometryMission createInterferometryMission() { | ||
89 | InterferometryMissionImpl interferometryMission = new InterferometryMissionImpl(); | ||
90 | return interferometryMission; | ||
91 | } | ||
92 | |||
93 | /** | ||
94 | * <!-- begin-user-doc --> | ||
95 | * <!-- end-user-doc --> | ||
96 | * @generated | ||
97 | */ | ||
98 | @Override | ||
99 | public GroundStationNetwork createGroundStationNetwork() { | ||
100 | GroundStationNetworkImpl groundStationNetwork = new GroundStationNetworkImpl(); | ||
101 | return groundStationNetwork; | ||
102 | } | ||
103 | |||
104 | /** | ||
105 | * <!-- begin-user-doc --> | ||
106 | * <!-- end-user-doc --> | ||
107 | * @generated | ||
108 | */ | ||
109 | @Override | ||
110 | public InterferometryPayload createInterferometryPayload() { | ||
111 | InterferometryPayloadImpl interferometryPayload = new InterferometryPayloadImpl(); | ||
112 | return interferometryPayload; | ||
113 | } | ||
114 | |||
115 | /** | ||
116 | * <!-- begin-user-doc --> | ||
117 | * <!-- end-user-doc --> | ||
118 | * @generated | ||
119 | */ | ||
120 | @Override | ||
121 | public CubeSat3U createCubeSat3U() { | ||
122 | CubeSat3UImpl cubeSat3U = new CubeSat3UImpl(); | ||
123 | return cubeSat3U; | ||
124 | } | ||
125 | |||
126 | /** | ||
127 | * <!-- begin-user-doc --> | ||
128 | * <!-- end-user-doc --> | ||
129 | * @generated | ||
130 | */ | ||
131 | @Override | ||
132 | public CubeSat6U createCubeSat6U() { | ||
133 | CubeSat6UImpl cubeSat6U = new CubeSat6UImpl(); | ||
134 | return cubeSat6U; | ||
135 | } | ||
136 | |||
137 | /** | ||
138 | * <!-- begin-user-doc --> | ||
139 | * <!-- end-user-doc --> | ||
140 | * @generated | ||
141 | */ | ||
142 | @Override | ||
143 | public SmallSat createSmallSat() { | ||
144 | SmallSatImpl smallSat = new SmallSatImpl(); | ||
145 | return smallSat; | ||
146 | } | ||
147 | |||
148 | /** | ||
149 | * <!-- begin-user-doc --> | ||
150 | * <!-- end-user-doc --> | ||
151 | * @generated | ||
152 | */ | ||
153 | @Override | ||
154 | public UHFCommSubsystem createUHFCommSubsystem() { | ||
155 | UHFCommSubsystemImpl uhfCommSubsystem = new UHFCommSubsystemImpl(); | ||
156 | return uhfCommSubsystem; | ||
157 | } | ||
158 | |||
159 | /** | ||
160 | * <!-- begin-user-doc --> | ||
161 | * <!-- end-user-doc --> | ||
162 | * @generated | ||
163 | */ | ||
164 | @Override | ||
165 | public XCommSubsystem createXCommSubsystem() { | ||
166 | XCommSubsystemImpl xCommSubsystem = new XCommSubsystemImpl(); | ||
167 | return xCommSubsystem; | ||
168 | } | ||
169 | |||
170 | /** | ||
171 | * <!-- begin-user-doc --> | ||
172 | * <!-- end-user-doc --> | ||
173 | * @generated | ||
174 | */ | ||
175 | @Override | ||
176 | public KaCommSubsystem createKaCommSubsystem() { | ||
177 | KaCommSubsystemImpl kaCommSubsystem = new KaCommSubsystemImpl(); | ||
178 | return kaCommSubsystem; | ||
179 | } | ||
180 | |||
181 | /** | ||
182 | * <!-- begin-user-doc --> | ||
183 | * <!-- end-user-doc --> | ||
184 | * @generated | ||
185 | */ | ||
186 | @Override | ||
187 | public SatellitePackage getSatellitePackage() { | ||
188 | return (SatellitePackage) getEPackage(); | ||
189 | } | ||
190 | |||
191 | /** | ||
192 | * <!-- begin-user-doc --> | ||
193 | * <!-- end-user-doc --> | ||
194 | * @deprecated | ||
195 | * @generated | ||
196 | */ | ||
197 | @Deprecated | ||
198 | public static SatellitePackage getPackage() { | ||
199 | return SatellitePackage.eINSTANCE; | ||
200 | } | ||
201 | |||
202 | } //SatelliteFactoryImpl | ||
diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/SatellitePackageImpl.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/SatellitePackageImpl.java new file mode 100644 index 00000000..39a6075f --- /dev/null +++ b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/SatellitePackageImpl.java | |||
@@ -0,0 +1,603 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package satellite.impl; | ||
4 | |||
5 | import org.eclipse.emf.ecore.EAttribute; | ||
6 | import org.eclipse.emf.ecore.EClass; | ||
7 | import org.eclipse.emf.ecore.EPackage; | ||
8 | import org.eclipse.emf.ecore.EReference; | ||
9 | |||
10 | import org.eclipse.emf.ecore.impl.EPackageImpl; | ||
11 | import satellite.CommSubsystem; | ||
12 | import satellite.CommunicatingElement; | ||
13 | import satellite.ConstellationMission; | ||
14 | import satellite.CubeSat; | ||
15 | import satellite.CubeSat3U; | ||
16 | import satellite.CubeSat6U; | ||
17 | import satellite.GroundStationNetwork; | ||
18 | import satellite.InterferometryMission; | ||
19 | import satellite.InterferometryPayload; | ||
20 | import satellite.KaCommSubsystem; | ||
21 | import satellite.Payload; | ||
22 | import satellite.SatelliteFactory; | ||
23 | import satellite.SatellitePackage; | ||
24 | import satellite.SmallSat; | ||
25 | import satellite.Spacecraft; | ||
26 | import satellite.UHFCommSubsystem; | ||
27 | import satellite.XCommSubsystem; | ||
28 | |||
29 | /** | ||
30 | * <!-- begin-user-doc --> | ||
31 | * An implementation of the model <b>Package</b>. | ||
32 | * <!-- end-user-doc --> | ||
33 | * @generated | ||
34 | */ | ||
35 | public class SatellitePackageImpl extends EPackageImpl implements SatellitePackage { | ||
36 | /** | ||
37 | * <!-- begin-user-doc --> | ||
38 | * <!-- end-user-doc --> | ||
39 | * @generated | ||
40 | */ | ||
41 | private EClass constellationMissionEClass = null; | ||
42 | |||
43 | /** | ||
44 | * <!-- begin-user-doc --> | ||
45 | * <!-- end-user-doc --> | ||
46 | * @generated | ||
47 | */ | ||
48 | private EClass interferometryMissionEClass = null; | ||
49 | |||
50 | /** | ||
51 | * <!-- begin-user-doc --> | ||
52 | * <!-- end-user-doc --> | ||
53 | * @generated | ||
54 | */ | ||
55 | private EClass communicatingElementEClass = null; | ||
56 | |||
57 | /** | ||
58 | * <!-- begin-user-doc --> | ||
59 | * <!-- end-user-doc --> | ||
60 | * @generated | ||
61 | */ | ||
62 | private EClass groundStationNetworkEClass = null; | ||
63 | |||
64 | /** | ||
65 | * <!-- begin-user-doc --> | ||
66 | * <!-- end-user-doc --> | ||
67 | * @generated | ||
68 | */ | ||
69 | private EClass spacecraftEClass = null; | ||
70 | |||
71 | /** | ||
72 | * <!-- begin-user-doc --> | ||
73 | * <!-- end-user-doc --> | ||
74 | * @generated | ||
75 | */ | ||
76 | private EClass commSubsystemEClass = null; | ||
77 | |||
78 | /** | ||
79 | * <!-- begin-user-doc --> | ||
80 | * <!-- end-user-doc --> | ||
81 | * @generated | ||
82 | */ | ||
83 | private EClass payloadEClass = null; | ||
84 | |||
85 | /** | ||
86 | * <!-- begin-user-doc --> | ||
87 | * <!-- end-user-doc --> | ||
88 | * @generated | ||
89 | */ | ||
90 | private EClass interferometryPayloadEClass = null; | ||
91 | |||
92 | /** | ||
93 | * <!-- begin-user-doc --> | ||
94 | * <!-- end-user-doc --> | ||
95 | * @generated | ||
96 | */ | ||
97 | private EClass cubeSat3UEClass = null; | ||
98 | |||
99 | /** | ||
100 | * <!-- begin-user-doc --> | ||
101 | * <!-- end-user-doc --> | ||
102 | * @generated | ||
103 | */ | ||
104 | private EClass cubeSat6UEClass = null; | ||
105 | |||
106 | /** | ||
107 | * <!-- begin-user-doc --> | ||
108 | * <!-- end-user-doc --> | ||
109 | * @generated | ||
110 | */ | ||
111 | private EClass smallSatEClass = null; | ||
112 | |||
113 | /** | ||
114 | * <!-- begin-user-doc --> | ||
115 | * <!-- end-user-doc --> | ||
116 | * @generated | ||
117 | */ | ||
118 | private EClass cubeSatEClass = null; | ||
119 | |||
120 | /** | ||
121 | * <!-- begin-user-doc --> | ||
122 | * <!-- end-user-doc --> | ||
123 | * @generated | ||
124 | */ | ||
125 | private EClass uhfCommSubsystemEClass = null; | ||
126 | |||
127 | /** | ||
128 | * <!-- begin-user-doc --> | ||
129 | * <!-- end-user-doc --> | ||
130 | * @generated | ||
131 | */ | ||
132 | private EClass xCommSubsystemEClass = null; | ||
133 | |||
134 | /** | ||
135 | * <!-- begin-user-doc --> | ||
136 | * <!-- end-user-doc --> | ||
137 | * @generated | ||
138 | */ | ||
139 | private EClass kaCommSubsystemEClass = null; | ||
140 | |||
141 | /** | ||
142 | * Creates an instance of the model <b>Package</b>, registered with | ||
143 | * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package | ||
144 | * package URI value. | ||
145 | * <p>Note: the correct way to create the package is via the static | ||
146 | * factory method {@link #init init()}, which also performs | ||
147 | * initialization of the package, or returns the registered package, | ||
148 | * if one already exists. | ||
149 | * <!-- begin-user-doc --> | ||
150 | * <!-- end-user-doc --> | ||
151 | * @see org.eclipse.emf.ecore.EPackage.Registry | ||
152 | * @see satellite.SatellitePackage#eNS_URI | ||
153 | * @see #init() | ||
154 | * @generated | ||
155 | */ | ||
156 | private SatellitePackageImpl() { | ||
157 | super(eNS_URI, SatelliteFactory.eINSTANCE); | ||
158 | } | ||
159 | |||
160 | /** | ||
161 | * <!-- begin-user-doc --> | ||
162 | * <!-- end-user-doc --> | ||
163 | * @generated | ||
164 | */ | ||
165 | private static boolean isInited = false; | ||
166 | |||
167 | /** | ||
168 | * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends. | ||
169 | * | ||
170 | * <p>This method is used to initialize {@link SatellitePackage#eINSTANCE} when that field is accessed. | ||
171 | * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. | ||
172 | * <!-- begin-user-doc --> | ||
173 | * <!-- end-user-doc --> | ||
174 | * @see #eNS_URI | ||
175 | * @see #createPackageContents() | ||
176 | * @see #initializePackageContents() | ||
177 | * @generated | ||
178 | */ | ||
179 | public static SatellitePackage init() { | ||
180 | if (isInited) | ||
181 | return (SatellitePackage) EPackage.Registry.INSTANCE.getEPackage(SatellitePackage.eNS_URI); | ||
182 | |||
183 | // Obtain or create and register package | ||
184 | Object registeredSatellitePackage = EPackage.Registry.INSTANCE.get(eNS_URI); | ||
185 | SatellitePackageImpl theSatellitePackage = registeredSatellitePackage instanceof SatellitePackageImpl | ||
186 | ? (SatellitePackageImpl) registeredSatellitePackage | ||
187 | : new SatellitePackageImpl(); | ||
188 | |||
189 | isInited = true; | ||
190 | |||
191 | // Create package meta-data objects | ||
192 | theSatellitePackage.createPackageContents(); | ||
193 | |||
194 | // Initialize created meta-data | ||
195 | theSatellitePackage.initializePackageContents(); | ||
196 | |||
197 | // Mark meta-data to indicate it can't be changed | ||
198 | theSatellitePackage.freeze(); | ||
199 | |||
200 | // Update the registry and return the package | ||
201 | EPackage.Registry.INSTANCE.put(SatellitePackage.eNS_URI, theSatellitePackage); | ||
202 | return theSatellitePackage; | ||
203 | } | ||
204 | |||
205 | /** | ||
206 | * <!-- begin-user-doc --> | ||
207 | * <!-- end-user-doc --> | ||
208 | * @generated | ||
209 | */ | ||
210 | @Override | ||
211 | public EClass getConstellationMission() { | ||
212 | return constellationMissionEClass; | ||
213 | } | ||
214 | |||
215 | /** | ||
216 | * <!-- begin-user-doc --> | ||
217 | * <!-- end-user-doc --> | ||
218 | * @generated | ||
219 | */ | ||
220 | @Override | ||
221 | public EReference getConstellationMission_GroundStationNetwork() { | ||
222 | return (EReference) constellationMissionEClass.getEStructuralFeatures().get(0); | ||
223 | } | ||
224 | |||
225 | /** | ||
226 | * <!-- begin-user-doc --> | ||
227 | * <!-- end-user-doc --> | ||
228 | * @generated | ||
229 | */ | ||
230 | @Override | ||
231 | public EReference getConstellationMission_Spacecraft() { | ||
232 | return (EReference) constellationMissionEClass.getEStructuralFeatures().get(1); | ||
233 | } | ||
234 | |||
235 | /** | ||
236 | * <!-- begin-user-doc --> | ||
237 | * <!-- end-user-doc --> | ||
238 | * @generated | ||
239 | */ | ||
240 | @Override | ||
241 | public EClass getInterferometryMission() { | ||
242 | return interferometryMissionEClass; | ||
243 | } | ||
244 | |||
245 | /** | ||
246 | * <!-- begin-user-doc --> | ||
247 | * <!-- end-user-doc --> | ||
248 | * @generated | ||
249 | */ | ||
250 | @Override | ||
251 | public EClass getCommunicatingElement() { | ||
252 | return communicatingElementEClass; | ||
253 | } | ||
254 | |||
255 | /** | ||
256 | * <!-- begin-user-doc --> | ||
257 | * <!-- end-user-doc --> | ||
258 | * @generated | ||
259 | */ | ||
260 | @Override | ||
261 | public EReference getCommunicatingElement_CommSubsystem() { | ||
262 | return (EReference) communicatingElementEClass.getEStructuralFeatures().get(0); | ||
263 | } | ||
264 | |||
265 | /** | ||
266 | * <!-- begin-user-doc --> | ||
267 | * <!-- end-user-doc --> | ||
268 | * @generated | ||
269 | */ | ||
270 | @Override | ||
271 | public EClass getGroundStationNetwork() { | ||
272 | return groundStationNetworkEClass; | ||
273 | } | ||
274 | |||
275 | /** | ||
276 | * <!-- begin-user-doc --> | ||
277 | * <!-- end-user-doc --> | ||
278 | * @generated | ||
279 | */ | ||
280 | @Override | ||
281 | public EClass getSpacecraft() { | ||
282 | return spacecraftEClass; | ||
283 | } | ||
284 | |||
285 | /** | ||
286 | * <!-- begin-user-doc --> | ||
287 | * <!-- end-user-doc --> | ||
288 | * @generated | ||
289 | */ | ||
290 | @Override | ||
291 | public EReference getSpacecraft_Payload() { | ||
292 | return (EReference) spacecraftEClass.getEStructuralFeatures().get(0); | ||
293 | } | ||
294 | |||
295 | /** | ||
296 | * <!-- begin-user-doc --> | ||
297 | * <!-- end-user-doc --> | ||
298 | * @generated | ||
299 | */ | ||
300 | @Override | ||
301 | public EClass getCommSubsystem() { | ||
302 | return commSubsystemEClass; | ||
303 | } | ||
304 | |||
305 | /** | ||
306 | * <!-- begin-user-doc --> | ||
307 | * <!-- end-user-doc --> | ||
308 | * @generated | ||
309 | */ | ||
310 | @Override | ||
311 | public EReference getCommSubsystem_Target() { | ||
312 | return (EReference) commSubsystemEClass.getEStructuralFeatures().get(0); | ||
313 | } | ||
314 | |||
315 | /** | ||
316 | * <!-- begin-user-doc --> | ||
317 | * <!-- end-user-doc --> | ||
318 | * @generated | ||
319 | */ | ||
320 | @Override | ||
321 | public EAttribute getCommSubsystem_Frequency() { | ||
322 | return (EAttribute) commSubsystemEClass.getEStructuralFeatures().get(1); | ||
323 | } | ||
324 | |||
325 | /** | ||
326 | * <!-- begin-user-doc --> | ||
327 | * <!-- end-user-doc --> | ||
328 | * @generated | ||
329 | */ | ||
330 | @Override | ||
331 | public EAttribute getCommSubsystem_PathLength() { | ||
332 | return (EAttribute) commSubsystemEClass.getEStructuralFeatures().get(2); | ||
333 | } | ||
334 | |||
335 | /** | ||
336 | * <!-- begin-user-doc --> | ||
337 | * <!-- end-user-doc --> | ||
338 | * @generated | ||
339 | */ | ||
340 | @Override | ||
341 | public EClass getPayload() { | ||
342 | return payloadEClass; | ||
343 | } | ||
344 | |||
345 | /** | ||
346 | * <!-- begin-user-doc --> | ||
347 | * <!-- end-user-doc --> | ||
348 | * @generated | ||
349 | */ | ||
350 | @Override | ||
351 | public EClass getInterferometryPayload() { | ||
352 | return interferometryPayloadEClass; | ||
353 | } | ||
354 | |||
355 | /** | ||
356 | * <!-- begin-user-doc --> | ||
357 | * <!-- end-user-doc --> | ||
358 | * @generated | ||
359 | */ | ||
360 | @Override | ||
361 | public EClass getCubeSat3U() { | ||
362 | return cubeSat3UEClass; | ||
363 | } | ||
364 | |||
365 | /** | ||
366 | * <!-- begin-user-doc --> | ||
367 | * <!-- end-user-doc --> | ||
368 | * @generated | ||
369 | */ | ||
370 | @Override | ||
371 | public EClass getCubeSat6U() { | ||
372 | return cubeSat6UEClass; | ||
373 | } | ||
374 | |||
375 | /** | ||
376 | * <!-- begin-user-doc --> | ||
377 | * <!-- end-user-doc --> | ||
378 | * @generated | ||
379 | */ | ||
380 | @Override | ||
381 | public EClass getSmallSat() { | ||
382 | return smallSatEClass; | ||
383 | } | ||
384 | |||
385 | /** | ||
386 | * <!-- begin-user-doc --> | ||
387 | * <!-- end-user-doc --> | ||
388 | * @generated | ||
389 | */ | ||
390 | @Override | ||
391 | public EClass getCubeSat() { | ||
392 | return cubeSatEClass; | ||
393 | } | ||
394 | |||
395 | /** | ||
396 | * <!-- begin-user-doc --> | ||
397 | * <!-- end-user-doc --> | ||
398 | * @generated | ||
399 | */ | ||
400 | @Override | ||
401 | public EClass getUHFCommSubsystem() { | ||
402 | return uhfCommSubsystemEClass; | ||
403 | } | ||
404 | |||
405 | /** | ||
406 | * <!-- begin-user-doc --> | ||
407 | * <!-- end-user-doc --> | ||
408 | * @generated | ||
409 | */ | ||
410 | @Override | ||
411 | public EClass getXCommSubsystem() { | ||
412 | return xCommSubsystemEClass; | ||
413 | } | ||
414 | |||
415 | /** | ||
416 | * <!-- begin-user-doc --> | ||
417 | * <!-- end-user-doc --> | ||
418 | * @generated | ||
419 | */ | ||
420 | @Override | ||
421 | public EClass getKaCommSubsystem() { | ||
422 | return kaCommSubsystemEClass; | ||
423 | } | ||
424 | |||
425 | /** | ||
426 | * <!-- begin-user-doc --> | ||
427 | * <!-- end-user-doc --> | ||
428 | * @generated | ||
429 | */ | ||
430 | @Override | ||
431 | public SatelliteFactory getSatelliteFactory() { | ||
432 | return (SatelliteFactory) getEFactoryInstance(); | ||
433 | } | ||
434 | |||
435 | /** | ||
436 | * <!-- begin-user-doc --> | ||
437 | * <!-- end-user-doc --> | ||
438 | * @generated | ||
439 | */ | ||
440 | private boolean isCreated = false; | ||
441 | |||
442 | /** | ||
443 | * Creates the meta-model objects for the package. This method is | ||
444 | * guarded to have no affect on any invocation but its first. | ||
445 | * <!-- begin-user-doc --> | ||
446 | * <!-- end-user-doc --> | ||
447 | * @generated | ||
448 | */ | ||
449 | public void createPackageContents() { | ||
450 | if (isCreated) | ||
451 | return; | ||
452 | isCreated = true; | ||
453 | |||
454 | // Create classes and their features | ||
455 | constellationMissionEClass = createEClass(CONSTELLATION_MISSION); | ||
456 | createEReference(constellationMissionEClass, CONSTELLATION_MISSION__GROUND_STATION_NETWORK); | ||
457 | createEReference(constellationMissionEClass, CONSTELLATION_MISSION__SPACECRAFT); | ||
458 | |||
459 | interferometryMissionEClass = createEClass(INTERFEROMETRY_MISSION); | ||
460 | |||
461 | communicatingElementEClass = createEClass(COMMUNICATING_ELEMENT); | ||
462 | createEReference(communicatingElementEClass, COMMUNICATING_ELEMENT__COMM_SUBSYSTEM); | ||
463 | |||
464 | groundStationNetworkEClass = createEClass(GROUND_STATION_NETWORK); | ||
465 | |||
466 | spacecraftEClass = createEClass(SPACECRAFT); | ||
467 | createEReference(spacecraftEClass, SPACECRAFT__PAYLOAD); | ||
468 | |||
469 | commSubsystemEClass = createEClass(COMM_SUBSYSTEM); | ||
470 | createEReference(commSubsystemEClass, COMM_SUBSYSTEM__TARGET); | ||
471 | createEAttribute(commSubsystemEClass, COMM_SUBSYSTEM__FREQUENCY); | ||
472 | createEAttribute(commSubsystemEClass, COMM_SUBSYSTEM__PATH_LENGTH); | ||
473 | |||
474 | payloadEClass = createEClass(PAYLOAD); | ||
475 | |||
476 | interferometryPayloadEClass = createEClass(INTERFEROMETRY_PAYLOAD); | ||
477 | |||
478 | cubeSat3UEClass = createEClass(CUBE_SAT3_U); | ||
479 | |||
480 | cubeSat6UEClass = createEClass(CUBE_SAT6_U); | ||
481 | |||
482 | smallSatEClass = createEClass(SMALL_SAT); | ||
483 | |||
484 | cubeSatEClass = createEClass(CUBE_SAT); | ||
485 | |||
486 | uhfCommSubsystemEClass = createEClass(UHF_COMM_SUBSYSTEM); | ||
487 | |||
488 | xCommSubsystemEClass = createEClass(XCOMM_SUBSYSTEM); | ||
489 | |||
490 | kaCommSubsystemEClass = createEClass(KA_COMM_SUBSYSTEM); | ||
491 | } | ||
492 | |||
493 | /** | ||
494 | * <!-- begin-user-doc --> | ||
495 | * <!-- end-user-doc --> | ||
496 | * @generated | ||
497 | */ | ||
498 | private boolean isInitialized = false; | ||
499 | |||
500 | /** | ||
501 | * Complete the initialization of the package and its meta-model. This | ||
502 | * method is guarded to have no affect on any invocation but its first. | ||
503 | * <!-- begin-user-doc --> | ||
504 | * <!-- end-user-doc --> | ||
505 | * @generated | ||
506 | */ | ||
507 | public void initializePackageContents() { | ||
508 | if (isInitialized) | ||
509 | return; | ||
510 | isInitialized = true; | ||
511 | |||
512 | // Initialize package | ||
513 | setName(eNAME); | ||
514 | setNsPrefix(eNS_PREFIX); | ||
515 | setNsURI(eNS_URI); | ||
516 | |||
517 | // Create type parameters | ||
518 | |||
519 | // Set bounds for type parameters | ||
520 | |||
521 | // Add supertypes to classes | ||
522 | interferometryMissionEClass.getESuperTypes().add(this.getConstellationMission()); | ||
523 | groundStationNetworkEClass.getESuperTypes().add(this.getCommunicatingElement()); | ||
524 | spacecraftEClass.getESuperTypes().add(this.getCommunicatingElement()); | ||
525 | interferometryPayloadEClass.getESuperTypes().add(this.getPayload()); | ||
526 | cubeSat3UEClass.getESuperTypes().add(this.getCubeSat()); | ||
527 | cubeSat6UEClass.getESuperTypes().add(this.getCubeSat()); | ||
528 | smallSatEClass.getESuperTypes().add(this.getSpacecraft()); | ||
529 | cubeSatEClass.getESuperTypes().add(this.getSpacecraft()); | ||
530 | uhfCommSubsystemEClass.getESuperTypes().add(this.getCommSubsystem()); | ||
531 | xCommSubsystemEClass.getESuperTypes().add(this.getCommSubsystem()); | ||
532 | kaCommSubsystemEClass.getESuperTypes().add(this.getCommSubsystem()); | ||
533 | |||
534 | // Initialize classes, features, and operations; add parameters | ||
535 | initEClass(constellationMissionEClass, ConstellationMission.class, "ConstellationMission", IS_ABSTRACT, | ||
536 | !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
537 | initEReference(getConstellationMission_GroundStationNetwork(), this.getGroundStationNetwork(), null, | ||
538 | "groundStationNetwork", null, 1, 1, ConstellationMission.class, !IS_TRANSIENT, !IS_VOLATILE, | ||
539 | IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
540 | initEReference(getConstellationMission_Spacecraft(), this.getSpacecraft(), null, "spacecraft", null, 2, -1, | ||
541 | ConstellationMission.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, | ||
542 | !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
543 | |||
544 | initEClass(interferometryMissionEClass, InterferometryMission.class, "InterferometryMission", !IS_ABSTRACT, | ||
545 | !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
546 | |||
547 | initEClass(communicatingElementEClass, CommunicatingElement.class, "CommunicatingElement", IS_ABSTRACT, | ||
548 | !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
549 | initEReference(getCommunicatingElement_CommSubsystem(), this.getCommSubsystem(), null, "commSubsystem", null, 1, | ||
550 | 2, CommunicatingElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, | ||
551 | !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
552 | |||
553 | initEClass(groundStationNetworkEClass, GroundStationNetwork.class, "GroundStationNetwork", !IS_ABSTRACT, | ||
554 | !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
555 | |||
556 | initEClass(spacecraftEClass, Spacecraft.class, "Spacecraft", IS_ABSTRACT, !IS_INTERFACE, | ||
557 | IS_GENERATED_INSTANCE_CLASS); | ||
558 | initEReference(getSpacecraft_Payload(), this.getPayload(), null, "payload", null, 0, 1, Spacecraft.class, | ||
559 | !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, | ||
560 | IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
561 | |||
562 | initEClass(commSubsystemEClass, CommSubsystem.class, "CommSubsystem", IS_ABSTRACT, !IS_INTERFACE, | ||
563 | IS_GENERATED_INSTANCE_CLASS); | ||
564 | initEReference(getCommSubsystem_Target(), this.getCommSubsystem(), null, "target", null, 0, 1, | ||
565 | CommSubsystem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, | ||
566 | !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
567 | initEAttribute(getCommSubsystem_Frequency(), ecorePackage.getEInt(), "frequency", null, 1, 1, | ||
568 | CommSubsystem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, | ||
569 | !IS_DERIVED, IS_ORDERED); | ||
570 | initEAttribute(getCommSubsystem_PathLength(), ecorePackage.getEInt(), "pathLength", null, 1, 1, | ||
571 | CommSubsystem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, | ||
572 | !IS_DERIVED, IS_ORDERED); | ||
573 | |||
574 | initEClass(payloadEClass, Payload.class, "Payload", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
575 | |||
576 | initEClass(interferometryPayloadEClass, InterferometryPayload.class, "InterferometryPayload", !IS_ABSTRACT, | ||
577 | !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
578 | |||
579 | initEClass(cubeSat3UEClass, CubeSat3U.class, "CubeSat3U", !IS_ABSTRACT, !IS_INTERFACE, | ||
580 | IS_GENERATED_INSTANCE_CLASS); | ||
581 | |||
582 | initEClass(cubeSat6UEClass, CubeSat6U.class, "CubeSat6U", !IS_ABSTRACT, !IS_INTERFACE, | ||
583 | IS_GENERATED_INSTANCE_CLASS); | ||
584 | |||
585 | initEClass(smallSatEClass, SmallSat.class, "SmallSat", !IS_ABSTRACT, !IS_INTERFACE, | ||
586 | IS_GENERATED_INSTANCE_CLASS); | ||
587 | |||
588 | initEClass(cubeSatEClass, CubeSat.class, "CubeSat", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
589 | |||
590 | initEClass(uhfCommSubsystemEClass, UHFCommSubsystem.class, "UHFCommSubsystem", !IS_ABSTRACT, !IS_INTERFACE, | ||
591 | IS_GENERATED_INSTANCE_CLASS); | ||
592 | |||
593 | initEClass(xCommSubsystemEClass, XCommSubsystem.class, "XCommSubsystem", !IS_ABSTRACT, !IS_INTERFACE, | ||
594 | IS_GENERATED_INSTANCE_CLASS); | ||
595 | |||
596 | initEClass(kaCommSubsystemEClass, KaCommSubsystem.class, "KaCommSubsystem", !IS_ABSTRACT, !IS_INTERFACE, | ||
597 | IS_GENERATED_INSTANCE_CLASS); | ||
598 | |||
599 | // Create resource | ||
600 | createResource(eNS_URI); | ||
601 | } | ||
602 | |||
603 | } //SatellitePackageImpl | ||
diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/SmallSatImpl.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/SmallSatImpl.java new file mode 100644 index 00000000..1785dbf3 --- /dev/null +++ b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/SmallSatImpl.java | |||
@@ -0,0 +1,37 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package satellite.impl; | ||
4 | |||
5 | import org.eclipse.emf.ecore.EClass; | ||
6 | |||
7 | import satellite.SatellitePackage; | ||
8 | import satellite.SmallSat; | ||
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/satellite/impl/SpacecraftImpl.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/SpacecraftImpl.java new file mode 100644 index 00000000..58f5d069 --- /dev/null +++ b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/SpacecraftImpl.java | |||
@@ -0,0 +1,184 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package satellite.impl; | ||
4 | |||
5 | import org.eclipse.emf.common.notify.Notification; | ||
6 | import org.eclipse.emf.common.notify.NotificationChain; | ||
7 | |||
8 | import org.eclipse.emf.ecore.EClass; | ||
9 | import org.eclipse.emf.ecore.InternalEObject; | ||
10 | |||
11 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
12 | |||
13 | import satellite.Payload; | ||
14 | import satellite.SatellitePackage; | ||
15 | import satellite.Spacecraft; | ||
16 | |||
17 | /** | ||
18 | * <!-- begin-user-doc --> | ||
19 | * An implementation of the model object '<em><b>Spacecraft</b></em>'. | ||
20 | * <!-- end-user-doc --> | ||
21 | * <p> | ||
22 | * The following features are implemented: | ||
23 | * </p> | ||
24 | * <ul> | ||
25 | * <li>{@link satellite.impl.SpacecraftImpl#getPayload <em>Payload</em>}</li> | ||
26 | * </ul> | ||
27 | * | ||
28 | * @generated | ||
29 | */ | ||
30 | public abstract class SpacecraftImpl extends CommunicatingElementImpl implements Spacecraft { | ||
31 | /** | ||
32 | * The cached value of the '{@link #getPayload() <em>Payload</em>}' containment reference. | ||
33 | * <!-- begin-user-doc --> | ||
34 | * <!-- end-user-doc --> | ||
35 | * @see #getPayload() | ||
36 | * @generated | ||
37 | * @ordered | ||
38 | */ | ||
39 | protected Payload payload; | ||
40 | |||
41 | /** | ||
42 | * <!-- begin-user-doc --> | ||
43 | * <!-- end-user-doc --> | ||
44 | * @generated | ||
45 | */ | ||
46 | protected SpacecraftImpl() { | ||
47 | super(); | ||
48 | } | ||
49 | |||
50 | /** | ||
51 | * <!-- begin-user-doc --> | ||
52 | * <!-- end-user-doc --> | ||
53 | * @generated | ||
54 | */ | ||
55 | @Override | ||
56 | protected EClass eStaticClass() { | ||
57 | return SatellitePackage.Literals.SPACECRAFT; | ||
58 | } | ||
59 | |||
60 | /** | ||
61 | * <!-- begin-user-doc --> | ||
62 | * <!-- end-user-doc --> | ||
63 | * @generated | ||
64 | */ | ||
65 | @Override | ||
66 | public Payload getPayload() { | ||
67 | return payload; | ||
68 | } | ||
69 | |||
70 | /** | ||
71 | * <!-- begin-user-doc --> | ||
72 | * <!-- end-user-doc --> | ||
73 | * @generated | ||
74 | */ | ||
75 | public NotificationChain basicSetPayload(Payload newPayload, NotificationChain msgs) { | ||
76 | Payload oldPayload = payload; | ||
77 | payload = newPayload; | ||
78 | if (eNotificationRequired()) { | ||
79 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, | ||
80 | SatellitePackage.SPACECRAFT__PAYLOAD, oldPayload, newPayload); | ||
81 | if (msgs == null) | ||
82 | msgs = notification; | ||
83 | else | ||
84 | msgs.add(notification); | ||
85 | } | ||
86 | return msgs; | ||
87 | } | ||
88 | |||
89 | /** | ||
90 | * <!-- begin-user-doc --> | ||
91 | * <!-- end-user-doc --> | ||
92 | * @generated | ||
93 | */ | ||
94 | @Override | ||
95 | public void setPayload(Payload newPayload) { | ||
96 | if (newPayload != payload) { | ||
97 | NotificationChain msgs = null; | ||
98 | if (payload != null) | ||
99 | msgs = ((InternalEObject) payload).eInverseRemove(this, | ||
100 | EOPPOSITE_FEATURE_BASE - SatellitePackage.SPACECRAFT__PAYLOAD, null, msgs); | ||
101 | if (newPayload != null) | ||
102 | msgs = ((InternalEObject) newPayload).eInverseAdd(this, | ||
103 | EOPPOSITE_FEATURE_BASE - SatellitePackage.SPACECRAFT__PAYLOAD, null, msgs); | ||
104 | msgs = basicSetPayload(newPayload, msgs); | ||
105 | if (msgs != null) | ||
106 | msgs.dispatch(); | ||
107 | } else if (eNotificationRequired()) | ||
108 | eNotify(new ENotificationImpl(this, Notification.SET, SatellitePackage.SPACECRAFT__PAYLOAD, newPayload, | ||
109 | newPayload)); | ||
110 | } | ||
111 | |||
112 | /** | ||
113 | * <!-- begin-user-doc --> | ||
114 | * <!-- end-user-doc --> | ||
115 | * @generated | ||
116 | */ | ||
117 | @Override | ||
118 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
119 | switch (featureID) { | ||
120 | case SatellitePackage.SPACECRAFT__PAYLOAD: | ||
121 | return basicSetPayload(null, msgs); | ||
122 | } | ||
123 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
124 | } | ||
125 | |||
126 | /** | ||
127 | * <!-- begin-user-doc --> | ||
128 | * <!-- end-user-doc --> | ||
129 | * @generated | ||
130 | */ | ||
131 | @Override | ||
132 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
133 | switch (featureID) { | ||
134 | case SatellitePackage.SPACECRAFT__PAYLOAD: | ||
135 | return getPayload(); | ||
136 | } | ||
137 | return super.eGet(featureID, resolve, coreType); | ||
138 | } | ||
139 | |||
140 | /** | ||
141 | * <!-- begin-user-doc --> | ||
142 | * <!-- end-user-doc --> | ||
143 | * @generated | ||
144 | */ | ||
145 | @Override | ||
146 | public void eSet(int featureID, Object newValue) { | ||
147 | switch (featureID) { | ||
148 | case SatellitePackage.SPACECRAFT__PAYLOAD: | ||
149 | setPayload((Payload) newValue); | ||
150 | return; | ||
151 | } | ||
152 | super.eSet(featureID, newValue); | ||
153 | } | ||
154 | |||
155 | /** | ||
156 | * <!-- begin-user-doc --> | ||
157 | * <!-- end-user-doc --> | ||
158 | * @generated | ||
159 | */ | ||
160 | @Override | ||
161 | public void eUnset(int featureID) { | ||
162 | switch (featureID) { | ||
163 | case SatellitePackage.SPACECRAFT__PAYLOAD: | ||
164 | setPayload((Payload) null); | ||
165 | return; | ||
166 | } | ||
167 | super.eUnset(featureID); | ||
168 | } | ||
169 | |||
170 | /** | ||
171 | * <!-- begin-user-doc --> | ||
172 | * <!-- end-user-doc --> | ||
173 | * @generated | ||
174 | */ | ||
175 | @Override | ||
176 | public boolean eIsSet(int featureID) { | ||
177 | switch (featureID) { | ||
178 | case SatellitePackage.SPACECRAFT__PAYLOAD: | ||
179 | return payload != null; | ||
180 | } | ||
181 | return super.eIsSet(featureID); | ||
182 | } | ||
183 | |||
184 | } //SpacecraftImpl | ||
diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/UHFCommSubsystemImpl.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/UHFCommSubsystemImpl.java new file mode 100644 index 00000000..df21b9e1 --- /dev/null +++ b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/UHFCommSubsystemImpl.java | |||
@@ -0,0 +1,37 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package satellite.impl; | ||
4 | |||
5 | import org.eclipse.emf.ecore.EClass; | ||
6 | |||
7 | import satellite.SatellitePackage; | ||
8 | import satellite.UHFCommSubsystem; | ||
9 | |||
10 | /** | ||
11 | * <!-- begin-user-doc --> | ||
12 | * An implementation of the model object '<em><b>UHF Comm Subsystem</b></em>'. | ||
13 | * <!-- end-user-doc --> | ||
14 | * | ||
15 | * @generated | ||
16 | */ | ||
17 | public class UHFCommSubsystemImpl extends CommSubsystemImpl implements UHFCommSubsystem { | ||
18 | /** | ||
19 | * <!-- begin-user-doc --> | ||
20 | * <!-- end-user-doc --> | ||
21 | * @generated | ||
22 | */ | ||
23 | protected UHFCommSubsystemImpl() { | ||
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.UHF_COMM_SUBSYSTEM; | ||
35 | } | ||
36 | |||
37 | } //UHFCommSubsystemImpl | ||
diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/XCommSubsystemImpl.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/XCommSubsystemImpl.java new file mode 100644 index 00000000..c686a50e --- /dev/null +++ b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/XCommSubsystemImpl.java | |||
@@ -0,0 +1,37 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package satellite.impl; | ||
4 | |||
5 | import org.eclipse.emf.ecore.EClass; | ||
6 | |||
7 | import satellite.SatellitePackage; | ||
8 | import satellite.XCommSubsystem; | ||
9 | |||
10 | /** | ||
11 | * <!-- begin-user-doc --> | ||
12 | * An implementation of the model object '<em><b>XComm Subsystem</b></em>'. | ||
13 | * <!-- end-user-doc --> | ||
14 | * | ||
15 | * @generated | ||
16 | */ | ||
17 | public class XCommSubsystemImpl extends CommSubsystemImpl implements XCommSubsystem { | ||
18 | /** | ||
19 | * <!-- begin-user-doc --> | ||
20 | * <!-- end-user-doc --> | ||
21 | * @generated | ||
22 | */ | ||
23 | protected XCommSubsystemImpl() { | ||
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.XCOMM_SUBSYSTEM; | ||
35 | } | ||
36 | |||
37 | } //XCommSubsystemImpl | ||