Class MarkovUsageModelVisitor
java.lang.Object
org.eclipse.emf.ecore.util.Switch<T>
org.palladiosimulator.pcm.usagemodel.util.UsagemodelSwitch<MarkovChain>
org.palladiosimulator.reliability.solver.pcm2markov.MarkovUsageModelVisitor
public class MarkovUsageModelVisitor
extends org.palladiosimulator.pcm.usagemodel.util.UsagemodelSwitch<MarkovChain>
This class represents a visitor for a UsageModel within a PCM instance. The visitor is used in
the transformation from PCM with solved dependencies into a Markov Chain Model for reliability
prediction.
-
Field Summary
Fields inherited from class org.palladiosimulator.pcm.usagemodel.util.UsagemodelSwitch
copyright, modelPackage
-
Constructor Summary
ConstructorDescriptionMarkovUsageModelVisitor
(MarkovTransformationSource transformationState, MarkovEvaluationType evaluationType, boolean simplifiedStateHandling, boolean optimize, boolean recordTraces) The constructor. -
Method Summary
Modifier and TypeMethodDescriptioncaseBranch
(org.palladiosimulator.pcm.usagemodel.Branch branch) Returns a Markov Chain corresponding to this Branch.caseDelay
(org.palladiosimulator.pcm.usagemodel.Delay delay) Returns a Markov Chain correponding to this Delay.caseEntryLevelSystemCall
(org.palladiosimulator.pcm.usagemodel.EntryLevelSystemCall call) Returns a Markov Chain that corresponds to this EntryLevelSystemCall.caseLoop
(org.palladiosimulator.pcm.usagemodel.Loop loop) Returns a Markov Chain corresponding to this Loop.caseScenarioBehaviour
(org.palladiosimulator.pcm.usagemodel.ScenarioBehaviour scenarioBehaviour) Returns a Markov Chain that corresponds to the first SystemLevelEntryCall within this ScenarioBehaviour.caseStart
(org.palladiosimulator.pcm.usagemodel.Start start) Returns a Markov Chain that corresponds to this start action.caseStop
(org.palladiosimulator.pcm.usagemodel.Stop stop) Returns a Markov Chain that corresponds to this stop action.Methods inherited from class org.palladiosimulator.pcm.usagemodel.util.UsagemodelSwitch
caseAbstractUserAction, caseBranchTransition, caseClosedWorkload, caseEntity, caseIdentifier, caseNamedElement, caseOpenWorkload, casePCMBaseClass, casePCMClass, caseUsageModel, caseUsageScenario, caseUserData, caseWorkload, defaultCase, doSwitch, isSwitchFor
-
Constructor Details
-
MarkovUsageModelVisitor
public MarkovUsageModelVisitor(MarkovTransformationSource transformationState, MarkovEvaluationType evaluationType, boolean simplifiedStateHandling, boolean optimize, boolean recordTraces) The constructor.- Parameters:
transformationState
- the Markov transformation stateevaluationType
- the degree of differentiation between failure typessimplifiedStateHandling
- controls the handling of physical resource statesoptimize
- controls if Markov Chain reduction shall be performed during transformationrecordTraces
- controls if traces shall be recorded during transformation
-
-
Method Details
-
caseBranch
Returns a Markov Chain corresponding to this Branch.- Overrides:
caseBranch
in classorg.palladiosimulator.pcm.usagemodel.util.UsagemodelSwitch<MarkovChain>
- Parameters:
branch
- the branch action- Returns:
- the resulting Markov Chain
- See Also:
-
UsagemodelSwitch.caseBranch(org.palladiosimulator.pcm.usagemodel.Branch)
-
caseDelay
Returns a Markov Chain correponding to this Delay.- Overrides:
caseDelay
in classorg.palladiosimulator.pcm.usagemodel.util.UsagemodelSwitch<MarkovChain>
- Parameters:
delay
- the delay action- Returns:
- the resulting Markov Chain
-
caseEntryLevelSystemCall
public MarkovChain caseEntryLevelSystemCall(org.palladiosimulator.pcm.usagemodel.EntryLevelSystemCall call) Returns a Markov Chain that corresponds to this EntryLevelSystemCall.- Overrides:
caseEntryLevelSystemCall
in classorg.palladiosimulator.pcm.usagemodel.util.UsagemodelSwitch<MarkovChain>
- Parameters:
call
- the call- Returns:
- the resulting Markov Chain
-
caseLoop
Returns a Markov Chain corresponding to this Loop.- Overrides:
caseLoop
in classorg.palladiosimulator.pcm.usagemodel.util.UsagemodelSwitch<MarkovChain>
- Parameters:
loop
- the loop action- Returns:
- the resulting Markov Chain
-
caseScenarioBehaviour
public MarkovChain caseScenarioBehaviour(org.palladiosimulator.pcm.usagemodel.ScenarioBehaviour scenarioBehaviour) Returns a Markov Chain that corresponds to the first SystemLevelEntryCall within this ScenarioBehaviour.- Overrides:
caseScenarioBehaviour
in classorg.palladiosimulator.pcm.usagemodel.util.UsagemodelSwitch<MarkovChain>
- Parameters:
scenarioBehaviour
- the scenario behaviour- Returns:
- the resulting Markov Chain
-
caseStart
Returns a Markov Chain that corresponds to this start action.- Overrides:
caseStart
in classorg.palladiosimulator.pcm.usagemodel.util.UsagemodelSwitch<MarkovChain>
- Parameters:
start
- the start action- Returns:
- the resulting Markov Chain
-
caseStop
Returns a Markov Chain that corresponds to this stop action.- Overrides:
caseStop
in classorg.palladiosimulator.pcm.usagemodel.util.UsagemodelSwitch<MarkovChain>
- Parameters:
stop
- the stop action- Returns:
- the resulting Markov Chain
-