Package csp.datatypes

Examples of csp.datatypes.IntegerDomainVariable


        Collections.sort(values);
        IntegerEnumeratedVariable aux = getNewEnumeratedDummy(values);
        dummyEnumeratedVars.add(aux);
        auxName = aux.getName();
      } else {
        IntegerDomainVariable aux = getNewDummyVariable(lowestVal,highestVal);
        dummyDomainVars.add(aux);
        auxName = aux.getName();
      }
      String cond = constraintToTailor(exp.getCondition());
      String expTrue = exp.getTrueExpression().accept(this);
      String expFalse = exp.getFalseExpression().accept(this);
      StringBuffer buff = new StringBuffer ();
View Full Code Here


    private IntegerEnumeratedVariable getNewEnumeratedDummy(ArrayList<Integer> values) {
      return new IntegerEnumeratedVariable(dummyVar+(dummyCounter++),values);
    }

    private IntegerDomainVariable getNewDummyVariable(int lowerBound, int upperBound) {
      return new IntegerDomainVariable(dummyVar+(dummyCounter++),lowerBound,upperBound);
    }
View Full Code Here

TOP

Related Classes of csp.datatypes.IntegerDomainVariable

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.