Browse Source

Multi-objective: convert some PrismException to PrismNotSupportedException

git-svn-id: https://www.prismmodelchecker.org/svn/prism/prism/trunk@11997 bbc10eb1-c90d-0410-af57-cb519fbb1720
master
Joachim Klein 9 years ago
parent
commit
83e754e309
  1. 2
      prism/src/prism/MultiObjModelChecker.java
  2. 2
      prism/src/prism/NondetModelChecker.java

2
prism/src/prism/MultiObjModelChecker.java

@ -288,7 +288,7 @@ public class MultiObjModelChecker extends PrismComponent
JDD.Deref(tt); JDD.Deref(tt);
} }
if (constraintViolated) { if (constraintViolated) {
throw new PrismException("Cannot use multi-objective model checking with maximising objectives and non-zero reward end compoments");
throw new PrismNotSupportedException("Cannot use multi-objective model checking with maximising objectives and non-zero reward end compoments");
} }
JDD.Ref(removedActions); JDD.Ref(removedActions);

2
prism/src/prism/NondetModelChecker.java

@ -725,7 +725,7 @@ public class NondetModelChecker extends NonProbModelChecker
// Check there are no state rewards (which are not currently supported), and throw an exception if there are // Check there are no state rewards (which are not currently supported), and throw an exception if there are
JDDNode stateRewards = getStateRewardsByIndexObject(rs, model, constantValues); JDDNode stateRewards = getStateRewardsByIndexObject(rs, model, constantValues);
if (stateRewards != null && !stateRewards.equals(JDD.ZERO)) { if (stateRewards != null && !stateRewards.equals(JDD.ZERO)) {
throw new PrismException("Multi-objective model checking does not support state rewards; please convert to transition rewards");
throw new PrismNotSupportedException("Multi-objective model checking does not support state rewards; please convert to transition rewards");
} }
// Add transition rewards to list // Add transition rewards to list
transRewardsList.add(getTransitionRewardsByIndexObject(rs, model, constantValues)); transRewardsList.add(getTransitionRewardsByIndexObject(rs, model, constantValues));

Loading…
Cancel
Save