blob: e891157c31794b3792e0f31afbec773779e4c436 [file] [log] [blame]
/**
* Copyright (c) 2020 CEA LIST
*
* All rights reserved. This program and the accompanying materials are
* made available under the terms of the Eclipse Public License v2.0 which
* accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
*/
package org.eclipse.papyrus.aiml.profile.AIML.Convolution_layers.util;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.util.Switch;
import org.eclipse.papyrus.aiml.profile.AIML.Convolution_layers.*;
import org.eclipse.papyrus.aiml.profile.AIML.Module.Model;
/**
* <!-- begin-user-doc -->
* The <b>Switch</b> for the model's inheritance hierarchy.
* It supports the call {@link #doSwitch(EObject) doSwitch(object)}
* to invoke the <code>caseXXX</code> 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.
* <!-- end-user-doc -->
* @see org.eclipse.papyrus.aiml.profile.AIML.Convolution_layers.Convolution_layersPackage
* @generated
*/
public class Convolution_layersSwitch<T> extends Switch<T> {
/**
* The cached model package
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected static Convolution_layersPackage modelPackage;
/**
* Creates an instance of the switch.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Convolution_layersSwitch() {
if (modelPackage == null) {
modelPackage = Convolution_layersPackage.eINSTANCE;
}
}
/**
* Checks whether this is a switch for the given package.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @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 <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the first non-null result returned by a <code>caseXXX</code> call.
* @generated
*/
@Override
protected T doSwitch(int classifierID, EObject theEObject) {
switch (classifierID) {
case Convolution_layersPackage.CONVOLUTION: {
Convolution convolution = (Convolution)theEObject;
T result = caseConvolution(convolution);
if (result == null) result = caseConvolution_layers(convolution);
if (result == null) result = caseModel(convolution);
if (result == null) result = defaultCase(theEObject);
return result;
}
case Convolution_layersPackage.CONVOLUTION_LAYERS: {
Convolution_layers convolution_layers = (Convolution_layers)theEObject;
T result = caseConvolution_layers(convolution_layers);
if (result == null) result = caseModel(convolution_layers);
if (result == null) result = defaultCase(theEObject);
return result;
}
case Convolution_layersPackage.UNFOLD: {
Unfold unfold = (Unfold)theEObject;
T result = caseUnfold(unfold);
if (result == null) result = caseConvolution_layers(unfold);
if (result == null) result = caseModel(unfold);
if (result == null) result = defaultCase(theEObject);
return result;
}
case Convolution_layersPackage.FOLD: {
Fold fold = (Fold)theEObject;
T result = caseFold(fold);
if (result == null) result = caseConvolution_layers(fold);
if (result == null) result = caseModel(fold);
if (result == null) result = defaultCase(theEObject);
return result;
}
case Convolution_layersPackage.CONV2D: {
Conv2d conv2d = (Conv2d)theEObject;
T result = caseConv2d(conv2d);
if (result == null) result = casebasic(conv2d);
if (result == null) result = caseLayerWithFilter(conv2d);
if (result == null) result = caseConvolution(conv2d);
if (result == null) result = caseConvolution_layers(conv2d);
if (result == null) result = caseModel(conv2d);
if (result == null) result = defaultCase(theEObject);
return result;
}
case Convolution_layersPackage.BASIC: {
basic basic = (basic)theEObject;
T result = casebasic(basic);
if (result == null) result = caseLayerWithFilter(basic);
if (result == null) result = caseConvolution(basic);
if (result == null) result = caseConvolution_layers(basic);
if (result == null) result = caseModel(basic);
if (result == null) result = defaultCase(theEObject);
return result;
}
case Convolution_layersPackage.LAYER_WITH_FILTER: {
LayerWithFilter layerWithFilter = (LayerWithFilter)theEObject;
T result = caseLayerWithFilter(layerWithFilter);
if (result == null) result = caseConvolution(layerWithFilter);
if (result == null) result = caseConvolution_layers(layerWithFilter);
if (result == null) result = caseModel(layerWithFilter);
if (result == null) result = defaultCase(theEObject);
return result;
}
case Convolution_layersPackage.CONV3D: {
Conv3d conv3d = (Conv3d)theEObject;
T result = caseConv3d(conv3d);
if (result == null) result = casebasic(conv3d);
if (result == null) result = caseLayerWithFilter(conv3d);
if (result == null) result = caseConvolution(conv3d);
if (result == null) result = caseConvolution_layers(conv3d);
if (result == null) result = caseModel(conv3d);
if (result == null) result = defaultCase(theEObject);
return result;
}
case Convolution_layersPackage.CONV_TRANSPOSE1D: {
ConvTranspose1d convTranspose1d = (ConvTranspose1d)theEObject;
T result = caseConvTranspose1d(convTranspose1d);
if (result == null) result = caseLayerWithFilter(convTranspose1d);
if (result == null) result = caseConvolution(convTranspose1d);
if (result == null) result = caseConvolution_layers(convTranspose1d);
if (result == null) result = caseModel(convTranspose1d);
if (result == null) result = defaultCase(theEObject);
return result;
}
case Convolution_layersPackage.CONV_TRANSPOSE2D: {
ConvTranspose2d convTranspose2d = (ConvTranspose2d)theEObject;
T result = caseConvTranspose2d(convTranspose2d);
if (result == null) result = casetranspose(convTranspose2d);
if (result == null) result = casebasic(convTranspose2d);
if (result == null) result = caseLayerWithFilter(convTranspose2d);
if (result == null) result = caseConvolution(convTranspose2d);
if (result == null) result = caseConvolution_layers(convTranspose2d);
if (result == null) result = caseModel(convTranspose2d);
if (result == null) result = defaultCase(theEObject);
return result;
}
case Convolution_layersPackage.TRANSPOSE: {
transpose transpose = (transpose)theEObject;
T result = casetranspose(transpose);
if (result == null) result = casebasic(transpose);
if (result == null) result = caseLayerWithFilter(transpose);
if (result == null) result = caseConvolution(transpose);
if (result == null) result = caseConvolution_layers(transpose);
if (result == null) result = caseModel(transpose);
if (result == null) result = defaultCase(theEObject);
return result;
}
case Convolution_layersPackage.CONV_TRANSPOSE3D: {
ConvTranspose3d convTranspose3d = (ConvTranspose3d)theEObject;
T result = caseConvTranspose3d(convTranspose3d);
if (result == null) result = casetranspose(convTranspose3d);
if (result == null) result = casebasic(convTranspose3d);
if (result == null) result = caseLayerWithFilter(convTranspose3d);
if (result == null) result = caseConvolution(convTranspose3d);
if (result == null) result = caseConvolution_layers(convTranspose3d);
if (result == null) result = caseModel(convTranspose3d);
if (result == null) result = defaultCase(theEObject);
return result;
}
case Convolution_layersPackage.CONV1D: {
Conv1d conv1d = (Conv1d)theEObject;
T result = caseConv1d(conv1d);
if (result == null) result = casebasic(conv1d);
if (result == null) result = caseLayerWithFilter(conv1d);
if (result == null) result = caseConvolution(conv1d);
if (result == null) result = caseConvolution_layers(conv1d);
if (result == null) result = caseModel(conv1d);
if (result == null) result = defaultCase(theEObject);
return result;
}
case Convolution_layersPackage.SEPARABLE: {
Separable separable = (Separable)theEObject;
T result = caseSeparable(separable);
if (result == null) result = caseLayerWithFilter(separable);
if (result == null) result = caseConvolution(separable);
if (result == null) result = caseConvolution_layers(separable);
if (result == null) result = caseModel(separable);
if (result == null) result = defaultCase(theEObject);
return result;
}
case Convolution_layersPackage.SEPARABLE_CONV2_D: {
SeparableConv2D separableConv2D = (SeparableConv2D)theEObject;
T result = caseSeparableConv2D(separableConv2D);
if (result == null) result = caseSeparable(separableConv2D);
if (result == null) result = caseLayerWithFilter(separableConv2D);
if (result == null) result = caseConvolution(separableConv2D);
if (result == null) result = caseConvolution_layers(separableConv2D);
if (result == null) result = caseModel(separableConv2D);
if (result == null) result = defaultCase(theEObject);
return result;
}
case Convolution_layersPackage.SEPARABLE_CONV1_D: {
SeparableConv1D separableConv1D = (SeparableConv1D)theEObject;
T result = caseSeparableConv1D(separableConv1D);
if (result == null) result = caseSeparable(separableConv1D);
if (result == null) result = caseLayerWithFilter(separableConv1D);
if (result == null) result = caseConvolution(separableConv1D);
if (result == null) result = caseConvolution_layers(separableConv1D);
if (result == null) result = caseModel(separableConv1D);
if (result == null) result = defaultCase(theEObject);
return result;
}
case Convolution_layersPackage.DEPTHWISE_CONV2_D: {
DepthwiseConv2D depthwiseConv2D = (DepthwiseConv2D)theEObject;
T result = caseDepthwiseConv2D(depthwiseConv2D);
if (result == null) result = caseConvolution(depthwiseConv2D);
if (result == null) result = caseConvolution_layers(depthwiseConv2D);
if (result == null) result = caseModel(depthwiseConv2D);
if (result == null) result = defaultCase(theEObject);
return result;
}
default: return defaultCase(theEObject);
}
}
/**
* Returns the result of interpreting the object as an instance of '<em>Convolution</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Convolution</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseConvolution(Convolution object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Convolution layers</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Convolution layers</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseConvolution_layers(Convolution_layers object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Unfold</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Unfold</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseUnfold(Unfold object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Fold</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Fold</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseFold(Fold object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Conv2d</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Conv2d</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseConv2d(Conv2d object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>basic</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>basic</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T casebasic(basic object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Layer With Filter</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Layer With Filter</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseLayerWithFilter(LayerWithFilter object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Conv3d</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Conv3d</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseConv3d(Conv3d object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Conv Transpose1d</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Conv Transpose1d</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseConvTranspose1d(ConvTranspose1d object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Conv Transpose2d</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Conv Transpose2d</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseConvTranspose2d(ConvTranspose2d object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>transpose</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>transpose</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T casetranspose(transpose object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Conv Transpose3d</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Conv Transpose3d</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseConvTranspose3d(ConvTranspose3d object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Conv1d</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Conv1d</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseConv1d(Conv1d object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Separable</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Separable</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseSeparable(Separable object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Separable Conv2 D</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Separable Conv2 D</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseSeparableConv2D(SeparableConv2D object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Separable Conv1 D</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Separable Conv1 D</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseSeparableConv1D(SeparableConv1D object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Depthwise Conv2 D</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Depthwise Conv2 D</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseDepthwiseConv2D(DepthwiseConv2D object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Model</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Model</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseModel(Model object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>EObject</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch, but this is the last case anyway.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>EObject</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject)
* @generated
*/
@Override
public T defaultCase(EObject object) {
return null;
}
} //Convolution_layersSwitch