diff options
author | 2019-06-08 19:17:34 -0400 | |
---|---|---|
committer | 2019-06-08 19:17:34 -0400 | |
commit | b21af04ea821c3daa9ce8a6d26c63e9cd198f9a5 (patch) | |
tree | 4be566b25415ca97cb007b5da7d89f216ef515b2 /Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl | |
parent | Merge remote-tracking branch 'origin/master' into kris (diff) | |
download | VIATRA-Generator-b21af04ea821c3daa9ce8a6d26c63e9cd198f9a5.tar.gz VIATRA-Generator-b21af04ea821c3daa9ce8a6d26c63e9cd198f9a5.tar.zst VIATRA-Generator-b21af04ea821c3daa9ce8a6d26c63e9cd198f9a5.zip |
Trying to simplify Satellite case study
Diffstat (limited to 'Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl')
10 files changed, 221 insertions, 419 deletions
diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/CommSubsystemImpl.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/CommSubsystemImpl.java index cf8f1fe8..cae35a0c 100644 --- a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/CommSubsystemImpl.java +++ b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/CommSubsystemImpl.java | |||
@@ -2,73 +2,19 @@ | |||
2 | */ | 2 | */ |
3 | package satellite.impl; | 3 | package satellite.impl; |
4 | 4 | ||
5 | import org.eclipse.emf.common.notify.Notification; | ||
6 | |||
7 | import org.eclipse.emf.ecore.EClass; | 5 | import org.eclipse.emf.ecore.EClass; |
8 | |||
9 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
10 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | 6 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; |
11 | |||
12 | import satellite.AntennaGain; | ||
13 | import satellite.CommSubsystem; | 7 | import satellite.CommSubsystem; |
14 | import satellite.SatellitePackage; | 8 | import satellite.SatellitePackage; |
15 | import satellite.TransceiverBand; | ||
16 | 9 | ||
17 | /** | 10 | /** |
18 | * <!-- begin-user-doc --> | 11 | * <!-- begin-user-doc --> |
19 | * An implementation of the model object '<em><b>Comm Subsystem</b></em>'. | 12 | * An implementation of the model object '<em><b>Comm Subsystem</b></em>'. |
20 | * <!-- end-user-doc --> | 13 | * <!-- end-user-doc --> |
21 | * <p> | ||
22 | * The following features are implemented: | ||
23 | * </p> | ||
24 | * <ul> | ||
25 | * <li>{@link satellite.impl.CommSubsystemImpl#getBand <em>Band</em>}</li> | ||
26 | * <li>{@link satellite.impl.CommSubsystemImpl#getGain <em>Gain</em>}</li> | ||
27 | * </ul> | ||
28 | * | 14 | * |
29 | * @generated | 15 | * @generated |
30 | */ | 16 | */ |
31 | public class CommSubsystemImpl extends MinimalEObjectImpl.Container implements CommSubsystem { | 17 | public abstract 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 | /** | 18 | /** |
73 | * <!-- begin-user-doc --> | 19 | * <!-- begin-user-doc --> |
74 | * <!-- end-user-doc --> | 20 | * <!-- end-user-doc --> |
@@ -88,139 +34,4 @@ public class CommSubsystemImpl extends MinimalEObjectImpl.Container implements C | |||
88 | return SatellitePackage.Literals.COMM_SUBSYSTEM; | 34 | return SatellitePackage.Literals.COMM_SUBSYSTEM; |
89 | } | 35 | } |
90 | 36 | ||
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 | 37 | } //CommSubsystemImpl |
diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/CubeSat3UImpl.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/CubeSat3UImpl.java index a7ba37a7..350a9bcc 100644 --- a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/CubeSat3UImpl.java +++ b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/CubeSat3UImpl.java | |||
@@ -14,7 +14,7 @@ import satellite.SatellitePackage; | |||
14 | * | 14 | * |
15 | * @generated | 15 | * @generated |
16 | */ | 16 | */ |
17 | public class CubeSat3UImpl extends SpacecraftImpl implements CubeSat3U { | 17 | public class CubeSat3UImpl extends CubeSatImpl implements CubeSat3U { |
18 | /** | 18 | /** |
19 | * <!-- begin-user-doc --> | 19 | * <!-- begin-user-doc --> |
20 | * <!-- end-user-doc --> | 20 | * <!-- end-user-doc --> |
diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/CubeSat6UImpl.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/CubeSat6UImpl.java index d4f42e6c..3b9c5988 100644 --- a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/CubeSat6UImpl.java +++ b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/CubeSat6UImpl.java | |||
@@ -14,7 +14,7 @@ import satellite.SatellitePackage; | |||
14 | * | 14 | * |
15 | * @generated | 15 | * @generated |
16 | */ | 16 | */ |
17 | public class CubeSat6UImpl extends SpacecraftImpl implements CubeSat6U { | 17 | public class CubeSat6UImpl extends CubeSatImpl implements CubeSat6U { |
18 | /** | 18 | /** |
19 | * <!-- begin-user-doc --> | 19 | * <!-- begin-user-doc --> |
20 | * <!-- end-user-doc --> | 20 | * <!-- end-user-doc --> |
diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/CubeSatImpl.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/CubeSatImpl.java new file mode 100644 index 00000000..660bd062 --- /dev/null +++ b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/CubeSatImpl.java | |||
@@ -0,0 +1,37 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package satellite.impl; | ||
4 | |||
5 | import org.eclipse.emf.ecore.EClass; | ||
6 | |||
7 | import satellite.CubeSat; | ||
8 | import satellite.SatellitePackage; | ||
9 | |||
10 | /** | ||
11 | * <!-- begin-user-doc --> | ||
12 | * An implementation of the model object '<em><b>Cube Sat</b></em>'. | ||
13 | * <!-- end-user-doc --> | ||
14 | * | ||
15 | * @generated | ||
16 | */ | ||
17 | public abstract class CubeSatImpl extends SpacecraftImpl implements CubeSat { | ||
18 | /** | ||
19 | * <!-- begin-user-doc --> | ||
20 | * <!-- end-user-doc --> | ||
21 | * @generated | ||
22 | */ | ||
23 | protected CubeSatImpl() { | ||
24 | super(); | ||
25 | } | ||
26 | |||
27 | /** | ||
28 | * <!-- begin-user-doc --> | ||
29 | * <!-- end-user-doc --> | ||
30 | * @generated | ||
31 | */ | ||
32 | @Override | ||
33 | protected EClass eStaticClass() { | ||
34 | return SatellitePackage.Literals.CUBE_SAT; | ||
35 | } | ||
36 | |||
37 | } //CubeSatImpl | ||
diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/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/SatelliteFactoryImpl.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/SatelliteFactoryImpl.java index e899dc79..135527c6 100644 --- 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 | |||
@@ -3,7 +3,6 @@ | |||
3 | package satellite.impl; | 3 | package satellite.impl; |
4 | 4 | ||
5 | import org.eclipse.emf.ecore.EClass; | 5 | import org.eclipse.emf.ecore.EClass; |
6 | import org.eclipse.emf.ecore.EDataType; | ||
7 | import org.eclipse.emf.ecore.EObject; | 6 | import org.eclipse.emf.ecore.EObject; |
8 | import org.eclipse.emf.ecore.EPackage; | 7 | import org.eclipse.emf.ecore.EPackage; |
9 | 8 | ||
@@ -61,8 +60,6 @@ public class SatelliteFactoryImpl extends EFactoryImpl implements SatelliteFacto | |||
61 | return createInterferometryMission(); | 60 | return createInterferometryMission(); |
62 | case SatellitePackage.GROUND_STATION_NETWORK: | 61 | case SatellitePackage.GROUND_STATION_NETWORK: |
63 | return createGroundStationNetwork(); | 62 | return createGroundStationNetwork(); |
64 | case SatellitePackage.COMM_SUBSYSTEM: | ||
65 | return createCommSubsystem(); | ||
66 | case SatellitePackage.DIRECTED_COMMUNICATION_LINK: | 63 | case SatellitePackage.DIRECTED_COMMUNICATION_LINK: |
67 | return createDirectedCommunicationLink(); | 64 | return createDirectedCommunicationLink(); |
68 | case SatellitePackage.INTERFEROMETRY_PAYLOAD: | 65 | case SatellitePackage.INTERFEROMETRY_PAYLOAD: |
@@ -73,6 +70,12 @@ public class SatelliteFactoryImpl extends EFactoryImpl implements SatelliteFacto | |||
73 | return createCubeSat6U(); | 70 | return createCubeSat6U(); |
74 | case SatellitePackage.SMALL_SAT: | 71 | case SatellitePackage.SMALL_SAT: |
75 | return createSmallSat(); | 72 | return createSmallSat(); |
73 | case SatellitePackage.UHF_COMM_SUBSYSTEM: | ||
74 | return createUHFCommSubsystem(); | ||
75 | case SatellitePackage.XCOMM_SUBSYSTEM: | ||
76 | return createXCommSubsystem(); | ||
77 | case SatellitePackage.KA_COMM_SUBSYSTEM: | ||
78 | return createKaCommSubsystem(); | ||
76 | default: | 79 | default: |
77 | throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); | 80 | throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); |
78 | } | 81 | } |
@@ -84,44 +87,6 @@ public class SatelliteFactoryImpl extends EFactoryImpl implements SatelliteFacto | |||
84 | * @generated | 87 | * @generated |
85 | */ | 88 | */ |
86 | @Override | 89 | @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() { | 90 | public InterferometryMission createInterferometryMission() { |
126 | InterferometryMissionImpl interferometryMission = new InterferometryMissionImpl(); | 91 | InterferometryMissionImpl interferometryMission = new InterferometryMissionImpl(); |
127 | return interferometryMission; | 92 | return interferometryMission; |
@@ -144,17 +109,6 @@ public class SatelliteFactoryImpl extends EFactoryImpl implements SatelliteFacto | |||
144 | * @generated | 109 | * @generated |
145 | */ | 110 | */ |
146 | @Override | 111 | @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() { | 112 | public DirectedCommunicationLink createDirectedCommunicationLink() { |
159 | DirectedCommunicationLinkImpl directedCommunicationLink = new DirectedCommunicationLinkImpl(); | 113 | DirectedCommunicationLinkImpl directedCommunicationLink = new DirectedCommunicationLinkImpl(); |
160 | return directedCommunicationLink; | 114 | return directedCommunicationLink; |
@@ -209,43 +163,10 @@ public class SatelliteFactoryImpl extends EFactoryImpl implements SatelliteFacto | |||
209 | * <!-- end-user-doc --> | 163 | * <!-- end-user-doc --> |
210 | * @generated | 164 | * @generated |
211 | */ | 165 | */ |
212 | public TransceiverBand createTransceiverBandFromString(EDataType eDataType, String initialValue) { | 166 | @Override |
213 | TransceiverBand result = TransceiverBand.get(initialValue); | 167 | public UHFCommSubsystem createUHFCommSubsystem() { |
214 | if (result == null) | 168 | UHFCommSubsystemImpl uhfCommSubsystem = new UHFCommSubsystemImpl(); |
215 | throw new IllegalArgumentException( | 169 | return uhfCommSubsystem; |
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 | } | 170 | } |
250 | 171 | ||
251 | /** | 172 | /** |
@@ -253,12 +174,10 @@ public class SatelliteFactoryImpl extends EFactoryImpl implements SatelliteFacto | |||
253 | * <!-- end-user-doc --> | 174 | * <!-- end-user-doc --> |
254 | * @generated | 175 | * @generated |
255 | */ | 176 | */ |
256 | public SpacecraftKind createSpacecraftKindFromString(EDataType eDataType, String initialValue) { | 177 | @Override |
257 | SpacecraftKind result = SpacecraftKind.get(initialValue); | 178 | public XCommSubsystem createXCommSubsystem() { |
258 | if (result == null) | 179 | XCommSubsystemImpl xCommSubsystem = new XCommSubsystemImpl(); |
259 | throw new IllegalArgumentException( | 180 | return xCommSubsystem; |
260 | "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); | ||
261 | return result; | ||
262 | } | 181 | } |
263 | 182 | ||
264 | /** | 183 | /** |
@@ -266,8 +185,10 @@ public class SatelliteFactoryImpl extends EFactoryImpl implements SatelliteFacto | |||
266 | * <!-- end-user-doc --> | 185 | * <!-- end-user-doc --> |
267 | * @generated | 186 | * @generated |
268 | */ | 187 | */ |
269 | public String convertSpacecraftKindToString(EDataType eDataType, Object instanceValue) { | 188 | @Override |
270 | return instanceValue == null ? null : instanceValue.toString(); | 189 | public KaCommSubsystem createKaCommSubsystem() { |
190 | KaCommSubsystemImpl kaCommSubsystem = new KaCommSubsystemImpl(); | ||
191 | return kaCommSubsystem; | ||
271 | } | 192 | } |
272 | 193 | ||
273 | /** | 194 | /** |
diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/SatellitePackageImpl.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/SatellitePackageImpl.java index 2347fe07..daec68a9 100644 --- a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/SatellitePackageImpl.java +++ b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/SatellitePackageImpl.java | |||
@@ -4,29 +4,28 @@ package satellite.impl; | |||
4 | 4 | ||
5 | import org.eclipse.emf.ecore.EAttribute; | 5 | import org.eclipse.emf.ecore.EAttribute; |
6 | import org.eclipse.emf.ecore.EClass; | 6 | import org.eclipse.emf.ecore.EClass; |
7 | import org.eclipse.emf.ecore.EEnum; | ||
8 | import org.eclipse.emf.ecore.EPackage; | 7 | import org.eclipse.emf.ecore.EPackage; |
9 | import org.eclipse.emf.ecore.EReference; | 8 | import org.eclipse.emf.ecore.EReference; |
10 | 9 | ||
11 | import org.eclipse.emf.ecore.impl.EPackageImpl; | 10 | import org.eclipse.emf.ecore.impl.EPackageImpl; |
12 | |||
13 | import satellite.AntennaGain; | ||
14 | import satellite.CommSubsystem; | 11 | import satellite.CommSubsystem; |
15 | import satellite.CommunicatingElement; | 12 | import satellite.CommunicatingElement; |
16 | import satellite.ConstellationMission; | 13 | import satellite.ConstellationMission; |
14 | import satellite.CubeSat; | ||
17 | import satellite.CubeSat3U; | 15 | import satellite.CubeSat3U; |
18 | import satellite.CubeSat6U; | 16 | import satellite.CubeSat6U; |
19 | import satellite.DirectedCommunicationLink; | 17 | import satellite.DirectedCommunicationLink; |
20 | import satellite.GroundStationNetwork; | 18 | import satellite.GroundStationNetwork; |
21 | import satellite.InterferometryMission; | 19 | import satellite.InterferometryMission; |
22 | import satellite.InterferometryPayload; | 20 | import satellite.InterferometryPayload; |
21 | import satellite.KaCommSubsystem; | ||
23 | import satellite.Payload; | 22 | import satellite.Payload; |
24 | import satellite.SatelliteFactory; | 23 | import satellite.SatelliteFactory; |
25 | import satellite.SatellitePackage; | 24 | import satellite.SatellitePackage; |
26 | import satellite.SmallSat; | 25 | import satellite.SmallSat; |
27 | import satellite.Spacecraft; | 26 | import satellite.Spacecraft; |
28 | import satellite.SpacecraftKind; | 27 | import satellite.UHFCommSubsystem; |
29 | import satellite.TransceiverBand; | 28 | import satellite.XCommSubsystem; |
30 | 29 | ||
31 | /** | 30 | /** |
32 | * <!-- begin-user-doc --> | 31 | * <!-- begin-user-doc --> |
@@ -124,21 +123,28 @@ public class SatellitePackageImpl extends EPackageImpl implements SatellitePacka | |||
124 | * <!-- end-user-doc --> | 123 | * <!-- end-user-doc --> |
125 | * @generated | 124 | * @generated |
126 | */ | 125 | */ |
127 | private EEnum transceiverBandEEnum = null; | 126 | private EClass cubeSatEClass = null; |
127 | |||
128 | /** | ||
129 | * <!-- begin-user-doc --> | ||
130 | * <!-- end-user-doc --> | ||
131 | * @generated | ||
132 | */ | ||
133 | private EClass uhfCommSubsystemEClass = null; | ||
128 | 134 | ||
129 | /** | 135 | /** |
130 | * <!-- begin-user-doc --> | 136 | * <!-- begin-user-doc --> |
131 | * <!-- end-user-doc --> | 137 | * <!-- end-user-doc --> |
132 | * @generated | 138 | * @generated |
133 | */ | 139 | */ |
134 | private EEnum antennaGainEEnum = null; | 140 | private EClass xCommSubsystemEClass = null; |
135 | 141 | ||
136 | /** | 142 | /** |
137 | * <!-- begin-user-doc --> | 143 | * <!-- begin-user-doc --> |
138 | * <!-- end-user-doc --> | 144 | * <!-- end-user-doc --> |
139 | * @generated | 145 | * @generated |
140 | */ | 146 | */ |
141 | private EEnum spacecraftKindEEnum = null; | 147 | private EClass kaCommSubsystemEClass = null; |
142 | 148 | ||
143 | /** | 149 | /** |
144 | * Creates an instance of the model <b>Package</b>, registered with | 150 | * Creates an instance of the model <b>Package</b>, registered with |
@@ -320,16 +326,6 @@ public class SatellitePackageImpl extends EPackageImpl implements SatellitePacka | |||
320 | * @generated | 326 | * @generated |
321 | */ | 327 | */ |
322 | @Override | 328 | @Override |
323 | public EAttribute getSpacecraft_Kind() { | ||
324 | return (EAttribute) spacecraftEClass.getEStructuralFeatures().get(1); | ||
325 | } | ||
326 | |||
327 | /** | ||
328 | * <!-- begin-user-doc --> | ||
329 | * <!-- end-user-doc --> | ||
330 | * @generated | ||
331 | */ | ||
332 | @Override | ||
333 | public EClass getCommSubsystem() { | 329 | public EClass getCommSubsystem() { |
334 | return commSubsystemEClass; | 330 | return commSubsystemEClass; |
335 | } | 331 | } |
@@ -340,26 +336,6 @@ public class SatellitePackageImpl extends EPackageImpl implements SatellitePacka | |||
340 | * @generated | 336 | * @generated |
341 | */ | 337 | */ |
342 | @Override | 338 | @Override |
343 | public EAttribute getCommSubsystem_Band() { | ||
344 | return (EAttribute) commSubsystemEClass.getEStructuralFeatures().get(0); | ||
345 | } | ||
346 | |||
347 | /** | ||
348 | * <!-- begin-user-doc --> | ||
349 | * <!-- end-user-doc --> | ||
350 | * @generated | ||
351 | */ | ||
352 | @Override | ||
353 | public EAttribute getCommSubsystem_Gain() { | ||
354 | return (EAttribute) commSubsystemEClass.getEStructuralFeatures().get(1); | ||
355 | } | ||
356 | |||
357 | /** | ||
358 | * <!-- begin-user-doc --> | ||
359 | * <!-- end-user-doc --> | ||
360 | * @generated | ||
361 | */ | ||
362 | @Override | ||
363 | public EClass getDirectedCommunicationLink() { | 339 | public EClass getDirectedCommunicationLink() { |
364 | return directedCommunicationLinkEClass; | 340 | return directedCommunicationLinkEClass; |
365 | } | 341 | } |
@@ -440,8 +416,8 @@ public class SatellitePackageImpl extends EPackageImpl implements SatellitePacka | |||
440 | * @generated | 416 | * @generated |
441 | */ | 417 | */ |
442 | @Override | 418 | @Override |
443 | public EEnum getTransceiverBand() { | 419 | public EClass getCubeSat() { |
444 | return transceiverBandEEnum; | 420 | return cubeSatEClass; |
445 | } | 421 | } |
446 | 422 | ||
447 | /** | 423 | /** |
@@ -450,8 +426,8 @@ public class SatellitePackageImpl extends EPackageImpl implements SatellitePacka | |||
450 | * @generated | 426 | * @generated |
451 | */ | 427 | */ |
452 | @Override | 428 | @Override |
453 | public EEnum getAntennaGain() { | 429 | public EClass getUHFCommSubsystem() { |
454 | return antennaGainEEnum; | 430 | return uhfCommSubsystemEClass; |
455 | } | 431 | } |
456 | 432 | ||
457 | /** | 433 | /** |
@@ -460,8 +436,18 @@ public class SatellitePackageImpl extends EPackageImpl implements SatellitePacka | |||
460 | * @generated | 436 | * @generated |
461 | */ | 437 | */ |
462 | @Override | 438 | @Override |
463 | public EEnum getSpacecraftKind() { | 439 | public EClass getXCommSubsystem() { |
464 | return spacecraftKindEEnum; | 440 | return xCommSubsystemEClass; |
441 | } | ||
442 | |||
443 | /** | ||
444 | * <!-- begin-user-doc --> | ||
445 | * <!-- end-user-doc --> | ||
446 | * @generated | ||
447 | */ | ||
448 | @Override | ||
449 | public EClass getKaCommSubsystem() { | ||
450 | return kaCommSubsystemEClass; | ||
465 | } | 451 | } |
466 | 452 | ||
467 | /** | 453 | /** |
@@ -509,11 +495,8 @@ public class SatellitePackageImpl extends EPackageImpl implements SatellitePacka | |||
509 | 495 | ||
510 | spacecraftEClass = createEClass(SPACECRAFT); | 496 | spacecraftEClass = createEClass(SPACECRAFT); |
511 | createEReference(spacecraftEClass, SPACECRAFT__PAYLOAD); | 497 | createEReference(spacecraftEClass, SPACECRAFT__PAYLOAD); |
512 | createEAttribute(spacecraftEClass, SPACECRAFT__KIND); | ||
513 | 498 | ||
514 | commSubsystemEClass = createEClass(COMM_SUBSYSTEM); | 499 | commSubsystemEClass = createEClass(COMM_SUBSYSTEM); |
515 | createEAttribute(commSubsystemEClass, COMM_SUBSYSTEM__BAND); | ||
516 | createEAttribute(commSubsystemEClass, COMM_SUBSYSTEM__GAIN); | ||
517 | 500 | ||
518 | directedCommunicationLinkEClass = createEClass(DIRECTED_COMMUNICATION_LINK); | 501 | directedCommunicationLinkEClass = createEClass(DIRECTED_COMMUNICATION_LINK); |
519 | createEReference(directedCommunicationLinkEClass, DIRECTED_COMMUNICATION_LINK__SOURCE); | 502 | createEReference(directedCommunicationLinkEClass, DIRECTED_COMMUNICATION_LINK__SOURCE); |
@@ -529,10 +512,13 @@ public class SatellitePackageImpl extends EPackageImpl implements SatellitePacka | |||
529 | 512 | ||
530 | smallSatEClass = createEClass(SMALL_SAT); | 513 | smallSatEClass = createEClass(SMALL_SAT); |
531 | 514 | ||
532 | // Create enums | 515 | cubeSatEClass = createEClass(CUBE_SAT); |
533 | transceiverBandEEnum = createEEnum(TRANSCEIVER_BAND); | 516 | |
534 | antennaGainEEnum = createEEnum(ANTENNA_GAIN); | 517 | uhfCommSubsystemEClass = createEClass(UHF_COMM_SUBSYSTEM); |
535 | spacecraftKindEEnum = createEEnum(SPACECRAFT_KIND); | 518 | |
519 | xCommSubsystemEClass = createEClass(XCOMM_SUBSYSTEM); | ||
520 | |||
521 | kaCommSubsystemEClass = createEClass(KA_COMM_SUBSYSTEM); | ||
536 | } | 522 | } |
537 | 523 | ||
538 | /** | 524 | /** |
@@ -568,9 +554,13 @@ public class SatellitePackageImpl extends EPackageImpl implements SatellitePacka | |||
568 | groundStationNetworkEClass.getESuperTypes().add(this.getCommunicatingElement()); | 554 | groundStationNetworkEClass.getESuperTypes().add(this.getCommunicatingElement()); |
569 | spacecraftEClass.getESuperTypes().add(this.getCommunicatingElement()); | 555 | spacecraftEClass.getESuperTypes().add(this.getCommunicatingElement()); |
570 | interferometryPayloadEClass.getESuperTypes().add(this.getPayload()); | 556 | interferometryPayloadEClass.getESuperTypes().add(this.getPayload()); |
571 | cubeSat3UEClass.getESuperTypes().add(this.getSpacecraft()); | 557 | cubeSat3UEClass.getESuperTypes().add(this.getCubeSat()); |
572 | cubeSat6UEClass.getESuperTypes().add(this.getSpacecraft()); | 558 | cubeSat6UEClass.getESuperTypes().add(this.getCubeSat()); |
573 | smallSatEClass.getESuperTypes().add(this.getSpacecraft()); | 559 | smallSatEClass.getESuperTypes().add(this.getSpacecraft()); |
560 | cubeSatEClass.getESuperTypes().add(this.getSpacecraft()); | ||
561 | uhfCommSubsystemEClass.getESuperTypes().add(this.getCommSubsystem()); | ||
562 | xCommSubsystemEClass.getESuperTypes().add(this.getCommSubsystem()); | ||
563 | kaCommSubsystemEClass.getESuperTypes().add(this.getCommSubsystem()); | ||
574 | 564 | ||
575 | // Initialize classes, features, and operations; add parameters | 565 | // Initialize classes, features, and operations; add parameters |
576 | initEClass(constellationMissionEClass, ConstellationMission.class, "ConstellationMission", IS_ABSTRACT, | 566 | initEClass(constellationMissionEClass, ConstellationMission.class, "ConstellationMission", IS_ABSTRACT, |
@@ -605,15 +595,9 @@ public class SatellitePackageImpl extends EPackageImpl implements SatellitePacka | |||
605 | initEReference(getSpacecraft_Payload(), this.getPayload(), null, "payload", null, 0, 1, Spacecraft.class, | 595 | initEReference(getSpacecraft_Payload(), this.getPayload(), null, "payload", null, 0, 1, Spacecraft.class, |
606 | !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, | 596 | !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, |
607 | IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | 597 | IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
608 | initEAttribute(getSpacecraft_Kind(), this.getSpacecraftKind(), "kind", null, 1, 1, Spacecraft.class, | ||
609 | IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, IS_DERIVED, IS_ORDERED); | ||
610 | 598 | ||
611 | initEClass(commSubsystemEClass, CommSubsystem.class, "CommSubsystem", !IS_ABSTRACT, !IS_INTERFACE, | 599 | initEClass(commSubsystemEClass, CommSubsystem.class, "CommSubsystem", IS_ABSTRACT, !IS_INTERFACE, |
612 | IS_GENERATED_INSTANCE_CLASS); | 600 | IS_GENERATED_INSTANCE_CLASS); |
613 | initEAttribute(getCommSubsystem_Band(), this.getTransceiverBand(), "band", null, 1, 1, CommSubsystem.class, | ||
614 | !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
615 | initEAttribute(getCommSubsystem_Gain(), this.getAntennaGain(), "gain", null, 1, 1, CommSubsystem.class, | ||
616 | !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
617 | 601 | ||
618 | initEClass(directedCommunicationLinkEClass, DirectedCommunicationLink.class, "DirectedCommunicationLink", | 602 | initEClass(directedCommunicationLinkEClass, DirectedCommunicationLink.class, "DirectedCommunicationLink", |
619 | !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | 603 | !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
@@ -638,53 +622,19 @@ public class SatellitePackageImpl extends EPackageImpl implements SatellitePacka | |||
638 | initEClass(smallSatEClass, SmallSat.class, "SmallSat", !IS_ABSTRACT, !IS_INTERFACE, | 622 | initEClass(smallSatEClass, SmallSat.class, "SmallSat", !IS_ABSTRACT, !IS_INTERFACE, |
639 | IS_GENERATED_INSTANCE_CLASS); | 623 | IS_GENERATED_INSTANCE_CLASS); |
640 | 624 | ||
641 | // Initialize enums and add enum literals | 625 | initEClass(cubeSatEClass, CubeSat.class, "CubeSat", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
642 | initEEnum(transceiverBandEEnum, TransceiverBand.class, "TransceiverBand"); | ||
643 | addEEnumLiteral(transceiverBandEEnum, TransceiverBand.UHF); | ||
644 | addEEnumLiteral(transceiverBandEEnum, TransceiverBand.X); | ||
645 | addEEnumLiteral(transceiverBandEEnum, TransceiverBand.KA); | ||
646 | 626 | ||
647 | initEEnum(antennaGainEEnum, AntennaGain.class, "AntennaGain"); | 627 | initEClass(uhfCommSubsystemEClass, UHFCommSubsystem.class, "UHFCommSubsystem", !IS_ABSTRACT, !IS_INTERFACE, |
648 | addEEnumLiteral(antennaGainEEnum, AntennaGain.LOW); | 628 | IS_GENERATED_INSTANCE_CLASS); |
649 | addEEnumLiteral(antennaGainEEnum, AntennaGain.MEDIUM); | ||
650 | addEEnumLiteral(antennaGainEEnum, AntennaGain.HIGH); | ||
651 | 629 | ||
652 | initEEnum(spacecraftKindEEnum, SpacecraftKind.class, "SpacecraftKind"); | 630 | initEClass(xCommSubsystemEClass, XCommSubsystem.class, "XCommSubsystem", !IS_ABSTRACT, !IS_INTERFACE, |
653 | addEEnumLiteral(spacecraftKindEEnum, SpacecraftKind.CUBE_SAT3_U); | 631 | IS_GENERATED_INSTANCE_CLASS); |
654 | addEEnumLiteral(spacecraftKindEEnum, SpacecraftKind.CUBE_SAT6_U); | 632 | |
655 | addEEnumLiteral(spacecraftKindEEnum, SpacecraftKind.SMALL_SAT); | 633 | initEClass(kaCommSubsystemEClass, KaCommSubsystem.class, "KaCommSubsystem", !IS_ABSTRACT, !IS_INTERFACE, |
634 | IS_GENERATED_INSTANCE_CLASS); | ||
656 | 635 | ||
657 | // Create resource | 636 | // Create resource |
658 | createResource(eNS_URI); | 637 | createResource(eNS_URI); |
659 | |||
660 | // Create annotations | ||
661 | // http://www.eclipse.org/emf/2002/Ecore | ||
662 | createEcoreAnnotations(); | ||
663 | // org.eclipse.viatra.query.querybasedfeature | ||
664 | createOrgAnnotations(); | ||
665 | } | ||
666 | |||
667 | /** | ||
668 | * Initializes the annotations for <b>http://www.eclipse.org/emf/2002/Ecore</b>. | ||
669 | * <!-- begin-user-doc --> | ||
670 | * <!-- end-user-doc --> | ||
671 | * @generated | ||
672 | */ | ||
673 | protected void createEcoreAnnotations() { | ||
674 | String source = "http://www.eclipse.org/emf/2002/Ecore"; | ||
675 | addAnnotation(this, source, new String[] { "settingDelegates", "org.eclipse.viatra.query.querybasedfeature" }); | ||
676 | } | ||
677 | |||
678 | /** | ||
679 | * Initializes the annotations for <b>org.eclipse.viatra.query.querybasedfeature</b>. | ||
680 | * <!-- begin-user-doc --> | ||
681 | * <!-- end-user-doc --> | ||
682 | * @generated | ||
683 | */ | ||
684 | protected void createOrgAnnotations() { | ||
685 | String source = "org.eclipse.viatra.query.querybasedfeature"; | ||
686 | addAnnotation(getSpacecraft_Kind(), source, | ||
687 | new String[] { "patternFQN", "hu.bme.mit.inf.dslreasoner.domains.satellite.queries.spacecraftOfKind" }); | ||
688 | } | 638 | } |
689 | 639 | ||
690 | } //SatellitePackageImpl | 640 | } //SatellitePackageImpl |
diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/SpacecraftImpl.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/SpacecraftImpl.java index 73609fbd..58f5d069 100644 --- a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/SpacecraftImpl.java +++ b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/SpacecraftImpl.java | |||
@@ -6,7 +6,6 @@ import org.eclipse.emf.common.notify.Notification; | |||
6 | import org.eclipse.emf.common.notify.NotificationChain; | 6 | import org.eclipse.emf.common.notify.NotificationChain; |
7 | 7 | ||
8 | import org.eclipse.emf.ecore.EClass; | 8 | import org.eclipse.emf.ecore.EClass; |
9 | import org.eclipse.emf.ecore.EStructuralFeature; | ||
10 | import org.eclipse.emf.ecore.InternalEObject; | 9 | import org.eclipse.emf.ecore.InternalEObject; |
11 | 10 | ||
12 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | 11 | import org.eclipse.emf.ecore.impl.ENotificationImpl; |
@@ -14,7 +13,6 @@ import org.eclipse.emf.ecore.impl.ENotificationImpl; | |||
14 | import satellite.Payload; | 13 | import satellite.Payload; |
15 | import satellite.SatellitePackage; | 14 | import satellite.SatellitePackage; |
16 | import satellite.Spacecraft; | 15 | import satellite.Spacecraft; |
17 | import satellite.SpacecraftKind; | ||
18 | 16 | ||
19 | /** | 17 | /** |
20 | * <!-- begin-user-doc --> | 18 | * <!-- begin-user-doc --> |
@@ -25,7 +23,6 @@ import satellite.SpacecraftKind; | |||
25 | * </p> | 23 | * </p> |
26 | * <ul> | 24 | * <ul> |
27 | * <li>{@link satellite.impl.SpacecraftImpl#getPayload <em>Payload</em>}</li> | 25 | * <li>{@link satellite.impl.SpacecraftImpl#getPayload <em>Payload</em>}</li> |
28 | * <li>{@link satellite.impl.SpacecraftImpl#getKind <em>Kind</em>}</li> | ||
29 | * </ul> | 26 | * </ul> |
30 | * | 27 | * |
31 | * @generated | 28 | * @generated |
@@ -42,17 +39,6 @@ public abstract class SpacecraftImpl extends CommunicatingElementImpl implements | |||
42 | protected Payload payload; | 39 | protected Payload payload; |
43 | 40 | ||
44 | /** | 41 | /** |
45 | * The cached setting delegate for the '{@link #getKind() <em>Kind</em>}' attribute. | ||
46 | * <!-- begin-user-doc --> | ||
47 | * <!-- end-user-doc --> | ||
48 | * @see #getKind() | ||
49 | * @generated | ||
50 | * @ordered | ||
51 | */ | ||
52 | protected EStructuralFeature.Internal.SettingDelegate KIND__ESETTING_DELEGATE = ((EStructuralFeature.Internal) SatellitePackage.Literals.SPACECRAFT__KIND) | ||
53 | .getSettingDelegate(); | ||
54 | |||
55 | /** | ||
56 | * <!-- begin-user-doc --> | 42 | * <!-- begin-user-doc --> |
57 | * <!-- end-user-doc --> | 43 | * <!-- end-user-doc --> |
58 | * @generated | 44 | * @generated |
@@ -129,16 +115,6 @@ public abstract class SpacecraftImpl extends CommunicatingElementImpl implements | |||
129 | * @generated | 115 | * @generated |
130 | */ | 116 | */ |
131 | @Override | 117 | @Override |
132 | public SpacecraftKind getKind() { | ||
133 | return (SpacecraftKind) KIND__ESETTING_DELEGATE.dynamicGet(this, null, 0, true, false); | ||
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) { | 118 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { |
143 | switch (featureID) { | 119 | switch (featureID) { |
144 | case SatellitePackage.SPACECRAFT__PAYLOAD: | 120 | case SatellitePackage.SPACECRAFT__PAYLOAD: |
@@ -157,8 +133,6 @@ public abstract class SpacecraftImpl extends CommunicatingElementImpl implements | |||
157 | switch (featureID) { | 133 | switch (featureID) { |
158 | case SatellitePackage.SPACECRAFT__PAYLOAD: | 134 | case SatellitePackage.SPACECRAFT__PAYLOAD: |
159 | return getPayload(); | 135 | return getPayload(); |
160 | case SatellitePackage.SPACECRAFT__KIND: | ||
161 | return getKind(); | ||
162 | } | 136 | } |
163 | return super.eGet(featureID, resolve, coreType); | 137 | return super.eGet(featureID, resolve, coreType); |
164 | } | 138 | } |
@@ -203,8 +177,6 @@ public abstract class SpacecraftImpl extends CommunicatingElementImpl implements | |||
203 | switch (featureID) { | 177 | switch (featureID) { |
204 | case SatellitePackage.SPACECRAFT__PAYLOAD: | 178 | case SatellitePackage.SPACECRAFT__PAYLOAD: |
205 | return payload != null; | 179 | return payload != null; |
206 | case SatellitePackage.SPACECRAFT__KIND: | ||
207 | return KIND__ESETTING_DELEGATE.dynamicIsSet(this, null, 0); | ||
208 | } | 180 | } |
209 | return super.eIsSet(featureID); | 181 | return super.eIsSet(featureID); |
210 | } | 182 | } |
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 | ||