Examples of iterate()


Examples of com.volantis.mcs.dom2theme.impl.model.PseudoStylePath.iterate()

        PseudoStylePath path = PseudoStylePath.EMPTY_PATH
                .addPseudoElement(pseudoElementMock)
                .addPseudoClassSet(pseudoClassSetMock);

        path.iterate(pseudoStyleEntityIterateeMock);
    }

    /**
     * Test that the iterate method can break out of the iteration midway.
     */
 
View Full Code Here

Examples of com.volantis.styling.impl.sheet.StylerIterator.iterate()

        //   Test Expectations
        // =====================================================================
        StylerIterator iterator = createStylerIterator(
                stylerMock1, stylerMock2);
        assertEquals("Action", IterationAction.BREAK,
                     iterator.iterate(iterateeMock));
    }

    /**
     * Test that when the first iterator returns continue the iteration
     * carries onto the next iterator.
View Full Code Here

Examples of com.ximpleware.AutoPilot.iterate()

        List<AgigaToken> agigaTokens = new ArrayList<AgigaToken>();
       
        // Loop through each token
        AutoPilot tokAp = new AutoPilot(vn);
        tokAp.selectElement(AgigaConstants.TOKEN);
        while (tokAp.iterate()) {
            // Just double check that the tokens are in order
            if (tokId < 0) {
                tokId = vn.parseInt(vn.getAttrVal(AgigaConstants.TOKEN_ID));
            }
            require (vn.parseInt(vn.getAttrVal(AgigaConstants.TOKEN_ID)) == tokId);
View Full Code Here

Examples of danirod.fractal.Fractal.iterate()

        Fractal fractal = new Fractal();
        Random rnd = new Random();
        long seed = rnd.nextLong();
        fractal.init(seed, 0, 0);
        for(int i = 0; i < 8; i++)
            fractal.iterate();
       
        FractalFrame ff = new FractalFrame(fractal);
        ff.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
        ff.setVisible(true);
    }
View Full Code Here

Examples of de.lmu.ifi.dbs.elki.math.linearalgebra.fitting.LevenbergMarquardtMethod.iterate()

    }
    double[] params = { mean, stddevq, 1 };
    boolean[] dofit = { true, true, false };
    LevenbergMarquardtMethod fit = new LevenbergMarquardtMethod(new GaussianFittingFunction(), params, dofit, testx, testy, s);
    for(int i = 0; i < 50; i++) {
      fit.iterate();
    }
    double[] ps = fit.getParams();
    // compare results.
    double[] should = { 0.152986763079, 1.00115077, 1 };
    assertEquals("Mean doesn't match.", should[0], ps[0], 0.0001);
View Full Code Here

Examples of groovyx.gaelyk.query.QueryBuilder.iterate()

     *            the Closure<?> representing the query to execute
     * @return the iterator over the results
     */
    public static Object iterate(DatastoreService service, @DelegatesTo(value = QueryBuilder.class, strategy = Closure.DELEGATE_FIRST) Closure<?> c) {
        QueryBuilder builder = build(service, c);
        return builder.iterate();
    }

    /**
     * Adds an <code>unindexed</code> property to entities to wrap entities,
     * so as to set unindexed properties on the entity.
View Full Code Here

Examples of jmprojection.CDA.iterate()

      numComponents = yAxisDimension;

    // Scale data and do CDA
    Preprocess.scaleToUnityVariance(rawData);
    CDA cdaProj = new CDA(rawData);
    cdaProj.iterate(100);

    if (status == TaskStatus.CANCELED)
      return;

    double[][] result = cdaProj.getState();
View Full Code Here

Examples of jmprojection.Sammons.iterate()

    Preprocess.scaleToUnityVariance(rawData);
    Sammons sammonsProj = new Sammons(rawData);

    projectionStatus = sammonsProj.getProjectionStatus();

    sammonsProj.iterate(100);

    if (status == TaskStatus.CANCELED)
      return;

    double[][] result = sammonsProj.getState();
View Full Code Here

Examples of net.sf.hibernate.Query.iterate()

        if (!enabled) return;

        try {
            if (pmgr != null) {
                Query query = pmgr.createQuery("select from YLogIdentifier where case_id=" + caseid);
                for (Iterator it = query.iterate(); it.hasNext();) {
                    YLogIdentifier logid = (YLogIdentifier) it.next();
                }
            }
        } catch (Exception e) {
            e.printStackTrace();
View Full Code Here

Examples of net.sf.jpluck.xml.ContextAdapter.iterate()

        }

        ContextAdapter ctx = new ContextAdapter(document.getElement());

        List categoryList = new ArrayList();
        for (Iterator it = ctx.iterate("category"); it.hasNext();) {
            categoryList.add((String) it.next());
        }
        categories = (String[]) categoryList.toArray(new String[categoryList.size()]);
        if (categories.length > 0) {
            categoryText.setText(categories[0]);
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.