Examples of simplify()


Examples of net.sf.saxon.instruct.Block.simplify()

            return sortedSequence;
        } else {
            Block body = new Block();
            compileChildren(exec, body, true);
            try {
                SortExpression sortedSequence =  new SortExpression(body.simplify(getStaticContext()), sortKeys);
                ExpressionTool.makeParentReferences(sortedSequence);
                return sortedSequence;
            } catch (XPathException e) {
                compileError(e);
                return null;
View Full Code Here

Examples of net.sf.saxon.instruct.Block.simplify()

        if (use==null) {
            Block body = new Block();
            compileChildren(exec, body, true);
            try {
                use = new Atomizer(body.simplify(getStaticContext()));
            } catch (XPathException e) {
                compileError(e);
            }

            try {
View Full Code Here

Examples of net.sf.saxon.instruct.Block.simplify()

            try {
                if (test.effectiveBooleanValue(null)) {
                    Block block = new Block();
                    block.setLocationId(allocateLocationId(getSystemId(), getLineNumber()));
                    compileChildren(exec, block, true);
                    return block.simplify(getStaticContext());
                } else {
                    return null;
                }
            } catch (XPathException err) {
                // can't happen, but if it does then we'll fall through to non-optimizing case
View Full Code Here

Examples of net.sf.saxon.sort.Reverser.simplify()

    * Simplify and validate.
    */

     public Expression simplify(StaticContext env) throws XPathException {
        Reverser a = new Reverser(argument[0]);
        return a.simplify(env);
    }

}


View Full Code Here

Examples of org.broadinstitute.gatk.utils.sam.GATKSAMRecord.simplify()

        for ( final ReadTransformer transformer : readTransformers ) {
            workingRead = transformer.apply(workingRead);
        }

        if ( simplifyReads ) workingRead = workingRead.simplify();

        return workingRead;
    }

    /**
 
View Full Code Here

Examples of org.pdf4j.saxon.expr.ExpressionVisitor.simplify()

            }

            try {

                ExpressionVisitor visitor = makeExpressionVisitor();
                body = visitor.simplify(body);
                if (getConfiguration().isCompileWithTracing()) {
                    TraceWrapper trace = new TraceInstruction(body, this);
                    trace.setLocationId(allocateLocationId(getSystemId(), getLineNumber()));
                    trace.setContainer(procedure);
                    body = trace;
View Full Code Here

Examples of org.sbml.jsbml.UnitDefinition.simplify()

    // u.setOffset(-271.15);
    ud.addUnit(u);
    ud.addUnit(new Unit(Unit.Kind.NEWTON, 2, level, version));
    ud.addUnit(new Unit(Unit.Kind.GRAM, 0, level, version));
    System.out.println("Initial unit:\t\t" + UnitDefinition.printUnits(ud, true));
    System.out.println("Simplified unit:\t" + UnitDefinition.printUnits(ud.simplify(), true));
    ud.convertToSIUnits();
    System.out.println("SI units:\t\t" + UnitDefinition.printUnits(ud,true));
//
//    // AMPERE CELSIUS GRAM NEWTON SIEMENS VOLT WEBER
//    // A °C^3 1 N^2 S^4 V^2 1
View Full Code Here

Examples of org.sbml.jsbml.UnitDefinition.simplify()

    ud2.addUnit(new Unit(Unit.Kind.JOULE, 5, level, version));
    ud2.addUnit(new Unit(Unit.Kind.MOLE, 5, level, version));
   
    System.out.printf("\n%s / %s\t=\t", UnitDefinition.printUnits(ud, true), UnitDefinition.printUnits(ud2, true));
    ud.divideBy(ud2);
    ud.simplify();
    System.out.println(UnitDefinition.printUnits(ud, true));
   
    ud = new UnitDefinition(level, version);
    ud.addUnit(new Unit(-3, Unit.Kind.MOLE, 2, level, version));
    ud.addUnit(new Unit(-3, Unit.Kind.LITRE, -2, level, version));
View Full Code Here

Examples of org.sbml.jsbml.UnitDefinition.simplify()

    ud2.addUnit(new Unit(-3, Unit.Kind.LITRE, -1, level, version));
   
    System.out.printf("\n%s * %s\t=\t", UnitDefinition.printUnits(ud, true), UnitDefinition.printUnits(ud2, true));
   
    ud.multiplyWith(ud2);
    ud.simplify();
    System.out.println(UnitDefinition.printUnits(ud, true));
   
    ud = new UnitDefinition(level, version);
    ud.addUnit(new Unit(18, Unit.Kind.JOULE, 6, level, version));
    ud2 = new UnitDefinition(level, version);
View Full Code Here

Examples of org.sbml.jsbml.UnitDefinition.simplify()

    ud2 = new UnitDefinition(level, version);
    ud2.addUnit(new Unit(-3, Unit.Kind.MOLE, -6, level, version));
   
    System.out.printf("\n%s / %s\t=\t", UnitDefinition.printUnits(ud, true), UnitDefinition.printUnits(ud2, true));
    ud.divideBy(ud2);
    ud.simplify();
    System.out.println(UnitDefinition.printUnits(ud, true));
   
    ud = new UnitDefinition(level, version);
    ud.addUnit(new Unit(18, Unit.Kind.JOULE, 6, level, version));
    ud.addUnit(new Unit(-3, Unit.Kind.MOLE, -6, level, version));
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.