| /** |
| * 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.Loss_functions.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.Loss_functions.*; |
| 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.Loss_functions.Loss_functionsPackage |
| * @generated |
| */ |
| public class Loss_functionsSwitch<T> extends Switch<T> { |
| /** |
| * The cached model package |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| protected static Loss_functionsPackage modelPackage; |
| |
| /** |
| * Creates an instance of the switch. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Loss_functionsSwitch() { |
| if (modelPackage == null) { |
| modelPackage = Loss_functionsPackage.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 Loss_functionsPackage.LOSS_FUNCTIONS: { |
| Loss_functions loss_functions = (Loss_functions)theEObject; |
| T result = caseLoss_functions(loss_functions); |
| if (result == null) result = caseModel(loss_functions); |
| if (result == null) result = defaultCase(theEObject); |
| return result; |
| } |
| case Loss_functionsPackage.LOSS_FUNCTIONS_1: { |
| Loss_functions_1 loss_functions_1 = (Loss_functions_1)theEObject; |
| T result = caseLoss_functions_1(loss_functions_1); |
| if (result == null) result = caseLoss_functions(loss_functions_1); |
| if (result == null) result = caseModel(loss_functions_1); |
| if (result == null) result = defaultCase(theEObject); |
| return result; |
| } |
| case Loss_functionsPackage.L1_LOSS: { |
| L1Loss l1Loss = (L1Loss)theEObject; |
| T result = caseL1Loss(l1Loss); |
| if (result == null) result = caseLoss_functions_1(l1Loss); |
| if (result == null) result = caseLoss_functions(l1Loss); |
| if (result == null) result = caseModel(l1Loss); |
| if (result == null) result = defaultCase(theEObject); |
| return result; |
| } |
| case Loss_functionsPackage.MSE_LOSS: { |
| MSELoss mseLoss = (MSELoss)theEObject; |
| T result = caseMSELoss(mseLoss); |
| if (result == null) result = caseLoss_functions_1(mseLoss); |
| if (result == null) result = caseLoss_functions(mseLoss); |
| if (result == null) result = caseModel(mseLoss); |
| if (result == null) result = defaultCase(theEObject); |
| return result; |
| } |
| case Loss_functionsPackage.CTC_LOSS: { |
| CTCLoss ctcLoss = (CTCLoss)theEObject; |
| T result = caseCTCLoss(ctcLoss); |
| if (result == null) result = caseLoss_functions(ctcLoss); |
| if (result == null) result = caseModel(ctcLoss); |
| if (result == null) result = defaultCase(theEObject); |
| return result; |
| } |
| case Loss_functionsPackage.KL_DIV_LOSS: { |
| KLDivLoss klDivLoss = (KLDivLoss)theEObject; |
| T result = caseKLDivLoss(klDivLoss); |
| if (result == null) result = caseLoss_functions_1(klDivLoss); |
| if (result == null) result = caseLoss_functions(klDivLoss); |
| if (result == null) result = caseModel(klDivLoss); |
| if (result == null) result = defaultCase(theEObject); |
| return result; |
| } |
| case Loss_functionsPackage.MULTI_LABEL_MARGIN_LOSS: { |
| MultiLabelMarginLoss multiLabelMarginLoss = (MultiLabelMarginLoss)theEObject; |
| T result = caseMultiLabelMarginLoss(multiLabelMarginLoss); |
| if (result == null) result = caseLoss_functions_1(multiLabelMarginLoss); |
| if (result == null) result = caseLoss_functions(multiLabelMarginLoss); |
| if (result == null) result = caseModel(multiLabelMarginLoss); |
| if (result == null) result = defaultCase(theEObject); |
| return result; |
| } |
| case Loss_functionsPackage.LOSS_FUNCTIONS_11: { |
| Loss_functions_1_1 loss_functions_1_1 = (Loss_functions_1_1)theEObject; |
| T result = caseLoss_functions_1_1(loss_functions_1_1); |
| if (result == null) result = caseLoss_functions_1(loss_functions_1_1); |
| if (result == null) result = caseLoss_functions(loss_functions_1_1); |
| if (result == null) result = caseModel(loss_functions_1_1); |
| if (result == null) result = defaultCase(theEObject); |
| return result; |
| } |
| case Loss_functionsPackage.LOSS_FUNCTIONS_12: { |
| Loss_functions_1_2 loss_functions_1_2 = (Loss_functions_1_2)theEObject; |
| T result = caseLoss_functions_1_2(loss_functions_1_2); |
| if (result == null) result = caseLoss_functions_1(loss_functions_1_2); |
| if (result == null) result = caseLoss_functions(loss_functions_1_2); |
| if (result == null) result = caseModel(loss_functions_1_2); |
| if (result == null) result = defaultCase(theEObject); |
| return result; |
| } |
| case Loss_functionsPackage.COSINE_EMBEDDING_LOSS: { |
| CosineEmbeddingLoss cosineEmbeddingLoss = (CosineEmbeddingLoss)theEObject; |
| T result = caseCosineEmbeddingLoss(cosineEmbeddingLoss); |
| if (result == null) result = caseLoss_functions_1_1(cosineEmbeddingLoss); |
| if (result == null) result = caseLoss_functions_1(cosineEmbeddingLoss); |
| if (result == null) result = caseLoss_functions(cosineEmbeddingLoss); |
| if (result == null) result = caseModel(cosineEmbeddingLoss); |
| if (result == null) result = defaultCase(theEObject); |
| return result; |
| } |
| case Loss_functionsPackage.MARGIN_RANKING_LOSS: { |
| MarginRankingLoss marginRankingLoss = (MarginRankingLoss)theEObject; |
| T result = caseMarginRankingLoss(marginRankingLoss); |
| if (result == null) result = caseLoss_functions_1_1(marginRankingLoss); |
| if (result == null) result = caseLoss_functions_1(marginRankingLoss); |
| if (result == null) result = caseLoss_functions(marginRankingLoss); |
| if (result == null) result = caseModel(marginRankingLoss); |
| if (result == null) result = defaultCase(theEObject); |
| return result; |
| } |
| case Loss_functionsPackage.HINGE_EMBEDDING_LOSS: { |
| HingeEmbeddingLoss hingeEmbeddingLoss = (HingeEmbeddingLoss)theEObject; |
| T result = caseHingeEmbeddingLoss(hingeEmbeddingLoss); |
| if (result == null) result = caseLoss_functions_1_1(hingeEmbeddingLoss); |
| if (result == null) result = caseLoss_functions_1(hingeEmbeddingLoss); |
| if (result == null) result = caseLoss_functions(hingeEmbeddingLoss); |
| if (result == null) result = caseModel(hingeEmbeddingLoss); |
| if (result == null) result = defaultCase(theEObject); |
| return result; |
| } |
| case Loss_functionsPackage.BCE_LOSS: { |
| BCELoss bceLoss = (BCELoss)theEObject; |
| T result = caseBCELoss(bceLoss); |
| if (result == null) result = caseLoss_functions_1_2(bceLoss); |
| if (result == null) result = caseLoss_functions_1(bceLoss); |
| if (result == null) result = caseLoss_functions(bceLoss); |
| if (result == null) result = caseModel(bceLoss); |
| if (result == null) result = defaultCase(theEObject); |
| return result; |
| } |
| case Loss_functionsPackage.LOSS_FUNCTIONS_111: { |
| Loss_functions_1_1_1 loss_functions_1_1_1 = (Loss_functions_1_1_1)theEObject; |
| T result = caseLoss_functions_1_1_1(loss_functions_1_1_1); |
| if (result == null) result = caseLoss_functions_1_1(loss_functions_1_1_1); |
| if (result == null) result = caseLoss_functions_1(loss_functions_1_1_1); |
| if (result == null) result = caseLoss_functions(loss_functions_1_1_1); |
| if (result == null) result = caseModel(loss_functions_1_1_1); |
| if (result == null) result = defaultCase(theEObject); |
| return result; |
| } |
| case Loss_functionsPackage.MULTI_MARGIN_LOSS: { |
| MultiMarginLoss multiMarginLoss = (MultiMarginLoss)theEObject; |
| T result = caseMultiMarginLoss(multiMarginLoss); |
| if (result == null) result = caseLoss_functions_1_1_1(multiMarginLoss); |
| if (result == null) result = caseLoss_functions_1_1(multiMarginLoss); |
| if (result == null) result = caseLoss_functions_1(multiMarginLoss); |
| if (result == null) result = caseLoss_functions(multiMarginLoss); |
| if (result == null) result = caseModel(multiMarginLoss); |
| if (result == null) result = defaultCase(theEObject); |
| return result; |
| } |
| case Loss_functionsPackage.TRIPLET_MARGIN_LOSS: { |
| TripletMarginLoss tripletMarginLoss = (TripletMarginLoss)theEObject; |
| T result = caseTripletMarginLoss(tripletMarginLoss); |
| if (result == null) result = caseLoss_functions_1_1_1(tripletMarginLoss); |
| if (result == null) result = caseLoss_functions_1_1(tripletMarginLoss); |
| if (result == null) result = caseLoss_functions_1(tripletMarginLoss); |
| if (result == null) result = caseLoss_functions(tripletMarginLoss); |
| if (result == null) result = caseModel(tripletMarginLoss); |
| if (result == null) result = defaultCase(theEObject); |
| return result; |
| } |
| case Loss_functionsPackage.LOSS_FUNCTIONS_121: { |
| Loss_functions_1_2_1 loss_functions_1_2_1 = (Loss_functions_1_2_1)theEObject; |
| T result = caseLoss_functions_1_2_1(loss_functions_1_2_1); |
| if (result == null) result = caseLoss_functions_1_2(loss_functions_1_2_1); |
| if (result == null) result = caseLoss_functions_1(loss_functions_1_2_1); |
| if (result == null) result = caseLoss_functions(loss_functions_1_2_1); |
| if (result == null) result = caseModel(loss_functions_1_2_1); |
| if (result == null) result = defaultCase(theEObject); |
| return result; |
| } |
| case Loss_functionsPackage.CROSS_ENTROPY_LOSS: { |
| CrossEntropyLoss crossEntropyLoss = (CrossEntropyLoss)theEObject; |
| T result = caseCrossEntropyLoss(crossEntropyLoss); |
| if (result == null) result = caseLoss_functions_1_2_1(crossEntropyLoss); |
| if (result == null) result = caseLoss_functions_1_2(crossEntropyLoss); |
| if (result == null) result = caseLoss_functions_1(crossEntropyLoss); |
| if (result == null) result = caseLoss_functions(crossEntropyLoss); |
| if (result == null) result = caseModel(crossEntropyLoss); |
| if (result == null) result = defaultCase(theEObject); |
| return result; |
| } |
| case Loss_functionsPackage.NLL_LOSS: { |
| NLLLoss nllLoss = (NLLLoss)theEObject; |
| T result = caseNLLLoss(nllLoss); |
| if (result == null) result = caseLoss_functions_1_2_1(nllLoss); |
| if (result == null) result = caseLoss_functions_1_2(nllLoss); |
| if (result == null) result = caseLoss_functions_1(nllLoss); |
| if (result == null) result = caseLoss_functions(nllLoss); |
| if (result == null) result = caseModel(nllLoss); |
| if (result == null) result = defaultCase(theEObject); |
| return result; |
| } |
| case Loss_functionsPackage.POISSON_NLL_LOSS: { |
| PoissonNLLLoss poissonNLLLoss = (PoissonNLLLoss)theEObject; |
| T result = casePoissonNLLLoss(poissonNLLLoss); |
| if (result == null) result = caseLoss_functions_1_2(poissonNLLLoss); |
| if (result == null) result = caseLoss_functions_1(poissonNLLLoss); |
| if (result == null) result = caseLoss_functions(poissonNLLLoss); |
| if (result == null) result = caseModel(poissonNLLLoss); |
| if (result == null) result = defaultCase(theEObject); |
| return result; |
| } |
| case Loss_functionsPackage.BCE_WITH_LOGITS_LOSS: { |
| BCEWithLogitsLoss bceWithLogitsLoss = (BCEWithLogitsLoss)theEObject; |
| T result = caseBCEWithLogitsLoss(bceWithLogitsLoss); |
| if (result == null) result = caseLoss_functions_1_2(bceWithLogitsLoss); |
| if (result == null) result = caseLoss_functions_1(bceWithLogitsLoss); |
| if (result == null) result = caseLoss_functions(bceWithLogitsLoss); |
| if (result == null) result = caseModel(bceWithLogitsLoss); |
| if (result == null) result = defaultCase(theEObject); |
| return result; |
| } |
| default: return defaultCase(theEObject); |
| } |
| } |
| |
| /** |
| * Returns the result of interpreting the object as an instance of '<em>Loss functions</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>Loss functions</em>'. |
| * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| * @generated |
| */ |
| public T caseLoss_functions(Loss_functions object) { |
| return null; |
| } |
| |
| /** |
| * Returns the result of interpreting the object as an instance of '<em>Loss functions 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>Loss functions 1</em>'. |
| * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| * @generated |
| */ |
| public T caseLoss_functions_1(Loss_functions_1 object) { |
| return null; |
| } |
| |
| /** |
| * Returns the result of interpreting the object as an instance of '<em>L1 Loss</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>L1 Loss</em>'. |
| * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| * @generated |
| */ |
| public T caseL1Loss(L1Loss object) { |
| return null; |
| } |
| |
| /** |
| * Returns the result of interpreting the object as an instance of '<em>MSE Loss</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>MSE Loss</em>'. |
| * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| * @generated |
| */ |
| public T caseMSELoss(MSELoss object) { |
| return null; |
| } |
| |
| /** |
| * Returns the result of interpreting the object as an instance of '<em>CTC Loss</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>CTC Loss</em>'. |
| * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| * @generated |
| */ |
| public T caseCTCLoss(CTCLoss object) { |
| return null; |
| } |
| |
| /** |
| * Returns the result of interpreting the object as an instance of '<em>KL Div Loss</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>KL Div Loss</em>'. |
| * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| * @generated |
| */ |
| public T caseKLDivLoss(KLDivLoss object) { |
| return null; |
| } |
| |
| /** |
| * Returns the result of interpreting the object as an instance of '<em>Multi Label Margin Loss</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>Multi Label Margin Loss</em>'. |
| * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| * @generated |
| */ |
| public T caseMultiLabelMarginLoss(MultiLabelMarginLoss object) { |
| return null; |
| } |
| |
| /** |
| * Returns the result of interpreting the object as an instance of '<em>Loss functions 11</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>Loss functions 11</em>'. |
| * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| * @generated |
| */ |
| public T caseLoss_functions_1_1(Loss_functions_1_1 object) { |
| return null; |
| } |
| |
| /** |
| * Returns the result of interpreting the object as an instance of '<em>Loss functions 12</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>Loss functions 12</em>'. |
| * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| * @generated |
| */ |
| public T caseLoss_functions_1_2(Loss_functions_1_2 object) { |
| return null; |
| } |
| |
| /** |
| * Returns the result of interpreting the object as an instance of '<em>Cosine Embedding Loss</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>Cosine Embedding Loss</em>'. |
| * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| * @generated |
| */ |
| public T caseCosineEmbeddingLoss(CosineEmbeddingLoss object) { |
| return null; |
| } |
| |
| /** |
| * Returns the result of interpreting the object as an instance of '<em>Margin Ranking Loss</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>Margin Ranking Loss</em>'. |
| * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| * @generated |
| */ |
| public T caseMarginRankingLoss(MarginRankingLoss object) { |
| return null; |
| } |
| |
| /** |
| * Returns the result of interpreting the object as an instance of '<em>Hinge Embedding Loss</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>Hinge Embedding Loss</em>'. |
| * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| * @generated |
| */ |
| public T caseHingeEmbeddingLoss(HingeEmbeddingLoss object) { |
| return null; |
| } |
| |
| /** |
| * Returns the result of interpreting the object as an instance of '<em>BCE Loss</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>BCE Loss</em>'. |
| * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| * @generated |
| */ |
| public T caseBCELoss(BCELoss object) { |
| return null; |
| } |
| |
| /** |
| * Returns the result of interpreting the object as an instance of '<em>Loss functions 111</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>Loss functions 111</em>'. |
| * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| * @generated |
| */ |
| public T caseLoss_functions_1_1_1(Loss_functions_1_1_1 object) { |
| return null; |
| } |
| |
| /** |
| * Returns the result of interpreting the object as an instance of '<em>Multi Margin Loss</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>Multi Margin Loss</em>'. |
| * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| * @generated |
| */ |
| public T caseMultiMarginLoss(MultiMarginLoss object) { |
| return null; |
| } |
| |
| /** |
| * Returns the result of interpreting the object as an instance of '<em>Triplet Margin Loss</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>Triplet Margin Loss</em>'. |
| * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| * @generated |
| */ |
| public T caseTripletMarginLoss(TripletMarginLoss object) { |
| return null; |
| } |
| |
| /** |
| * Returns the result of interpreting the object as an instance of '<em>Loss functions 121</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>Loss functions 121</em>'. |
| * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| * @generated |
| */ |
| public T caseLoss_functions_1_2_1(Loss_functions_1_2_1 object) { |
| return null; |
| } |
| |
| /** |
| * Returns the result of interpreting the object as an instance of '<em>Cross Entropy Loss</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>Cross Entropy Loss</em>'. |
| * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| * @generated |
| */ |
| public T caseCrossEntropyLoss(CrossEntropyLoss object) { |
| return null; |
| } |
| |
| /** |
| * Returns the result of interpreting the object as an instance of '<em>NLL Loss</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>NLL Loss</em>'. |
| * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| * @generated |
| */ |
| public T caseNLLLoss(NLLLoss object) { |
| return null; |
| } |
| |
| /** |
| * Returns the result of interpreting the object as an instance of '<em>Poisson NLL Loss</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>Poisson NLL Loss</em>'. |
| * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| * @generated |
| */ |
| public T casePoissonNLLLoss(PoissonNLLLoss object) { |
| return null; |
| } |
| |
| /** |
| * Returns the result of interpreting the object as an instance of '<em>BCE With Logits Loss</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>BCE With Logits Loss</em>'. |
| * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| * @generated |
| */ |
| public T caseBCEWithLogitsLoss(BCEWithLogitsLoss 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; |
| } |
| |
| } //Loss_functionsSwitch |