Package solver.variables

Examples of solver.variables.Variable


    //***********************************************************************************


    @Override
    public void onContradiction(ContradictionException cex) {
        Variable curDecVar = solver.getSearchLoop().getLastDecision().getDecisionVariable();
        if (candidate == null && cIdx < k && !search(testingSet, 0, cIdx, curDecVar)) {
      boolean inScope = false;
      for(Variable v:mainStrategy.vars){
        if(v.getId()==curDecVar.getId()){
          inScope = true;
          break;
        }
      }if(inScope){
        candidate = curDecVar;
View Full Code Here


    }

    @Override
    public Decision getDecision() {
    if(active){
      Variable decVar = firstNotInst();
      if (decVar != null) {
        Decision d = mainStrategy.computeDecision(decVar);
        if(d != null){
          return d;
        }
View Full Code Here

    //***********************************************************************************


    @Override
    public void onContradiction(ContradictionException cex) {
        Variable curDecVar = solver.getSearchLoop().getLastDecision().getDecisionVariable();
    if(nbCV>0 && conflictingVariables[nbCV-1]==curDecVar)return;
    if(inScope(curDecVar)){
      if(nbCV<conflictingVariables.length){
        conflictingVariables[nbCV++] = curDecVar;
      }else{
View Full Code Here

    }

    @Override
    public void explain(Deduction d, Explanation e) {
        e.add(solver.getExplainer().getPropagatorActivation(this));
        Variable var = d.getVar();

        if (var.equals(x)) {
            // a deduction has been made on x ; this is related to y only
            y.explain(VariableState.DOM, e);
        } else if (var != null) {
            x.explain(VariableState.DOM, e);
        }
View Full Code Here

    }

    @Override
    public void explain(Deduction d, Explanation e) {
        e.add(solver.getExplainer().getPropagatorActivation(this));
        Variable var = d.getVar();
        if (var.equals(x)) {
            // a deduction has been made on x ; this is related to y only
            y.explain(VariableState.DOM, e);
        } else if (var != null) {
            x.explain(VariableState.DOM, e);
        }
View Full Code Here

TOP

Related Classes of solver.variables.Variable

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.