Package javax.constraints

Examples of javax.constraints.Constraint


 
  /**
   * Posts and Returns a constraint: var1 "oper" var2
   */
  public Constraint post(Var var1, String oper, Var var2) {
    Constraint c = add(new Linear(var1, oper, var2));
    c.post();
    return c;
  }
View Full Code Here


  public Constraint linear(Var var1, String oper, Var var2) {
    return add(new Linear(var1, oper, var2));
  }

  public Constraint post(int[] array, Var[] vars, String oper, int value) {
    Constraint c = add(new Linear(array, vars, oper, value));
    c.post();
    return c;
  }
View Full Code Here

    c.post();
    return c;
  }
 
  public Constraint post(int[] array, Var[] vars, String oper, Var var) {
    Constraint c = add(new Linear(array, vars, oper, var));
    c.post();
    return c;
  }
View Full Code Here

    c.post();
    return c;
  }
 
  public Constraint post(Var[] vars, String oper, int value) {
    Constraint c = add(new Linear(vars, oper, value));
    c.post();
    return c;
  }
View Full Code Here

    c.post();
    return c;
  }
 
  public Constraint post(Var[] vars, String oper, Var var) {
    Constraint c = add(new Linear(vars, oper, var));
    c.post();
    return c;
  }
View Full Code Here

  public Constraint constraintVarNeqValue(Var var,int value) {
    return new Linear(var,"!=",value);
  }
 
  public Constraint postElement(int[] array, Var indexVar, String oper, int value) {
    Constraint c = add(new Element(array, indexVar, oper, value));
    c.post();
    return c;
  }
View Full Code Here

    c.post();
    return c;
  }
 
  public Constraint postElement(int[] array, Var indexVar, String oper, Var var) {
    Constraint c = add(new Element(array, indexVar, oper, var));
    c.post();
    return c;
  }
View Full Code Here

    c.post();
    return c;
  }
 
  public Constraint postElement(Var[] array, Var indexVar, String oper, int value) {
    Constraint c = add(new Element(array, indexVar, oper, value));
    c.post();
    return c;
  }
View Full Code Here

    c.post();
    return c;
  }
 
  public Constraint postElement(Var[] array, Var indexVar, String oper, Var var) {
    Constraint c = add(new Element(array, indexVar, oper, var));
    c.post();
    return c;
  }
View Full Code Here

   * an index into the "arrayOfSets".
   * @throws RuntimeException if the posting fails
   * @return a newly created constraint
   */
  public Constraint postElement(Set[] arrayOfSets, Var indexVar, String oper, VarSet setVar) {
    Constraint c = new ConstraintElementAtOnSets(setVar, arrayOfSets, indexVar);
    c.post();
    return c;
  }
View Full Code Here

TOP

Related Classes of javax.constraints.Constraint

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.