Examples of min()


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

    IntExp[] vars = _vars.data();

    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);
      }
    }
View Full Code Here

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

  public void arrayElementValue(int value, int idx) throws Failure{
    IntVar varCopy = (IntVar)copyOfAry.get(idx);
    if ( (value < _element.min()) || (value > _element.max()) )
      _index.removeValue(idx);
    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))
View Full Code Here

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

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

     int type = e.type();

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


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

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

               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);
View Full Code Here

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

        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);
//        check( cluster1.<Long>calc("%s + 10", "Transaction.id") > 0);
View Full Code Here

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

    ZStoreArgs args = new ZStoreArgs();

    if (aggregate != null) {
      switch (aggregate) {
        case MIN:
          args.min();
          break;
        case MAX:
          args.max();
          break;
        default:
View Full Code Here

Examples of com.pholser.junit.quickcheck.generator.InRange.min()

        return asList(new Date(first.getTime()), new Date(second.getTime()), new Date(third.getTime()));
    }

    @Override protected Map<Class<? extends Annotation>, Annotation> configurations() {
        InRange range = mock(InRange.class);
        when(range.min()).thenReturn("1/1/500");
        when(range.max()).thenReturn("12/31/2020");
        when(range.format()).thenReturn("MM/dd/yyyy");
        return Collections.<Class<? extends Annotation>, Annotation> singletonMap(InRange.class, range);
    }
View Full Code Here

Examples of com.sk89q.intake.Command.min()

    @Override
    public boolean preInvoke(Object object, Method method, ParameterData[] parameters, Object[] args, CommandContext context, CommandLocals locals) throws ParameterException {
        Command annotation = method.getAnnotation(Command.class);
       
        if (annotation != null) {
            if (context.argsLength() < annotation.min()) {
                throw new MissingParameterException();
            }
   
            if (annotation.max() != -1 && context.argsLength() > annotation.max()) {
                throw new UnconsumedParameterException(context.getRemainingString(annotation.max()));
View Full Code Here

Examples of com.sk89q.intake.parametric.annotation.Range.min()

    private static void validate(double number, Annotation[] modifiers)
            throws ParameterException {
        for (Annotation modifier : modifiers) {
            if (modifier instanceof Range) {
                Range range = (Range) modifier;
                if (number < range.min()) {
                    throw new ParameterException(
                            String.format(
                                    "A valid value is greater than or equal to %s " +
                                    "(you entered %s)", range.min(), number));
                } else if (number > range.max()) {
View Full Code Here

Examples of com.sk89q.minecraft.util.commands.Command.min()

            ParameterData[] parameters, Object[] args, CommandContext context)
            throws ParameterException {
        Command annotation = method.getAnnotation(Command.class);
       
        if (annotation != null) {
            if (context.argsLength() < annotation.min()) {
                throw new MissingParameterException();
            }
   
            if (annotation.max() != -1 && context.argsLength() > annotation.max()) {
                throw new UnconsumedParameterException(
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.