diff options
author | Kristóf Marussy <kris7topher@gmail.com> | 2019-05-07 11:53:38 -0400 |
---|---|---|
committer | Kristóf Marussy <kris7topher@gmail.com> | 2019-05-07 11:53:38 -0400 |
commit | 9b83e33c055660f6de218d1b672f67734675f1f6 (patch) | |
tree | 9bd56534fdeb2bad776780a856065739d0d525cd /Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/util/SatelliteSwitch.java | |
parent | Trying to implement spacecraft case study (diff) | |
download | VIATRA-Generator-9b83e33c055660f6de218d1b672f67734675f1f6.tar.gz VIATRA-Generator-9b83e33c055660f6de218d1b672f67734675f1f6.tar.zst VIATRA-Generator-9b83e33c055660f6de218d1b672f67734675f1f6.zip |
Try to restructure satellite case study
Diffstat (limited to 'Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/util/SatelliteSwitch.java')
-rw-r--r-- | Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/util/SatelliteSwitch.java | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/util/SatelliteSwitch.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/util/SatelliteSwitch.java index 3eb78d75..1e2fb04b 100644 --- a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/util/SatelliteSwitch.java +++ b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/util/SatelliteSwitch.java | |||
@@ -141,6 +141,8 @@ public class SatelliteSwitch<T> extends Switch<T> { | |||
141 | CubeSat3U cubeSat3U = (CubeSat3U) theEObject; | 141 | CubeSat3U cubeSat3U = (CubeSat3U) theEObject; |
142 | T result = caseCubeSat3U(cubeSat3U); | 142 | T result = caseCubeSat3U(cubeSat3U); |
143 | if (result == null) | 143 | if (result == null) |
144 | result = caseCubeSat(cubeSat3U); | ||
145 | if (result == null) | ||
144 | result = caseSpacecraft(cubeSat3U); | 146 | result = caseSpacecraft(cubeSat3U); |
145 | if (result == null) | 147 | if (result == null) |
146 | result = caseCommunicatingElement(cubeSat3U); | 148 | result = caseCommunicatingElement(cubeSat3U); |
@@ -152,6 +154,8 @@ public class SatelliteSwitch<T> extends Switch<T> { | |||
152 | CubeSat6U cubeSat6U = (CubeSat6U) theEObject; | 154 | CubeSat6U cubeSat6U = (CubeSat6U) theEObject; |
153 | T result = caseCubeSat6U(cubeSat6U); | 155 | T result = caseCubeSat6U(cubeSat6U); |
154 | if (result == null) | 156 | if (result == null) |
157 | result = caseCubeSat(cubeSat6U); | ||
158 | if (result == null) | ||
155 | result = caseSpacecraft(cubeSat6U); | 159 | result = caseSpacecraft(cubeSat6U); |
156 | if (result == null) | 160 | if (result == null) |
157 | result = caseCommunicatingElement(cubeSat6U); | 161 | result = caseCommunicatingElement(cubeSat6U); |
@@ -170,6 +174,17 @@ public class SatelliteSwitch<T> extends Switch<T> { | |||
170 | result = defaultCase(theEObject); | 174 | result = defaultCase(theEObject); |
171 | return result; | 175 | return result; |
172 | } | 176 | } |
177 | case SatellitePackage.CUBE_SAT: { | ||
178 | CubeSat cubeSat = (CubeSat) theEObject; | ||
179 | T result = caseCubeSat(cubeSat); | ||
180 | if (result == null) | ||
181 | result = caseSpacecraft(cubeSat); | ||
182 | if (result == null) | ||
183 | result = caseCommunicatingElement(cubeSat); | ||
184 | if (result == null) | ||
185 | result = defaultCase(theEObject); | ||
186 | return result; | ||
187 | } | ||
173 | default: | 188 | default: |
174 | return defaultCase(theEObject); | 189 | return defaultCase(theEObject); |
175 | } | 190 | } |
@@ -356,6 +371,21 @@ public class SatelliteSwitch<T> extends Switch<T> { | |||
356 | } | 371 | } |
357 | 372 | ||
358 | /** | 373 | /** |
374 | * Returns the result of interpreting the object as an instance of '<em>Cube Sat</em>'. | ||
375 | * <!-- begin-user-doc --> | ||
376 | * This implementation returns null; | ||
377 | * returning a non-null result will terminate the switch. | ||
378 | * <!-- end-user-doc --> | ||
379 | * @param object the target of the switch. | ||
380 | * @return the result of interpreting the object as an instance of '<em>Cube Sat</em>'. | ||
381 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
382 | * @generated | ||
383 | */ | ||
384 | public T caseCubeSat(CubeSat object) { | ||
385 | return null; | ||
386 | } | ||
387 | |||
388 | /** | ||
359 | * Returns the result of interpreting the object as an instance of '<em>EObject</em>'. | 389 | * Returns the result of interpreting the object as an instance of '<em>EObject</em>'. |
360 | * <!-- begin-user-doc --> | 390 | * <!-- begin-user-doc --> |
361 | * This implementation returns null; | 391 | * This implementation returns null; |