| /** |
| * 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.NonLinearActivations.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.Module.Model; |
| import org.eclipse.papyrus.aiml.profile.AIML.NonLinearActivations.*; |
| |
| /** |
| * <!-- 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.NonLinearActivations.NonLinearActivationsPackage |
| * @generated |
| */ |
| public class NonLinearActivationsSwitch<T> extends Switch<T> { |
| /** |
| * The cached model package |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| protected static NonLinearActivationsPackage modelPackage; |
| |
| /** |
| * Creates an instance of the switch. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public NonLinearActivationsSwitch() { |
| if (modelPackage == null) { |
| modelPackage = NonLinearActivationsPackage.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 NonLinearActivationsPackage.NONLINEAR_ACTIVATIONS_WEIGHTEDSUMNONLINEARITY: { |
| Nonlinear_activations_weightedsumnonlinearity nonlinear_activations_weightedsumnonlinearity = (Nonlinear_activations_weightedsumnonlinearity)theEObject; |
| T result = caseNonlinear_activations_weightedsumnonlinearity(nonlinear_activations_weightedsumnonlinearity); |
| if (result == null) result = caseModel(nonlinear_activations_weightedsumnonlinearity); |
| if (result == null) result = defaultCase(theEObject); |
| return result; |
| } |
| case NonLinearActivationsPackage.ELU: { |
| ELU elu = (ELU)theEObject; |
| T result = caseELU(elu); |
| if (result == null) result = caseNonlinear_activations_weightedsumnonlinearity_1(elu); |
| if (result == null) result = caseNonlinear_activations_weightedsumnonlinearity(elu); |
| if (result == null) result = caseModel(elu); |
| if (result == null) result = defaultCase(theEObject); |
| return result; |
| } |
| case NonLinearActivationsPackage.NONLINEAR_ACTIVATIONS_WEIGHTEDSUMNONLINEARITY_1: { |
| Nonlinear_activations_weightedsumnonlinearity_1 nonlinear_activations_weightedsumnonlinearity_1 = (Nonlinear_activations_weightedsumnonlinearity_1)theEObject; |
| T result = caseNonlinear_activations_weightedsumnonlinearity_1(nonlinear_activations_weightedsumnonlinearity_1); |
| if (result == null) result = caseNonlinear_activations_weightedsumnonlinearity(nonlinear_activations_weightedsumnonlinearity_1); |
| if (result == null) result = caseModel(nonlinear_activations_weightedsumnonlinearity_1); |
| if (result == null) result = defaultCase(theEObject); |
| return result; |
| } |
| case NonLinearActivationsPackage.SHRINK: { |
| shrink shrink = (shrink)theEObject; |
| T result = caseshrink(shrink); |
| if (result == null) result = caseNonlinear_activations_weightedsumnonlinearity(shrink); |
| if (result == null) result = caseModel(shrink); |
| if (result == null) result = defaultCase(theEObject); |
| return result; |
| } |
| case NonLinearActivationsPackage.LEAKY_RE_LU: { |
| LeakyReLU leakyReLU = (LeakyReLU)theEObject; |
| T result = caseLeakyReLU(leakyReLU); |
| if (result == null) result = caseNonlinear_activations_weightedsumnonlinearity_1(leakyReLU); |
| if (result == null) result = caseNonlinear_activations_weightedsumnonlinearity(leakyReLU); |
| if (result == null) result = caseModel(leakyReLU); |
| if (result == null) result = defaultCase(theEObject); |
| return result; |
| } |
| case NonLinearActivationsPackage.LOG_SIGMOID: { |
| LogSigmoid logSigmoid = (LogSigmoid)theEObject; |
| T result = caseLogSigmoid(logSigmoid); |
| if (result == null) result = caseNonlinear_activations_weightedsumnonlinearity(logSigmoid); |
| if (result == null) result = caseModel(logSigmoid); |
| if (result == null) result = defaultCase(theEObject); |
| return result; |
| } |
| case NonLinearActivationsPackage.MULTIHEAD_ATTENTION: { |
| MultiheadAttention multiheadAttention = (MultiheadAttention)theEObject; |
| T result = caseMultiheadAttention(multiheadAttention); |
| if (result == null) result = caseNonlinear_activations_weightedsumnonlinearity(multiheadAttention); |
| if (result == null) result = caseModel(multiheadAttention); |
| if (result == null) result = defaultCase(theEObject); |
| return result; |
| } |
| case NonLinearActivationsPackage.PRE_LU: { |
| PReLU pReLU = (PReLU)theEObject; |
| T result = casePReLU(pReLU); |
| if (result == null) result = caseNonlinear_activations_weightedsumnonlinearity(pReLU); |
| if (result == null) result = caseModel(pReLU); |
| if (result == null) result = defaultCase(theEObject); |
| return result; |
| } |
| case NonLinearActivationsPackage.RE_LU: { |
| ReLU reLU = (ReLU)theEObject; |
| T result = caseReLU(reLU); |
| if (result == null) result = caseNonlinear_activations_weightedsumnonlinearity_1(reLU); |
| if (result == null) result = caseNonlinear_activations_weightedsumnonlinearity(reLU); |
| if (result == null) result = caseModel(reLU); |
| if (result == null) result = defaultCase(theEObject); |
| return result; |
| } |
| case NonLinearActivationsPackage.RE_LU6: { |
| ReLU6 reLU6 = (ReLU6)theEObject; |
| T result = caseReLU6(reLU6); |
| if (result == null) result = caseNonlinear_activations_weightedsumnonlinearity_1(reLU6); |
| if (result == null) result = caseNonlinear_activations_weightedsumnonlinearity(reLU6); |
| if (result == null) result = caseModel(reLU6); |
| if (result == null) result = defaultCase(theEObject); |
| return result; |
| } |
| case NonLinearActivationsPackage.SELU: { |
| SELU selu = (SELU)theEObject; |
| T result = caseSELU(selu); |
| if (result == null) result = caseNonlinear_activations_weightedsumnonlinearity_1(selu); |
| if (result == null) result = caseNonlinear_activations_weightedsumnonlinearity(selu); |
| if (result == null) result = caseModel(selu); |
| if (result == null) result = defaultCase(theEObject); |
| return result; |
| } |
| case NonLinearActivationsPackage.RRE_LU: { |
| RReLU rReLU = (RReLU)theEObject; |
| T result = caseRReLU(rReLU); |
| if (result == null) result = caseNonlinear_activations_weightedsumnonlinearity_1(rReLU); |
| if (result == null) result = caseNonlinear_activations_weightedsumnonlinearity(rReLU); |
| if (result == null) result = caseModel(rReLU); |
| if (result == null) result = defaultCase(theEObject); |
| return result; |
| } |
| case NonLinearActivationsPackage.CELU: { |
| CELU celu = (CELU)theEObject; |
| T result = caseCELU(celu); |
| if (result == null) result = caseNonlinear_activations_weightedsumnonlinearity_1(celu); |
| if (result == null) result = caseNonlinear_activations_weightedsumnonlinearity(celu); |
| if (result == null) result = caseModel(celu); |
| if (result == null) result = defaultCase(theEObject); |
| return result; |
| } |
| case NonLinearActivationsPackage.GELU: { |
| GELU gelu = (GELU)theEObject; |
| T result = caseGELU(gelu); |
| if (result == null) result = caseNonlinear_activations_weightedsumnonlinearity(gelu); |
| if (result == null) result = caseModel(gelu); |
| if (result == null) result = defaultCase(theEObject); |
| return result; |
| } |
| case NonLinearActivationsPackage.SIGMOID: { |
| Sigmoid sigmoid = (Sigmoid)theEObject; |
| T result = caseSigmoid(sigmoid); |
| if (result == null) result = caseNonlinear_activations_weightedsumnonlinearity(sigmoid); |
| if (result == null) result = caseModel(sigmoid); |
| if (result == null) result = defaultCase(theEObject); |
| return result; |
| } |
| case NonLinearActivationsPackage.SOFTPLUS: { |
| Softplus softplus = (Softplus)theEObject; |
| T result = caseSoftplus(softplus); |
| if (result == null) result = caseNonlinear_activations_weightedsumnonlinearity(softplus); |
| if (result == null) result = caseModel(softplus); |
| if (result == null) result = defaultCase(theEObject); |
| return result; |
| } |
| case NonLinearActivationsPackage.SOFTSHRINK: { |
| Softshrink softshrink = (Softshrink)theEObject; |
| T result = caseSoftshrink(softshrink); |
| if (result == null) result = caseshrink(softshrink); |
| if (result == null) result = caseNonlinear_activations_weightedsumnonlinearity(softshrink); |
| if (result == null) result = caseModel(softshrink); |
| if (result == null) result = defaultCase(theEObject); |
| return result; |
| } |
| case NonLinearActivationsPackage.HARDSHRINK: { |
| Hardshrink hardshrink = (Hardshrink)theEObject; |
| T result = caseHardshrink(hardshrink); |
| if (result == null) result = caseshrink(hardshrink); |
| if (result == null) result = caseNonlinear_activations_weightedsumnonlinearity(hardshrink); |
| if (result == null) result = caseModel(hardshrink); |
| if (result == null) result = defaultCase(theEObject); |
| return result; |
| } |
| case NonLinearActivationsPackage.SOFTSIGN: { |
| Softsign softsign = (Softsign)theEObject; |
| T result = caseSoftsign(softsign); |
| if (result == null) result = caseNonlinear_activations_weightedsumnonlinearity(softsign); |
| if (result == null) result = caseModel(softsign); |
| if (result == null) result = defaultCase(theEObject); |
| return result; |
| } |
| case NonLinearActivationsPackage.TANHSHRINK: { |
| Tanhshrink tanhshrink = (Tanhshrink)theEObject; |
| T result = caseTanhshrink(tanhshrink); |
| if (result == null) result = caseNonlinear_activations_weightedsumnonlinearity(tanhshrink); |
| if (result == null) result = caseModel(tanhshrink); |
| if (result == null) result = defaultCase(theEObject); |
| return result; |
| } |
| case NonLinearActivationsPackage.TANH: { |
| Tanh tanh = (Tanh)theEObject; |
| T result = caseTanh(tanh); |
| if (result == null) result = caseNonlinear_activations_weightedsumnonlinearity(tanh); |
| if (result == null) result = caseModel(tanh); |
| if (result == null) result = defaultCase(theEObject); |
| return result; |
| } |
| case NonLinearActivationsPackage.THRESHOLD: { |
| Threshold threshold = (Threshold)theEObject; |
| T result = caseThreshold(threshold); |
| if (result == null) result = caseNonlinear_activations_weightedsumnonlinearity_1(threshold); |
| if (result == null) result = caseNonlinear_activations_weightedsumnonlinearity(threshold); |
| if (result == null) result = caseModel(threshold); |
| if (result == null) result = defaultCase(theEObject); |
| return result; |
| } |
| case NonLinearActivationsPackage.HARDTANH: { |
| Hardtanh hardtanh = (Hardtanh)theEObject; |
| T result = caseHardtanh(hardtanh); |
| if (result == null) result = caseNonlinear_activations_weightedsumnonlinearity_1(hardtanh); |
| if (result == null) result = caseNonlinear_activations_weightedsumnonlinearity(hardtanh); |
| if (result == null) result = caseModel(hardtanh); |
| if (result == null) result = defaultCase(theEObject); |
| return result; |
| } |
| default: return defaultCase(theEObject); |
| } |
| } |
| |
| /** |
| * Returns the result of interpreting the object as an instance of '<em>Nonlinear activations weightedsumnonlinearity</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>Nonlinear activations weightedsumnonlinearity</em>'. |
| * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| * @generated |
| */ |
| public T caseNonlinear_activations_weightedsumnonlinearity(Nonlinear_activations_weightedsumnonlinearity object) { |
| return null; |
| } |
| |
| /** |
| * Returns the result of interpreting the object as an instance of '<em>ELU</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>ELU</em>'. |
| * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| * @generated |
| */ |
| public T caseELU(ELU object) { |
| return null; |
| } |
| |
| /** |
| * Returns the result of interpreting the object as an instance of '<em>Nonlinear activations weightedsumnonlinearity 1</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>Nonlinear activations weightedsumnonlinearity 1</em>'. |
| * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| * @generated |
| */ |
| public T caseNonlinear_activations_weightedsumnonlinearity_1(Nonlinear_activations_weightedsumnonlinearity_1 object) { |
| return null; |
| } |
| |
| /** |
| * Returns the result of interpreting the object as an instance of '<em>shrink</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>shrink</em>'. |
| * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| * @generated |
| */ |
| public T caseshrink(shrink object) { |
| return null; |
| } |
| |
| /** |
| * Returns the result of interpreting the object as an instance of '<em>Leaky Re LU</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>Leaky Re LU</em>'. |
| * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| * @generated |
| */ |
| public T caseLeakyReLU(LeakyReLU object) { |
| return null; |
| } |
| |
| /** |
| * Returns the result of interpreting the object as an instance of '<em>Log Sigmoid</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>Log Sigmoid</em>'. |
| * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| * @generated |
| */ |
| public T caseLogSigmoid(LogSigmoid object) { |
| return null; |
| } |
| |
| /** |
| * Returns the result of interpreting the object as an instance of '<em>Multihead Attention</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>Multihead Attention</em>'. |
| * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| * @generated |
| */ |
| public T caseMultiheadAttention(MultiheadAttention object) { |
| return null; |
| } |
| |
| /** |
| * Returns the result of interpreting the object as an instance of '<em>PRe LU</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>PRe LU</em>'. |
| * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| * @generated |
| */ |
| public T casePReLU(PReLU object) { |
| return null; |
| } |
| |
| /** |
| * Returns the result of interpreting the object as an instance of '<em>Re LU</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>Re LU</em>'. |
| * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| * @generated |
| */ |
| public T caseReLU(ReLU object) { |
| return null; |
| } |
| |
| /** |
| * Returns the result of interpreting the object as an instance of '<em>Re LU6</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>Re LU6</em>'. |
| * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| * @generated |
| */ |
| public T caseReLU6(ReLU6 object) { |
| return null; |
| } |
| |
| /** |
| * Returns the result of interpreting the object as an instance of '<em>SELU</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>SELU</em>'. |
| * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| * @generated |
| */ |
| public T caseSELU(SELU object) { |
| return null; |
| } |
| |
| /** |
| * Returns the result of interpreting the object as an instance of '<em>RRe LU</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>RRe LU</em>'. |
| * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| * @generated |
| */ |
| public T caseRReLU(RReLU object) { |
| return null; |
| } |
| |
| /** |
| * Returns the result of interpreting the object as an instance of '<em>CELU</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>CELU</em>'. |
| * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| * @generated |
| */ |
| public T caseCELU(CELU object) { |
| return null; |
| } |
| |
| /** |
| * Returns the result of interpreting the object as an instance of '<em>GELU</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>GELU</em>'. |
| * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| * @generated |
| */ |
| public T caseGELU(GELU object) { |
| return null; |
| } |
| |
| /** |
| * Returns the result of interpreting the object as an instance of '<em>Sigmoid</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>Sigmoid</em>'. |
| * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| * @generated |
| */ |
| public T caseSigmoid(Sigmoid object) { |
| return null; |
| } |
| |
| /** |
| * Returns the result of interpreting the object as an instance of '<em>Softplus</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>Softplus</em>'. |
| * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| * @generated |
| */ |
| public T caseSoftplus(Softplus object) { |
| return null; |
| } |
| |
| /** |
| * Returns the result of interpreting the object as an instance of '<em>Softshrink</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>Softshrink</em>'. |
| * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| * @generated |
| */ |
| public T caseSoftshrink(Softshrink object) { |
| return null; |
| } |
| |
| /** |
| * Returns the result of interpreting the object as an instance of '<em>Hardshrink</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>Hardshrink</em>'. |
| * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| * @generated |
| */ |
| public T caseHardshrink(Hardshrink object) { |
| return null; |
| } |
| |
| /** |
| * Returns the result of interpreting the object as an instance of '<em>Softsign</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>Softsign</em>'. |
| * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| * @generated |
| */ |
| public T caseSoftsign(Softsign object) { |
| return null; |
| } |
| |
| /** |
| * Returns the result of interpreting the object as an instance of '<em>Tanhshrink</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>Tanhshrink</em>'. |
| * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| * @generated |
| */ |
| public T caseTanhshrink(Tanhshrink object) { |
| return null; |
| } |
| |
| /** |
| * Returns the result of interpreting the object as an instance of '<em>Tanh</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>Tanh</em>'. |
| * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| * @generated |
| */ |
| public T caseTanh(Tanh object) { |
| return null; |
| } |
| |
| /** |
| * Returns the result of interpreting the object as an instance of '<em>Threshold</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>Threshold</em>'. |
| * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| * @generated |
| */ |
| public T caseThreshold(Threshold object) { |
| return null; |
| } |
| |
| /** |
| * Returns the result of interpreting the object as an instance of '<em>Hardtanh</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>Hardtanh</em>'. |
| * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| * @generated |
| */ |
| public T caseHardtanh(Hardtanh 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; |
| } |
| |
| } //NonLinearActivationsSwitch |