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.
-
-
Constructor Summary
Constructors Constructor Description MarkovUsageModelVisitor(MarkovTransformationSource transformationState, MarkovEvaluationType evaluationType, boolean simplifiedStateHandling, boolean optimize, boolean recordTraces)The constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MarkovChaincaseBranch(org.palladiosimulator.pcm.usagemodel.Branch branch)Returns a Markov Chain corresponding to this Branch.MarkovChaincaseDelay(org.palladiosimulator.pcm.usagemodel.Delay delay)Returns a Markov Chain correponding to this Delay.MarkovChaincaseEntryLevelSystemCall(org.palladiosimulator.pcm.usagemodel.EntryLevelSystemCall call)Returns a Markov Chain that corresponds to this EntryLevelSystemCall.MarkovChaincaseLoop(org.palladiosimulator.pcm.usagemodel.Loop loop)Returns a Markov Chain corresponding to this Loop.MarkovChaincaseScenarioBehaviour(org.palladiosimulator.pcm.usagemodel.ScenarioBehaviour scenarioBehaviour)Returns a Markov Chain that corresponds to the first SystemLevelEntryCall within this ScenarioBehaviour.MarkovChaincaseStart(org.palladiosimulator.pcm.usagemodel.Start start)Returns a Markov Chain that corresponds to this start action.MarkovChaincaseStop(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, caseUsageModel, caseUsageScenario, caseUserData, caseWorkload, defaultCase, doSwitch, isSwitchFor
-
-
-
-
Constructor Detail
-
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 Detail
-
caseBranch
public MarkovChain caseBranch(org.palladiosimulator.pcm.usagemodel.Branch branch)
Returns a Markov Chain corresponding to this Branch.- Overrides:
caseBranchin 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
public MarkovChain caseDelay(org.palladiosimulator.pcm.usagemodel.Delay delay)
Returns a Markov Chain correponding to this Delay.- Overrides:
caseDelayin 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:
caseEntryLevelSystemCallin classorg.palladiosimulator.pcm.usagemodel.util.UsagemodelSwitch<MarkovChain>- Parameters:
call- the call- Returns:
- the resulting Markov Chain
-
caseLoop
public MarkovChain caseLoop(org.palladiosimulator.pcm.usagemodel.Loop loop)
Returns a Markov Chain corresponding to this Loop.- Overrides:
caseLoopin 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:
caseScenarioBehaviourin classorg.palladiosimulator.pcm.usagemodel.util.UsagemodelSwitch<MarkovChain>- Parameters:
scenarioBehaviour- the scenario behaviour- Returns:
- the resulting Markov Chain
-
caseStart
public MarkovChain caseStart(org.palladiosimulator.pcm.usagemodel.Start start)
Returns a Markov Chain that corresponds to this start action.- Overrides:
caseStartin classorg.palladiosimulator.pcm.usagemodel.util.UsagemodelSwitch<MarkovChain>- Parameters:
start- the start action- Returns:
- the resulting Markov Chain
-
caseStop
public MarkovChain caseStop(org.palladiosimulator.pcm.usagemodel.Stop stop)
Returns a Markov Chain that corresponds to this stop action.- Overrides:
caseStopin classorg.palladiosimulator.pcm.usagemodel.util.UsagemodelSwitch<MarkovChain>- Parameters:
stop- the stop action- Returns:
- the resulting Markov Chain
-
-