Class NOPReliabilityInterpreter
- java.lang.Object
-
- org.eclipse.emf.ecore.util.Switch<InterpreterResult>
-
- org.palladiosimulator.simulizar.interpreter.legacy.NOPReliabilityInterpreter
-
public class NOPReliabilityInterpreter extends Switch<InterpreterResult>
This Switch acts as legacy adapter to provide previous behaviour of allowing SimuLizar to silently ignore reliability model elements. This switch registers for the two packages which contain reliability SEFF elements. For the most elements, if it encounters them it does nothing and continues execution with the next element of the seff. The only deviating element is the RecoveryAction. As the primary behavior of this action contains the potentially failing sub-seff, we cannot simply ignore this behavior. When encountering a RecoveryAction, we therefore directly pass control to the primary behavior. Since failure simulation is deactivated, the primary behavior cannot fail and, consequently, we can ignore all of the fall-back behaviors. Nevertheless, the primary behavior needs to be executed. This NOP interpreter became necessary after modularizing the RDSEFF interpreter, in case reliability simulation is turned off.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
NOPReliabilityInterpreter.Factory
-
Constructor Summary
Constructors Constructor Description NOPReliabilityInterpreter(RDSeffSwitchContributionFactory.RDSeffElementDispatcher parentSwitch)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected InterpreterResult
doSwitch(EClass eClass, EObject eObject)
protected boolean
isSwitchFor(EPackage ePackage)
-
Methods inherited from class org.eclipse.emf.ecore.util.Switch
defaultCase, doSwitch, doSwitch
-
-
-
-
Constructor Detail
-
NOPReliabilityInterpreter
@AssistedInject public NOPReliabilityInterpreter(@Assisted RDSeffSwitchContributionFactory.RDSeffElementDispatcher parentSwitch)
-
-
Method Detail
-
isSwitchFor
protected boolean isSwitchFor(EPackage ePackage)
- Specified by:
isSwitchFor
in classSwitch<InterpreterResult>
-
doSwitch
protected InterpreterResult doSwitch(EClass eClass, EObject eObject)
- Overrides:
doSwitch
in classSwitch<InterpreterResult>
-
-