From 3f5aaab5025b8eb243f414b1c789085327df04f4 Mon Sep 17 00:00:00 2001 From: Kristóf Marussy Date: Wed, 20 Mar 2019 16:09:09 +0100 Subject: Fault tree transformation for partial models WIP --- .../faulttree/model/cft/util/CftSwitch.java | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/util/CftSwitch.java') diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/util/CftSwitch.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/util/CftSwitch.java index e32d792b..3c5a4fd9 100644 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/util/CftSwitch.java +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/util/CftSwitch.java @@ -144,6 +144,7 @@ public class CftSwitch extends Switch { case CftPackage.COMPONENT: { Component component = (Component)theEObject; T result = caseComponent(component); + if (result == null) result = caseModalElement(component); if (result == null) result = defaultCase(theEObject); return result; } @@ -162,6 +163,13 @@ public class CftSwitch extends Switch { case CftPackage.CONNECTION: { Connection connection = (Connection)theEObject; T result = caseConnection(connection); + if (result == null) result = caseModalElement(connection); + if (result == null) result = defaultCase(theEObject); + return result; + } + case CftPackage.MODAL_ELEMENT: { + ModalElement modalElement = (ModalElement)theEObject; + T result = caseModalElement(modalElement); if (result == null) result = defaultCase(theEObject); return result; } @@ -379,6 +387,21 @@ public class CftSwitch extends Switch { return null; } + /** + * Returns the result of interpreting the object as an instance of 'Modal 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 'Modal Element'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseModalElement(ModalElement object) { + return null; + } + /** * Returns the result of interpreting the object as an instance of 'EObject'. * -- cgit v1.2.3-70-g09d2