Browse Source

Make "rewards" option of simpath consistent with others.

git-svn-id: https://www.prismmodelchecker.org/svn/prism/prism/trunk@5396 bbc10eb1-c90d-0410-af57-cb519fbb1720
master
Dave Parker 14 years ago
parent
commit
d1e4de5fb3
  1. 10
      prism/src/simulator/GenerateSimulationPath.java

10
prism/src/simulator/GenerateSimulationPath.java

@ -224,9 +224,15 @@ public class GenerateSimulationPath
} catch (NumberFormatException e) { } catch (NumberFormatException e) {
throw new PrismException("Value for \"snapshot\" option must be a positive double"); throw new PrismException("Value for \"snapshot\" option must be a positive double");
} }
} else if (ss[i].equals("rewards")) {
// display rewards
} else if (ss[i].equals("rewards=")) {
// display rewards?
String bool = ss[i].substring(8).toLowerCase();
if (bool.equals("true"))
simPathShowRewards = true; simPathShowRewards = true;
else if (bool.equals("true"))
simPathShowRewards = true;
else
throw new PrismException("Value for \"rewards\" option must \"true\" or \"false\"");
} else { } else {
// path of fixed number of steps // path of fixed number of steps
simPathType = PathType.SIM_PATH_NUM_STEPS; simPathType = PathType.SIM_PATH_NUM_STEPS;

Loading…
Cancel
Save