Skip to content

Commit

Permalink
Provide method to compute steady state probs for BSCC without explici…
Browse files Browse the repository at this point in the history
…t post processing
  • Loading branch information
Steffen Märcker authored and davexparker committed May 8, 2019
1 parent 5c33a55 commit 809f10f
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
12 changes: 12 additions & 0 deletions prism/src/explicit/CTMCModelChecker.java
Original file line number Diff line number Diff line change
Expand Up @@ -860,6 +860,18 @@ public ModelCheckerResult computeSteadyStateProbs(CTMC ctmc, double initDist[])
return createDTMCModelChecker().computeSteadyStateProbs(dtmcEmb, initDist, new SteadyStateBSCCPostProcessor(ctmc));
}

/**
* @see DTMCModelChecker#computeSteadyStateProbsForBSCC(DTMC, BitSet, double[], BSCCPostProcessor)
*/
public ModelCheckerResult computeSteadyStateProbsForBSCC(CTMC ctmc, BitSet states, double result[]) throws PrismException
{
// We construct the embedded DTMC and do the steady-state computation there
mainLog.println("Building embedded DTMC...");
DTMC dtmcEmb = ctmc.getImplicitEmbeddedDTMC();

return createDTMCModelChecker().computeSteadyStateProbsForBSCC(dtmcEmb, states, result, new SteadyStateBSCCPostProcessor(ctmc));
}

/**
* Compute steady-state rewards, i.e., R=?[ S ].
* @param ctmc the CTMC
Expand Down
8 changes: 8 additions & 0 deletions prism/src/explicit/DTMCModelChecker.java
Original file line number Diff line number Diff line change
Expand Up @@ -2421,6 +2421,14 @@ public ModelCheckerResult computeSteadyStateRewards(DTMC dtmc, MCRewards modelRe
return computeSteadyStateBackwardsProbs(dtmc, multRewards);
}

/**
* @see DTMCModelChecker#computeSteadyStateProbsForBSCC(DTMC, BitSet, double[], BSCCPostProcessor)
*/
public ModelCheckerResult computeSteadyStateProbsForBSCC(DTMC dtmc, BitSet states, double result[]) throws PrismException
{
return computeSteadyStateProbsForBSCC(dtmc, states, result, null);
}

/**
* Compute steady-state probabilities for a BSCC
* i.e. compute the long-run probability of being in each state of the BSCC.
Expand Down

0 comments on commit 809f10f

Please sign in to comment.