Package javax.constraints.impl.constraint

Examples of javax.constraints.impl.constraint.Cardinality


  /**
   * This method is similar to the one above but instead of �value�
   * the �cardinality(vars,cardValue)� is being constrained by �var�.
   */
  public Constraint postCardinality(Var[] vars, int cardValue, String oper, Var var) {
    Constraint c = add(new Cardinality(vars, cardValue, oper, var));
    c.post();
    return c;
  }
View Full Code Here


  /**
   * This method is similar to the one above but instead of �cardValue�
   * it uses "cardVar"
   */
  public Constraint postCardinality(Var[] vars, Var cardVar, String oper, Var var) {
    Constraint c = add(new Cardinality(vars, cardVar, oper, var));
    c.post();
    return c;
  }
View Full Code Here

  /**
   * This method is similar to the one above but instead of �var�
   * it uses "value"
   */
  public Constraint postCardinality(Var[] vars, Var cardVar, String oper, int value) {
    Constraint c = add(new Cardinality(vars, cardVar, oper, value));
    c.post();
    return c;
  }
View Full Code Here

TOP

Related Classes of javax.constraints.impl.constraint.Cardinality

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.