Class NOPReliabilityInterpreter
java.lang.Object
org.eclipse.emf.ecore.util.Switch<InterpreterResult>
org.palladiosimulator.simulizar.interpreter.legacy.NOPReliabilityInterpreter
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
-
Constructor Summary
ConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionprotected InterpreterResult
protected boolean
isSwitchFor
(EPackage ePackage) Methods inherited from class org.eclipse.emf.ecore.util.Switch
defaultCase, doSwitch, doSwitch
-
Constructor Details
-
NOPReliabilityInterpreter
@AssistedInject public NOPReliabilityInterpreter(@Assisted RDSeffSwitchContributionFactory.RDSeffElementDispatcher parentSwitch)
-
-
Method Details
-
isSwitchFor
- Specified by:
isSwitchFor
in classSwitch<InterpreterResult>
-
doSwitch
- Overrides:
doSwitch
in classSwitch<InterpreterResult>
-