Browse Source

explicit.ConstructModel: Convert DTMCSimple to DTMCSparse (as for MDPs) [with Steffen Maercker]

git-svn-id: https://www.prismmodelchecker.org/svn/prism/prism/trunk@12145 bbc10eb1-c90d-0410-af57-cb519fbb1720
master
Joachim Klein 9 years ago
parent
commit
126e21550a
  1. 6
      prism/src/explicit/ConstructModel.java

6
prism/src/explicit/ConstructModel.java

@ -328,7 +328,11 @@ public class ConstructModel extends PrismComponent
if (!justReach) { if (!justReach) {
switch (modelType) { switch (modelType) {
case DTMC: case DTMC:
model = sort ? new DTMCSimple(dtmc, permut) : (DTMCSimple) dtmc;
if (buildSparse) {
model = sort ? new DTMCSparse(dtmc, permut) : new DTMCSparse(dtmc);
} else {
model = sort ? new DTMCSimple(dtmc, permut) : (DTMCSimple) dtmc;
}
break; break;
case CTMC: case CTMC:
model = sort ? new CTMCSimple(ctmc, permut) : (CTMCSimple) ctmc; model = sort ? new CTMCSimple(ctmc, permut) : (CTMCSimple) ctmc;

Loading…
Cancel
Save