diff options
author | 2019-05-04 17:56:18 -0400 | |
---|---|---|
committer | 2019-05-04 17:56:18 -0400 | |
commit | b9aaa826e1e7504958b6e75f35e9dcd09086a13e (patch) | |
tree | df7b83804e74efb86fb845862c5523d04d7edeb1 /Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/impl/SatelliteFactoryImpl.java | |
parent | Merge remote-tracking branch 'origin/master' into kris (diff) | |
download | VIATRA-Generator-b9aaa826e1e7504958b6e75f35e9dcd09086a13e.tar.gz VIATRA-Generator-b9aaa826e1e7504958b6e75f35e9dcd09086a13e.tar.zst VIATRA-Generator-b9aaa826e1e7504958b6e75f35e9dcd09086a13e.zip |
Metrics for satellite case study
Diffstat (limited to 'Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/impl/SatelliteFactoryImpl.java')
-rw-r--r-- | Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/impl/SatelliteFactoryImpl.java | 65 |
1 files changed, 26 insertions, 39 deletions
diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/impl/SatelliteFactoryImpl.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/impl/SatelliteFactoryImpl.java index 5deb0c05..0cb07cfa 100644 --- a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/impl/SatelliteFactoryImpl.java +++ b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/impl/SatelliteFactoryImpl.java | |||
@@ -61,12 +61,6 @@ public class SatelliteFactoryImpl extends EFactoryImpl implements SatelliteFacto | |||
61 | return createInterferometryMission(); | 61 | return createInterferometryMission(); |
62 | case SatellitePackage.GROUND_STATION_NETWORK: | 62 | case SatellitePackage.GROUND_STATION_NETWORK: |
63 | return createGroundStationNetwork(); | 63 | return createGroundStationNetwork(); |
64 | case SatellitePackage.CUBE_SAT3_U: | ||
65 | return createCubeSat3U(); | ||
66 | case SatellitePackage.CUBE_SAT6_U: | ||
67 | return createCubeSat6U(); | ||
68 | case SatellitePackage.SMALL_SAT: | ||
69 | return createSmallSat(); | ||
70 | case SatellitePackage.COMM_SUBSYSTEM: | 64 | case SatellitePackage.COMM_SUBSYSTEM: |
71 | return createCommSubsystem(); | 65 | return createCommSubsystem(); |
72 | case SatellitePackage.DIRECTED_COMMUNICATION_LINK: | 66 | case SatellitePackage.DIRECTED_COMMUNICATION_LINK: |
@@ -90,6 +84,8 @@ public class SatelliteFactoryImpl extends EFactoryImpl implements SatelliteFacto | |||
90 | return createTransceiverBandFromString(eDataType, initialValue); | 84 | return createTransceiverBandFromString(eDataType, initialValue); |
91 | case SatellitePackage.ANTENNA_GAIN: | 85 | case SatellitePackage.ANTENNA_GAIN: |
92 | return createAntennaGainFromString(eDataType, initialValue); | 86 | return createAntennaGainFromString(eDataType, initialValue); |
87 | case SatellitePackage.SPACECRAFT_KIND: | ||
88 | return createSpacecraftKindFromString(eDataType, initialValue); | ||
93 | default: | 89 | default: |
94 | throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); | 90 | throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); |
95 | } | 91 | } |
@@ -107,6 +103,8 @@ public class SatelliteFactoryImpl extends EFactoryImpl implements SatelliteFacto | |||
107 | return convertTransceiverBandToString(eDataType, instanceValue); | 103 | return convertTransceiverBandToString(eDataType, instanceValue); |
108 | case SatellitePackage.ANTENNA_GAIN: | 104 | case SatellitePackage.ANTENNA_GAIN: |
109 | return convertAntennaGainToString(eDataType, instanceValue); | 105 | return convertAntennaGainToString(eDataType, instanceValue); |
106 | case SatellitePackage.SPACECRAFT_KIND: | ||
107 | return convertSpacecraftKindToString(eDataType, instanceValue); | ||
110 | default: | 108 | default: |
111 | throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); | 109 | throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); |
112 | } | 110 | } |
@@ -140,39 +138,6 @@ public class SatelliteFactoryImpl extends EFactoryImpl implements SatelliteFacto | |||
140 | * @generated | 138 | * @generated |
141 | */ | 139 | */ |
142 | @Override | 140 | @Override |
143 | public CubeSat3U createCubeSat3U() { | ||
144 | CubeSat3UImpl cubeSat3U = new CubeSat3UImpl(); | ||
145 | return cubeSat3U; | ||
146 | } | ||
147 | |||
148 | /** | ||
149 | * <!-- begin-user-doc --> | ||
150 | * <!-- end-user-doc --> | ||
151 | * @generated | ||
152 | */ | ||
153 | @Override | ||
154 | public CubeSat6U createCubeSat6U() { | ||
155 | CubeSat6UImpl cubeSat6U = new CubeSat6UImpl(); | ||
156 | return cubeSat6U; | ||
157 | } | ||
158 | |||
159 | /** | ||
160 | * <!-- begin-user-doc --> | ||
161 | * <!-- end-user-doc --> | ||
162 | * @generated | ||
163 | */ | ||
164 | @Override | ||
165 | public SmallSat createSmallSat() { | ||
166 | SmallSatImpl smallSat = new SmallSatImpl(); | ||
167 | return smallSat; | ||
168 | } | ||
169 | |||
170 | /** | ||
171 | * <!-- begin-user-doc --> | ||
172 | * <!-- end-user-doc --> | ||
173 | * @generated | ||
174 | */ | ||
175 | @Override | ||
176 | public CommSubsystem createCommSubsystem() { | 141 | public CommSubsystem createCommSubsystem() { |
177 | CommSubsystemImpl commSubsystem = new CommSubsystemImpl(); | 142 | CommSubsystemImpl commSubsystem = new CommSubsystemImpl(); |
178 | return commSubsystem; | 143 | return commSubsystem; |
@@ -249,6 +214,28 @@ public class SatelliteFactoryImpl extends EFactoryImpl implements SatelliteFacto | |||
249 | * <!-- end-user-doc --> | 214 | * <!-- end-user-doc --> |
250 | * @generated | 215 | * @generated |
251 | */ | 216 | */ |
217 | public SpacecraftKind createSpacecraftKindFromString(EDataType eDataType, String initialValue) { | ||
218 | SpacecraftKind result = SpacecraftKind.get(initialValue); | ||
219 | if (result == null) | ||
220 | throw new IllegalArgumentException( | ||
221 | "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); | ||
222 | return result; | ||
223 | } | ||
224 | |||
225 | /** | ||
226 | * <!-- begin-user-doc --> | ||
227 | * <!-- end-user-doc --> | ||
228 | * @generated | ||
229 | */ | ||
230 | public String convertSpacecraftKindToString(EDataType eDataType, Object instanceValue) { | ||
231 | return instanceValue == null ? null : instanceValue.toString(); | ||
232 | } | ||
233 | |||
234 | /** | ||
235 | * <!-- begin-user-doc --> | ||
236 | * <!-- end-user-doc --> | ||
237 | * @generated | ||
238 | */ | ||
252 | @Override | 239 | @Override |
253 | public SatellitePackage getSatellitePackage() { | 240 | public SatellitePackage getSatellitePackage() { |
254 | return (SatellitePackage) getEPackage(); | 241 | return (SatellitePackage) getEPackage(); |