/**
*/
package hu.bme.mit.inf.dslreasoner.domains.satellite.util;
import hu.bme.mit.inf.dslreasoner.domains.satellite.*;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.util.Switch;
/**
*
* The Switch for the model's inheritance hierarchy.
* It supports the call {@link #doSwitch(EObject) doSwitch(object)}
* to invoke the caseXXX
method for each class of the model,
* starting with the actual class of the object
* and proceeding up the inheritance hierarchy
* until a non-null result is returned,
* which is the result of the switch.
*
* @see hu.bme.mit.inf.dslreasoner.domains.satellite.SatellitePackage
* @generated
*/
public class SatelliteSwitch extends Switch {
/**
* The cached model package
*
*
* @generated
*/
protected static SatellitePackage modelPackage;
/**
* Creates an instance of the switch.
*
*
* @generated
*/
public SatelliteSwitch() {
if (modelPackage == null) {
modelPackage = SatellitePackage.eINSTANCE;
}
}
/**
* Checks whether this is a switch for the given package.
*
*
* @param ePackage the package in question.
* @return whether this is a switch for the given package.
* @generated
*/
@Override
protected boolean isSwitchFor(EPackage ePackage) {
return ePackage == modelPackage;
}
/**
* Calls caseXXX
for each class of the model until one returns a non null result; it yields that result.
*
*
* @return the first non-null result returned by a caseXXX
call.
* @generated
*/
@Override
protected T doSwitch(int classifierID, EObject theEObject) {
switch (classifierID) {
case SatellitePackage.CONSTELLATION_MISSION: {
ConstellationMission constellationMission = (ConstellationMission) theEObject;
T result = caseConstellationMission(constellationMission);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case SatellitePackage.INTERFEROMETRY_MISSION: {
InterferometryMission interferometryMission = (InterferometryMission) theEObject;
T result = caseInterferometryMission(interferometryMission);
if (result == null)
result = caseConstellationMission(interferometryMission);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case SatellitePackage.COMMUNICATING_ELEMENT: {
CommunicatingElement communicatingElement = (CommunicatingElement) theEObject;
T result = caseCommunicatingElement(communicatingElement);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case SatellitePackage.GROUND_STATION_NETWORK: {
GroundStationNetwork groundStationNetwork = (GroundStationNetwork) theEObject;
T result = caseGroundStationNetwork(groundStationNetwork);
if (result == null)
result = caseCommunicatingElement(groundStationNetwork);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case SatellitePackage.SPACECRAFT: {
Spacecraft spacecraft = (Spacecraft) theEObject;
T result = caseSpacecraft(spacecraft);
if (result == null)
result = caseCommunicatingElement(spacecraft);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case SatellitePackage.COMM_SUBSYSTEM: {
CommSubsystem commSubsystem = (CommSubsystem) theEObject;
T result = caseCommSubsystem(commSubsystem);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case SatellitePackage.DIRECTED_COMMUNICATION_LINK: {
DirectedCommunicationLink directedCommunicationLink = (DirectedCommunicationLink) theEObject;
T result = caseDirectedCommunicationLink(directedCommunicationLink);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case SatellitePackage.PAYLOAD: {
Payload payload = (Payload) theEObject;
T result = casePayload(payload);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case SatellitePackage.INTERFEROMETRY_PAYLOAD: {
InterferometryPayload interferometryPayload = (InterferometryPayload) theEObject;
T result = caseInterferometryPayload(interferometryPayload);
if (result == null)
result = casePayload(interferometryPayload);
if (result == null)
result = defaultCase(theEObject);
return result;
}
default:
return defaultCase(theEObject);
}
}
/**
* Returns the result of interpreting the object as an instance of 'Constellation Mission'.
*
* This implementation returns null;
* returning a non-null result will terminate the switch.
*
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of 'Constellation Mission'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseConstellationMission(ConstellationMission object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of 'Interferometry Mission'.
*
* This implementation returns null;
* returning a non-null result will terminate the switch.
*
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of 'Interferometry Mission'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseInterferometryMission(InterferometryMission object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of 'Communicating Element'.
*
* This implementation returns null;
* returning a non-null result will terminate the switch.
*
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of 'Communicating Element'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseCommunicatingElement(CommunicatingElement object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of 'Ground Station Network'.
*
* This implementation returns null;
* returning a non-null result will terminate the switch.
*
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of 'Ground Station Network'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseGroundStationNetwork(GroundStationNetwork object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of 'Spacecraft'.
*
* This implementation returns null;
* returning a non-null result will terminate the switch.
*
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of 'Spacecraft'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseSpacecraft(Spacecraft object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of 'Comm Subsystem'.
*
* This implementation returns null;
* returning a non-null result will terminate the switch.
*
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of 'Comm Subsystem'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseCommSubsystem(CommSubsystem object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of 'Directed Communication Link'.
*
* This implementation returns null;
* returning a non-null result will terminate the switch.
*
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of 'Directed Communication Link'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseDirectedCommunicationLink(DirectedCommunicationLink object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of 'Payload'.
*
* This implementation returns null;
* returning a non-null result will terminate the switch.
*
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of 'Payload'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T casePayload(Payload object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of 'Interferometry Payload'.
*
* This implementation returns null;
* returning a non-null result will terminate the switch.
*
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of 'Interferometry Payload'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseInterferometryPayload(InterferometryPayload object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of 'EObject'.
*
* This implementation returns null;
* returning a non-null result will terminate the switch, but this is the last case anyway.
*
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of 'EObject'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject)
* @generated
*/
@Override
public T defaultCase(EObject object) {
return null;
}
} //SatelliteSwitch