Browse Source

Bugfix in explicit embedded DTMC code - number of states needed sometimes, but is not set up.

git-svn-id: https://www.prismmodelchecker.org/svn/prism/prism/trunk@4169 bbc10eb1-c90d-0410-af57-cb519fbb1720
master
Dave Parker 14 years ago
parent
commit
9c903c6b49
  1. 3
      prism/src/explicit/DTMCEmbeddedSimple.java

3
prism/src/explicit/DTMCEmbeddedSimple.java

@ -45,8 +45,6 @@ public class DTMCEmbeddedSimple extends DTMCExplicit
{
// Parent CTMC
protected CTMCSimple ctmc;
// Also store num states for easy access
protected int numStates;
// Exit rates vector
protected double exitRates[];
// Number of extra transitions added (just for stats)
@ -59,6 +57,7 @@ public class DTMCEmbeddedSimple extends DTMCExplicit
{
this.ctmc = ctmc;
this.numStates = ctmc.getNumStates();
// TODO: should we copy other stuff across too?
exitRates = new double[numStates];
numExtraTransitions = 0;
for (int i = 0; i < numStates; i++) {

Loading…
Cancel
Save