Browse Source

Minor refactor in explicit.ConstructModel.

accumulation-v4.7
Dave Parker 6 years ago
parent
commit
7a4918e1ce
  1. 6
      prism/src/explicit/ConstructModel.java

6
prism/src/explicit/ConstructModel.java

@ -197,19 +197,15 @@ public class ConstructModel extends PrismComponent
switch (modelType) {
case DTMC:
modelSimple = dtmc = new DTMCSimple();
dtmc.setVarList(varList);
break;
case CTMC:
modelSimple = ctmc = new CTMCSimple();
ctmc.setVarList(varList);
break;
case MDP:
modelSimple = mdp = new MDPSimple();
mdp.setVarList(varList);
break;
case CTMDP:
modelSimple = ctmdp = new CTMDPSimple();
ctmdp.setVarList(varList);
break;
case STPG:
case SMG:
@ -217,6 +213,8 @@ public class ConstructModel extends PrismComponent
case LTS:
throw new PrismNotSupportedException("Model construction not supported for " + modelType + "s");
}
// Attach variable info
((ModelExplicit) modelSimple).setVarList(varList);
}
// Initialise states storage

Loading…
Cancel
Save