Browse Source

Some code auto-formatting (for branch purposes).

git-svn-id: https://www.prismmodelchecker.org/svn/prism/prism/trunk@6869 bbc10eb1-c90d-0410-af57-cb519fbb1720
master
Dave Parker 13 years ago
parent
commit
6df7dbf140
  1. 10
      prism/src/prism/Prism.java

10
prism/src/prism/Prism.java

@ -2827,8 +2827,7 @@ public class Prism implements PrismSettingsListener
probsExpl = fau.doTransient(time, fileIn); probsExpl = fau.doTransient(time, fileIn);
mainLog.println("\nTotal probability lost is : " + fau.getTotalDiscreteLoss()); mainLog.println("\nTotal probability lost is : " + fau.getTotalDiscreteLoss());
mainLog.println("Maximal number of states stored during analysis : " + fau.getMaxNumStates()); mainLog.println("Maximal number of states stored during analysis : " + fau.getMaxNumStates());
}
else if (!getExplicit()) {
} else if (!getExplicit()) {
if (currentModelType == ModelType.DTMC) { if (currentModelType == ModelType.DTMC) {
mc = new ProbModelChecker(this, currentModel, null); mc = new ProbModelChecker(this, currentModel, null);
probs = ((ProbModelChecker) mc).doTransient((int) time, fileIn); probs = ((ProbModelChecker) mc).doTransient((int) time, fileIn);
@ -3425,12 +3424,11 @@ public class Prism implements PrismSettingsListener
* @throws PrismException e.g. if no parameters specified or other things go wrong * @throws PrismException e.g. if no parameters specified or other things go wrong
*/ */
public Result modelCheckParametric(PropertiesFile propertiesFile, Property prop, String[] paramNames, String[] paramLowerBounds, String[] paramUpperBounds) public Result modelCheckParametric(PropertiesFile propertiesFile, Property prop, String[] paramNames, String[] paramLowerBounds, String[] paramUpperBounds)
throws PrismException
throws PrismException
{ {
if (paramNames == null) { if (paramNames == null) {
throw new PrismException("Must specify some parameters when using "
+ "the parametric analysis");
throw new PrismException("Must specify some parameters when using " + "the parametric analysis");
} }
Values constlist = currentModulesFile.getConstantValues(); Values constlist = currentModulesFile.getConstantValues();
for (int pnr = 0; pnr < paramNames.length; pnr++) { for (int pnr = 0; pnr < paramNames.length; pnr++) {
@ -3439,7 +3437,7 @@ public class Prism implements PrismSettingsListener
param.ModelBuilder builder = new ModelBuilder(); param.ModelBuilder builder = new ModelBuilder();
builder.setModulesFile(currentModulesFile); builder.setModulesFile(currentModulesFile);
builder.setMainLong(mainLog); builder.setMainLong(mainLog);
builder.setParameters(paramNames, paramLowerBounds, paramUpperBounds);
builder.setParameters(paramNames, paramLowerBounds, paramUpperBounds);
builder.setSettings(settings); builder.setSettings(settings);
builder.build(); builder.build();
explicit.Model modelExpl = builder.getModel(); explicit.Model modelExpl = builder.getModel();

Loading…
Cancel
Save