Class MarkovSolver
- java.lang.Object
-
- org.palladiosimulator.solver.reliability.MarkovSolver
-
public class MarkovSolver extends Object
This class solves Markov Chains in the sense that it calculates the probability of getting from the Start State to the Success State (but not into the Failure State).
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MarkovSolver
getSingletonInstance()
Retrieves the singleton solver instance.double[][]
solve(org.palladiosimulator.reliability.markov.MarkovChain markovChain)
Calculates the probability for the given Markov Chain to reach the Success State starting from the Start State.
-
-
-
Method Detail
-
getSingletonInstance
public static MarkovSolver getSingletonInstance()
Retrieves the singleton solver instance.- Returns:
- the singleton solver instance
-
solve
public double[][] solve(org.palladiosimulator.reliability.markov.MarkovChain markovChain)
Calculates the probability for the given Markov Chain to reach the Success State starting from the Start State.- Parameters:
markovChain
- the given Markov Chain- Returns:
- the probability matrix
-
-