diff options
Diffstat (limited to 'Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/satellite/impl/SatelliteFactoryImpl.java')
-rw-r--r-- | Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/satellite/impl/SatelliteFactoryImpl.java | 193 |
1 files changed, 193 insertions, 0 deletions
diff --git a/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/satellite/impl/SatelliteFactoryImpl.java b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/satellite/impl/SatelliteFactoryImpl.java new file mode 100644 index 00000000..8d9faa3c --- /dev/null +++ b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/satellite/impl/SatelliteFactoryImpl.java | |||
@@ -0,0 +1,193 @@ | |||
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.getEFactory(SatellitePackage.eNS_URI); | ||
31 | if (theSatelliteFactory != null) { | ||
32 | return theSatelliteFactory; | ||
33 | } | ||
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: return createInterferometryMission(); | ||
60 | case SatellitePackage.GROUND_STATION_NETWORK: return createGroundStationNetwork(); | ||
61 | case SatellitePackage.INTERFEROMETRY_PAYLOAD: return createInterferometryPayload(); | ||
62 | case SatellitePackage.CUBE_SAT3_U: return createCubeSat3U(); | ||
63 | case SatellitePackage.CUBE_SAT6_U: return createCubeSat6U(); | ||
64 | case SatellitePackage.SMALL_SAT: return createSmallSat(); | ||
65 | case SatellitePackage.UHF_COMM_SUBSYSTEM: return createUHFCommSubsystem(); | ||
66 | case SatellitePackage.XCOMM_SUBSYSTEM: return createXCommSubsystem(); | ||
67 | case SatellitePackage.KA_COMM_SUBSYSTEM: return createKaCommSubsystem(); | ||
68 | default: | ||
69 | throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); | ||
70 | } | ||
71 | } | ||
72 | |||
73 | /** | ||
74 | * <!-- begin-user-doc --> | ||
75 | * <!-- end-user-doc --> | ||
76 | * @generated | ||
77 | */ | ||
78 | @Override | ||
79 | public InterferometryMission createInterferometryMission() { | ||
80 | InterferometryMissionImpl interferometryMission = new InterferometryMissionImpl(); | ||
81 | return interferometryMission; | ||
82 | } | ||
83 | |||
84 | /** | ||
85 | * <!-- begin-user-doc --> | ||
86 | * <!-- end-user-doc --> | ||
87 | * @generated | ||
88 | */ | ||
89 | @Override | ||
90 | public GroundStationNetwork createGroundStationNetwork() { | ||
91 | GroundStationNetworkImpl groundStationNetwork = new GroundStationNetworkImpl(); | ||
92 | return groundStationNetwork; | ||
93 | } | ||
94 | |||
95 | /** | ||
96 | * <!-- begin-user-doc --> | ||
97 | * <!-- end-user-doc --> | ||
98 | * @generated | ||
99 | */ | ||
100 | @Override | ||
101 | public InterferometryPayload createInterferometryPayload() { | ||
102 | InterferometryPayloadImpl interferometryPayload = new InterferometryPayloadImpl(); | ||
103 | return interferometryPayload; | ||
104 | } | ||
105 | |||
106 | /** | ||
107 | * <!-- begin-user-doc --> | ||
108 | * <!-- end-user-doc --> | ||
109 | * @generated | ||
110 | */ | ||
111 | @Override | ||
112 | public CubeSat3U createCubeSat3U() { | ||
113 | CubeSat3UImpl cubeSat3U = new CubeSat3UImpl(); | ||
114 | return cubeSat3U; | ||
115 | } | ||
116 | |||
117 | /** | ||
118 | * <!-- begin-user-doc --> | ||
119 | * <!-- end-user-doc --> | ||
120 | * @generated | ||
121 | */ | ||
122 | @Override | ||
123 | public CubeSat6U createCubeSat6U() { | ||
124 | CubeSat6UImpl cubeSat6U = new CubeSat6UImpl(); | ||
125 | return cubeSat6U; | ||
126 | } | ||
127 | |||
128 | /** | ||
129 | * <!-- begin-user-doc --> | ||
130 | * <!-- end-user-doc --> | ||
131 | * @generated | ||
132 | */ | ||
133 | @Override | ||
134 | public SmallSat createSmallSat() { | ||
135 | SmallSatImpl smallSat = new SmallSatImpl(); | ||
136 | return smallSat; | ||
137 | } | ||
138 | |||
139 | /** | ||
140 | * <!-- begin-user-doc --> | ||
141 | * <!-- end-user-doc --> | ||
142 | * @generated | ||
143 | */ | ||
144 | @Override | ||
145 | public UHFCommSubsystem createUHFCommSubsystem() { | ||
146 | UHFCommSubsystemImpl uhfCommSubsystem = new UHFCommSubsystemImpl(); | ||
147 | return uhfCommSubsystem; | ||
148 | } | ||
149 | |||
150 | /** | ||
151 | * <!-- begin-user-doc --> | ||
152 | * <!-- end-user-doc --> | ||
153 | * @generated | ||
154 | */ | ||
155 | @Override | ||
156 | public XCommSubsystem createXCommSubsystem() { | ||
157 | XCommSubsystemImpl xCommSubsystem = new XCommSubsystemImpl(); | ||
158 | return xCommSubsystem; | ||
159 | } | ||
160 | |||
161 | /** | ||
162 | * <!-- begin-user-doc --> | ||
163 | * <!-- end-user-doc --> | ||
164 | * @generated | ||
165 | */ | ||
166 | @Override | ||
167 | public KaCommSubsystem createKaCommSubsystem() { | ||
168 | KaCommSubsystemImpl kaCommSubsystem = new KaCommSubsystemImpl(); | ||
169 | return kaCommSubsystem; | ||
170 | } | ||
171 | |||
172 | /** | ||
173 | * <!-- begin-user-doc --> | ||
174 | * <!-- end-user-doc --> | ||
175 | * @generated | ||
176 | */ | ||
177 | @Override | ||
178 | public SatellitePackage getSatellitePackage() { | ||
179 | return (SatellitePackage)getEPackage(); | ||
180 | } | ||
181 | |||
182 | /** | ||
183 | * <!-- begin-user-doc --> | ||
184 | * <!-- end-user-doc --> | ||
185 | * @deprecated | ||
186 | * @generated | ||
187 | */ | ||
188 | @Deprecated | ||
189 | public static SatellitePackage getPackage() { | ||
190 | return SatellitePackage.eINSTANCE; | ||
191 | } | ||
192 | |||
193 | } //SatelliteFactoryImpl | ||