Package com.exigen.ie.constrainer

Examples of com.exigen.ie.constrainer.IntExp


 
  /**
   * @return this + value
   */
  public javax.constraints.Var plus(int value) {
    IntExp myVar = (IntExp) getImpl();
    return new Var(getProblem(), myVar.add(value));
  }
View Full Code Here


  /**
   * @return this + var
   */
  public javax.constraints.Var plus(javax.constraints.Var var) {
    IntExp myVar = (IntExp) getImpl();
    return new Var(getProblem(),myVar.add((IntExp)var.getImpl()));
  }
View Full Code Here

  /**
   * @return this * value
   */
  public javax.constraints.Var multiply(int value) {
    IntExp myVar = (IntExp) getImpl();
    return new Var(getProblem(),myVar.mul(value));
  }
View Full Code Here

  /**
   * @return this * var
   */
  public javax.constraints.Var multiply(javax.constraints.Var var) {
    IntExp myVar = (IntExp) getImpl();
    return new Var(getProblem(),myVar.mul((IntExp)var.getImpl()));
  }
View Full Code Here

  /**
   * @return this / value
   */
  public javax.constraints.Var divide(int value) {
    IntExp myVar = (IntExp) getImpl();
    return new Var(getProblem(),myVar.div(value));
  }
View Full Code Here

    super(solver,"generate");
    this.vars = vars;
    Constrainer constrainer = getConstrainer();
    IntExpArray intvars = new IntExpArray(constrainer,vars.length);
    for(int i=0; i<vars.length; i++) {
      IntExp var = (IntExp)vars[i].getImpl();
      intvars.set(var, i);
    }
    nativeGoal = new GoalGenerate(intvars);
    setVars(vars);
  }
View Full Code Here

  /**
   * @return this / var
   */
  public javax.constraints.Var divide(javax.constraints.Var var) throws Exception {
    IntExp myVar = (IntExp) getImpl();
    return new Var(getProblem(),myVar.div((IntExp)var.getImpl()));
  }
View Full Code Here

  /**
   * @return -this
   */
  public javax.constraints.Var negative() {
    IntExp myVar = (IntExp) getImpl();
    return new Var(getProblem(),myVar.neg());
  }
View Full Code Here

  /**
   * @return an absolute value of this
   */
  public javax.constraints.Var abs() {
    IntExp myVar = (IntExp) getImpl();
    return new Var(getProblem(),myVar.abs());
  }
View Full Code Here

  /**
   * @return this * this
   */
  public javax.constraints.Var sqr() {
    IntExp myVar = (IntExp) getImpl();
    return new Var(getProblem(),myVar.sqr());
  }
View Full Code Here

TOP

Related Classes of com.exigen.ie.constrainer.IntExp

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.