Browse Source

Re-factoring in multi-objective model checking.

git-svn-id: https://www.prismmodelchecker.org/svn/prism/prism/trunk@9468 bbc10eb1-c90d-0410-af57-cb519fbb1720
master
Dave Parker 11 years ago
parent
commit
4f30f4f774
  1. 12
      prism/src/prism/NondetModelChecker.java

12
prism/src/prism/NondetModelChecker.java

@ -262,8 +262,6 @@ public class NondetModelChecker extends NonProbModelChecker
List<Integer> multitargetIDs = null; List<Integer> multitargetIDs = null;
OpsAndBoundsList opsAndBounds; OpsAndBoundsList opsAndBounds;
// TODO this only stored prob vs reward objective anyway
// boolean[] reachExpr; // whether target is just reachability (true) or LTL (false)
// LTL/product model stuff // LTL/product model stuff
NondetModel modelProduct, modelNew; NondetModel modelProduct, modelNew;
JDDVars[] draDDRowVars, draDDColVars; JDDVars[] draDDRowVars, draDDColVars;
@ -507,7 +505,10 @@ public class NondetModelChecker extends NonProbModelChecker
} }
//takes one operand of multi-objective expression and extracts operator, values and reward functions from it.
/**
* Extract the information from the operator defining one objective of a multi-objective query,
* store the info in the passed in arrays and so some checks.
*/
protected void extractInfoFromMultiObjectiveOperand(Expression operand, OpsAndBoundsList opsAndBounds, List<JDDNode> rewardsIndex, List<String> targetName, protected void extractInfoFromMultiObjectiveOperand(Expression operand, OpsAndBoundsList opsAndBounds, List<JDDNode> rewardsIndex, List<String> targetName,
List<Expression> targetExprs) throws PrismException List<Expression> targetExprs) throws PrismException
{ {
@ -600,16 +601,11 @@ public class NondetModelChecker extends NonProbModelChecker
} }
// Now extract targets // Now extract targets
// Also store which ones are just reachability (in reachExpr)
if (exprProb != null) { if (exprProb != null) {
targetExprs.add(exprProb.getExpression()); targetExprs.add(exprProb.getExpression());
// TODO check if the following line is unneeded: it only kept track of probs vs rewards
// reachExpr[i] = false;
targetName.add(exprProb.getExpression().toString()); targetName.add(exprProb.getExpression().toString());
} else { } else {
targetExprs.add(null); targetExprs.add(null);
// TODO check if the following line is unneeded: it only kept track of probs vs rewards
// reachExpr[i] = true;
targetName.add(""); targetName.add("");
} }
} }

Loading…
Cancel
Save