aboutsummaryrefslogtreecommitdiffstats
path: root/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/SatelliteFactoryImpl.java
diff options
context:
space:
mode:
Diffstat (limited to 'Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/SatelliteFactoryImpl.java')
-rw-r--r--Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/SatelliteFactoryImpl.java115
1 files changed, 18 insertions, 97 deletions
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 @@
3package satellite.impl; 3package satellite.impl;
4 4
5import org.eclipse.emf.ecore.EClass; 5import org.eclipse.emf.ecore.EClass;
6import org.eclipse.emf.ecore.EDataType;
7import org.eclipse.emf.ecore.EObject; 6import org.eclipse.emf.ecore.EObject;
8import org.eclipse.emf.ecore.EPackage; 7import 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 /**