Browse Source

DRA-DTMC product code works for any type of DTMC, not just DTMCSimple.

git-svn-id: https://www.prismmodelchecker.org/svn/prism/prism/trunk@7099 bbc10eb1-c90d-0410-af57-cb519fbb1720
master
Dave Parker 13 years ago
parent
commit
2b6a966076
  1. 7
      prism/src/explicit/LTLModelChecker.java

7
prism/src/explicit/LTLModelChecker.java

@ -127,16 +127,11 @@ public class LTLModelChecker
*/
public Pair<Model, int[]> constructProductMC(DRA<BitSet> dra, DTMC dtmc, Vector<BitSet> labelBS) throws PrismException
{
if (!(dtmc instanceof DTMCSimple)) {
throw new PrismException("Expecting a DTMC here");
}
DTMCSimple modelDTMC = (DTMCSimple) dtmc;
DTMCSimple prodModel = new DTMCSimple();
int draSize = dra.size();
int numAPs = dra.getAPList().size();
int modelNumStates = modelDTMC.getNumStates();
int modelNumStates = dtmc.getNumStates();
int prodNumStates = modelNumStates * draSize;
// Encoding:

Loading…
Cancel
Save