Examples of realValue()


Examples of condor.classad.Constant.realValue()

        if (exprType == Expr.INTEGER) {
            return new Integer(co.intValue()); // Integer Value
        } else if (exprType == Expr.BOOLEAN) {
            return new Boolean(co.isTrue()); // Boolean Value
        } else if (exprType == Expr.REAL) {
            return new Double(co.realValue()); // Real Value
        } else if (exprType == Expr.STRING) {
            return co.stringValue(); // String Value
        } else {
            throw new IllegalArgumentException(attrName + ": unexpected type found.");
        }
View Full Code Here

Examples of condor.classad.Constant.realValue()

                    return new Boolean(co.isTrue()); // Boolean Value
                } catch (Throwable ex) {
                    throw new Exception("wrong type (expected type: boolean)");
                }
            } else if (exprType == Expr.REAL) {
                return new Double(co.realValue()); // Real Value
            } else if (exprType == Expr.STRING) {
                String result = co.stringValue();

                if (result != null) {
                    if (result.startsWith("\"") && result.endsWith("\"")) {
View Full Code Here

Examples of org.tmatesoft.sqljet.core.internal.ISqlJetVdbeMem.realValue()

     */
    public double getRealField(int field) {
        final ISqlJetVdbeMem f = fields.get(field);
        if (null == f)
            return 0;
        return f.realValue();
    }

    /**
     * Assuming the record contains N fields, the record format looks like this:
     *
 
View Full Code Here

Examples of org.tmatesoft.sqljet.core.internal.ISqlJetVdbeMem.realValue()

            return null;
        switch (value.getType()) {
        case INTEGER:
            return value.intValue();
        case FLOAT:
            return value.realValue();
        case TEXT:
            return SqlJetUtility.toString(value.valueText(getEncoding()), getEncoding());
        case BLOB:
            return value.valueBlob();
        case NULL:
View Full Code Here

Examples of org.tmatesoft.sqljet.core.internal.ISqlJetVdbeMem.realValue()

     */
    public double getFloat(int field) throws SqlJetException {
        final ISqlJetVdbeMem value = getValueMem(field);
        if (value == null || value.isNull())
            return 0;
        return value.realValue();
    }

    /*
     * (non-Javadoc)
     *
 
View Full Code Here

Examples of r.data.RComplex.Complex.realValue()

            }

            @Override
            public Complex getComplex(int i) {
                Complex acmp = a.getComplex(i);
                double areal = acmp.realValue();
                double aimag = acmp.imagValue();
                if (!arithIsNA && !RComplexUtils.arithEitherIsNA(areal, aimag)) {
                    return arit.opComplex(ast, areal, aimag, breal, bimag);
                } else {
                    return RComplex.COMPLEX_BOXED_NA;
View Full Code Here

Examples of r.data.RComplex.Complex.realValue()

            }

            @Override
            public Complex getComplex(int i) {
                Complex bcmp = b.getComplex(i);
                double breal = bcmp.realValue();
                double bimag = bcmp.imagValue();
                if (!arithIsNA && !RComplexUtils.arithEitherIsNA(breal, bimag)) {
                    return arit.opComplex(ast, areal, aimag, breal, bimag);
                } else {
                    return RComplex.COMPLEX_BOXED_NA;
View Full Code Here

Examples of r.data.RComplex.Complex.realValue()

                    // scalars
                    Complex acomp = a.getComplex(0);
                    Complex bcomp = b.getComplex(0);
                    Complex res = arit.opComplexCheckingNA(ast, acomp.realValue(), acomp.imagValue(), bcomp.realValue(), bcomp.imagValue());
                    // FIXME: it may really be worth having Complex == ScalarComplexImpl
                    return RComplex.RComplexFactory.getScalar(res.realValue(), res.imagValue(), dim, names, attributes);
                }
            } else if (nb == 1) {
                Complex bcomp = b.getComplex(0);
                return arit.opComplexImplScalarCheckingNA(ast, (ComplexImpl) a.materialize(), bcomp.realValue(), bcomp.imagValue(), na, dim, names, attributes);
            } else if (na == 1) {
View Full Code Here

Examples of r.data.RComplex.Complex.realValue()

                    // FIXME: it may really be worth having Complex == ScalarComplexImpl
                    return RComplex.RComplexFactory.getScalar(res.realValue(), res.imagValue(), dim, names, attributes);
                }
            } else if (nb == 1) {
                Complex bcomp = b.getComplex(0);
                return arit.opComplexImplScalarCheckingNA(ast, (ComplexImpl) a.materialize(), bcomp.realValue(), bcomp.imagValue(), na, dim, names, attributes);
            } else if (na == 1) {
                Complex acomp = a.getComplex(0);
                return arit.opScalarComplexImplCheckingNA(ast, acomp.realValue(), acomp.imagValue(), (ComplexImpl) b.materialize(), nb, dim, names, attributes);
            } else {
                int n = resultSize(ast, na, nb);
View Full Code Here

Examples of r.data.RComplex.Complex.realValue()

            } else if (nb == 1) {
                Complex bcomp = b.getComplex(0);
                return arit.opComplexImplScalarCheckingNA(ast, (ComplexImpl) a.materialize(), bcomp.realValue(), bcomp.imagValue(), na, dim, names, attributes);
            } else if (na == 1) {
                Complex acomp = a.getComplex(0);
                return arit.opScalarComplexImplCheckingNA(ast, acomp.realValue(), acomp.imagValue(), (ComplexImpl) b.materialize(), nb, dim, names, attributes);
            } else {
                int n = resultSize(ast, na, nb);
                if (n == na) {
                    return arit.opComplexImplASized(ast, (ComplexImpl) a.materialize(), (ComplexImpl) b.materialize(), n, nb, dim, names, attributes);
                } else {
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.