Examples of max()


Examples of com.exigen.ie.constrainer.IntExp.max()

    for(int i=0; i < vars.length; i++)
    {
      IntExp vari = vars[i];
      int maxi = max - (min_sum - vari.min());
      if (maxi < vari.max())
      {
        vari.setMax(maxi);
      }
    }
//    System.out.println("---- set max:" + max + " in " + this);
View Full Code Here

Examples of com.exigen.ie.constrainer.IntVar.max()

    else{
      for (int i=varCopy.min(); i < value; i++){
        if (varCopy.contains(i))
          decreaseUsageCounter(i);
      }
      for (int i=varCopy.max(); i > value; i--){
        if (varCopy.contains(i))
          decreaseUsageCounter(i);
      }
    }
    varCopy.setValue(value);
View Full Code Here

Examples of com.exigen.ie.constrainer.impl.IntEvent.max()

     int var_index = this.getIndex(e.exp());

     int type = e.type();

     int max  = e.max();
     int min  = e.min();


     if ((type &  EventOfInterestConstants.MIN) != 0)
     {
View Full Code Here

Examples of com.google.gerrit.reviewdb.client.RevId.max()

      return ChangeDataResultSet.patchSet(//
          dbProvider.get().patchSets().byRevision(id));

    } else {
      return ChangeDataResultSet.patchSet(//
          dbProvider.get().patchSets().byRevisionRange(id, id.max()));
    }
  }

  @Override
  public boolean hasChange() {
View Full Code Here

Examples of com.greentea.relaxation.jnmf.parameters.annotations.Parameter.max()

               continue;
            }

            String name = annotation.name();
            Object minValue = castValueToClass(annotation.min(), clazz);
            Object maxValue = castValueToClass(annotation.max(), clazz);

            Method getter = resolveGetter(subject.getClass(), field);
            Method setter = resolveSetter(subject.getClass(), field);

            String description = StringUtils.defaultString(annotation.description());
View Full Code Here

Examples of com.hpctoday.fada.integersolver.Solver.Max()

        Solver solver = SolverFactory.createSolver();
        solver.set(GetStmt2(),GetDeep(),__new_variables,__local_parameters,system);
        /*
         * cout<<"\n Solver = \n"; solver.Print();
         */
        Quast local__result = solver.Max();
        /*
         * cout<<"\n local = \n"; local__result.Print();
         */
        local__result.SubstituteByString(__mapping_counters_alphas);
        result = result.Max(local__result);
View Full Code Here

Examples of com.jengine.orm.model.cluster.Cluster.max()

        check( new Cluster("(Transaction << Book) >> Author_books, Author").restriction(0, "Transaction.book", "Book.id").fields("Transaction.id").select().list().equals(list(1l, 1l, 1l)) );
        Cluster cluster1 = new Cluster("Transaction << Book", list("Book.title"));
        check( cluster1.select().distinct("Book.title").order("Book.title").list().equals(list("The Dark Tower", "The Shining")) );
        check( cluster1.select().distinct("Book.title").order("Book.title", "DESC").page(0, 2).list().equals(list("The Shining", "The Dark Tower")));
        check( cluster1.select().distinct("Book.title").order("Book.title", "DESC").page(0, 1).list().equals(list("The Shining")));
        check( cluster1.<Long>max("Book.id") == 2l);
        check( cluster1.<Long>min("Transaction.id") == 1l);
        check( cluster1.<Double>avg("Transaction.id") == 2.0);
        check( cluster1.<Long>sum("Transaction.id") == 6);
        check( cluster1.count() == 3);
        check( cluster1.count("Book.id") == 3);
View Full Code Here

Examples of com.lambdaworks.redis.ZStoreArgs.max()

      switch (aggregate) {
        case MIN:
          args.min();
          break;
        case MAX:
          args.max();
          break;
        default:
          args.sum();
          break;
      }
View Full Code Here

Examples of com.metaparadigm.jsonrpc.ObjectMatch.max()

          }
          tmp = ser.tryUnmarshall(state, param[0], jso.get(field));
          if (m == null) {
            m = tmp;
          } else {
            m = m.max(tmp);
          }
        } catch (UnmarshallException e) {
          throw new UnmarshallException("bean " + clazz.getName() + " " + e.getMessage());
        }
      } else {
View Full Code Here

Examples of com.moesol.geoserver.sync.json.Sha1SyncJson.max()

    m_grouper.groupForLevel(1);
    Sha1SyncJson json = m_grouper.getJson();
   
    assertEquals(1, json.level());
    assertEquals(5, json.hashes().size());
    assertEquals(2, json.max());
  }
 
}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.