Browse Source

explicit: indicate 'not supported' for state reward export in unsupported formats

master
Joachim Klein 7 years ago
parent
commit
c7203567b0
  1. 5
      prism/src/explicit/ProbModelChecker.java

5
prism/src/explicit/ProbModelChecker.java

@ -50,6 +50,7 @@ import parser.type.TypePathBool;
import parser.type.TypePathDouble;
import prism.IntegerBound;
import prism.OpRelOpBound;
import prism.Prism;
import prism.PrismComponent;
import prism.PrismException;
import prism.PrismLog;
@ -1271,6 +1272,10 @@ public class ProbModelChecker extends NonProbModelChecker
int numStates = model.getNumStates();
int nonZeroRews = 0;
if (exportType != Prism.EXPORT_PLAIN) {
throw new PrismNotSupportedException("Exporting state rewards in the requested format is currently not supported by the explicit engine");
}
Rewards modelRewards = constructRewards(model, r);
switch (model.getModelType()) {
case DTMC:

Loading…
Cancel
Save