Examples of multiply()


Examples of org.jboss.ejb3.test.common.proxy.Multipliable.multiply()

      // Mix it up
      Multipliable newCalc = (Multipliable) ProxyUtils.mixinProxy(calc, new Class<?>[]
      {Multipliable.class}, handler);

      // Get the result from the service
      int result = newCalc.multiply(args);

      // Calculate the expected result (product of arguments)
      int expected = this.multiply(args);

      // Test
View Full Code Here

Examples of org.jemmy.Vector.multiply()

                Timeout moveTimeout = wrap.getEnvironment().getTimeout(Drag.IN_DRAG_TIMEOUT).clone();
                while((toOrig = condition.to()) != 0) {
                    Vector axis = getScrollVector().
                            multiply(toOrig).setLenght(dragDelta);
                    if (reverse) {
                        axis.multiply(-1);
                    }
                    Vector shift = axis.clone();
                    Wrap<?> knob = getKnob();
                    Point orig = new Point(knob.getScreenBounds().getX() + knob.getScreenBounds().getWidth()/2, knob.getScreenBounds().getY() + knob.getScreenBounds().getHeight()/2);
                    knob.mouse().move(knob.toLocal(orig.getLocation()));
View Full Code Here

Examples of org.joda.time.LocalDate.multiply()

            switch (ChargeCalculationType.fromInt(this.chargeCalculation)) {
                case INVALID:
                break;
                case FLAT:
                    if (isInstalmentFee()) {
                        this.amount = newValue.multiply(BigDecimal.valueOf(this.loan.repaymentScheduleDetail().getNumberOfRepayments()));
                    } else {
                        this.amount = newValue;
                    }
                    this.amountOutstanding = calculateOutstanding();
                break;
View Full Code Here

Examples of org.olat.ims.qti.container.Variable.multiply()

          if (action.equals("Add")) {
            var.add(varVal);
          } else if (action.equals("Subtract")) {
            var.subtract(varVal);
          } else if (action.equals("Multiply")) {
            var.multiply(varVal);
          } else if (action.equals("Divide")) {
            var.divide(varVal);
          }
        }
      }
View Full Code Here

Examples of org.opengis.filter.FilterFactory.multiply()

        String attribName = type.getDescriptor(0).getLocalName();
        SimpleFeatureCollection fc = DataUtilities.collection(roadFeatures);
        SimpleFeatureSource fs = DataUtilities.source(fc);

        try {
            expr = ff.multiply(ff.property(attribName), ff.property(attribName));
            expr2 = ff.add(expr, ff.literal(3));
        } catch (IllegalFilterException e) {
            fail(e.getMessage());
        }
View Full Code Here

Examples of org.pdfbox.util.Matrix.multiply()

        newMatrix.setValue(2, 0, e.floatValue());
        newMatrix.setValue(2, 1, f.floatValue());
   
        //this line has changed
        context.getGraphicsState().setCurrentTransformationMatrix(
                newMatrix.multiply( context.getGraphicsState().getCurrentTransformationMatrix() ) );

    }
}
View Full Code Here

Examples of org.spongycastle.math.ec.ECPoint.multiply()

        }
        // Compressed keys require you to know an extra bit of data about the y-coord as there are two possibilities.
        // So it's encoded in the recId.
        ECPoint R = decompressKey(x, (recId & 1) == 1);
        //   1.4. If nR != point at infinity, then do another iteration of Step 1 (callers responsibility).
        if (!R.multiply(n).isInfinity())
            return null;
        //   1.5. Compute e from M using Steps 2 and 3 of ECDSA signature verification.
        BigInteger e = new BigInteger(1, messageHash);
        //   1.6. For k from 1 to 2 do the following.   (loop is outside this function via iterating recId)
        //   1.6.1. Compute a candidate public key as:
View Full Code Here

Examples of ptolemy.data.ComplexToken.multiply()

            for (int j = 0; j < (_numberOfInputs - i); j++) {
                if (complex) {
                    ComplexToken conjugate = new ComplexToken(
                            ((ComplexToken) inputValues[j]).complexValue()
                                    .conjugate());
                    sum = sum.add(conjugate.multiply(inputValues[j + i]));
                } else {
                    sum = sum.add(inputValues[j].multiply(inputValues[j + i]));
                }
            }
View Full Code Here

Examples of ptolemy.data.ScalarToken.multiply()

                        } else {
                            throw new InterpreterException(
                                    "Unknown object types: expected Set and Collection.");
                        }
                    } else {
                        return a.multiply(b);
                    }
                } catch (Exception ex) {
                    throw new FunctionCallException("$mul", args[0], args[1],
                            ex);
                }
View Full Code Here

Examples of ptolemy.data.Token.multiply()

        for (int i = 0; i < multiply.getWidth(); i++) {
            if (multiply.hasToken(i)) {
                if (numerator == null) {
                    numerator = multiply.get(i);
                } else {
                    numerator = numerator.multiply(multiply.get(i));
                }
            }
        }

        Token denominator = null;
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.