Examples of reset()


Examples of cc.twittertools.index.LowerCaseEntityPreservingFilter.reset()

          if (!(o instanceof String)) {
              throw new IOException("Expected input to be chararray, but  got " + o.getClass().getName());
          }
          Tokenizer source = new WhitespaceTokenizer(Version.LUCENE_43, new StringReader((String)o));
          TokenStream tokenstream = new LowerCaseEntityPreservingFilter(source);
          tokenstream.reset();
          while (tokenstream.incrementToken()){
            String token = tokenstream.getAttribute(CharTermAttribute.class).toString();
            output.add(mTupleFactory.newTuple(token));
          }
          return output;
View Full Code Here

Examples of ch.ethz.vs.rowa.QueryFuture.reset()

        // TODO: start measurement
       
        middleware.executeQuery(id, qf, "1st client "+item+" QUERY execute");
        while(!qf.isDone()) { Thread.yield(); }
        qf.getResult();
        qf.reset();
       
        // TODO: end measurement
        // TODO: add if failed

        middleware.executeQuery(id, qf, "2nd client "+item+" QUERY execute");
View Full Code Here

Examples of ch.ethz.vs.rowa.UpdateFuture.reset()

        qf.reset();
       
        middleware.executeUpdate(id, uf, "1st client "+item+" UPDATE execute");
        while(!uf.isDone()) { Thread.yield(); }
        uf.getResult();
        uf.reset();
       
        middleware.executeQuery(id, qf, "3th client "+item+" QUERY execute");
        while(!qf.isDone()) { Thread.yield(); }
        qf.getResult();
        qf.reset();
View Full Code Here

Examples of ch.idsia.ai.agents.Agent.reset()

        options.setMaxAttempts(1);
        options.setVisualization(false);
        options.setMaxFPS(true);
        options.setLevelDifficulty(level);
        options.setPauseWorld(false);
        agent.reset();
        options.setAgent(agent);
        Evaluator evaluator = new Evaluator (options);
        EvaluationInfo result = evaluator.evaluate().get(0);
       // System.out.print(".");
        double score = result.computeDistancePassed();
View Full Code Here

Examples of ch.idsia.ai.agents.ai.LargeSRNAgent.reset()

        options.setMaxAttempts(1);
        options.setVisualization(false);
        options.setMaxFPS(true);
        options.setLevelDifficulty(level);
        options.setPauseWorld(false);
        agent.reset();
        options.setAgent(agent);
        Evaluator evaluator = new Evaluator (options);
        EvaluationInfo result = evaluator.evaluate().get(0);
       // System.out.print(".");
        double score = result.computeDistancePassed();
View Full Code Here

Examples of ch.idsia.ai.agents.human.HumanKeyboardAgent.reset()

    {
        if (!started)
        {
            started = true;
            Agent hka = new HumanKeyboardAgent();
            hka.reset();           
            mario = new MarioComponent(getWidth(), getHeight());
            setContentPane(mario);
            setFocusable(false);
            mario.setFocusCycleRoot(true);
View Full Code Here

Examples of ch.qos.logback.classic.LoggerContext.reset()

    }

    private void doFailsafeConfiguration() {
        // Not really failsafe, just less likely to fail
        final LoggerContext lc = (LoggerContext) LoggerFactory.getILoggerFactory();
        lc.reset();

        ConsoleAppender<ILoggingEvent> consoleAppender = new ConsoleAppender<ILoggingEvent>() {{
            setContext(lc);
            setTarget("System.err");
            setLayout(new PatternLayout() {{
View Full Code Here

Examples of ch.tatool.core.display.swing.status.StatusPanel.reset()

    // reset
    if (resetIds != null) {
      for (String id : resetIds) {
        StatusPanel panel = statusRegion.getStatusPanel(id);
        if (panel != null) {
          panel.reset();
        }
      }
    }
   
    // disable
View Full Code Here

Examples of client.net.sf.saxon.ce.event.SequenceOutputter.reset()

                used = list.size();
                state = ALL_READ;
            }
            // give unwanted stuff to the garbage collector
            savedXPathContext = null;
            seq.reset();
        }

    }

    /**
 
View Full Code Here

Examples of client.net.sf.saxon.ce.tree.linked.LinkedTreeBuilder.reset()

        commentStripper.open();
        rawDoc.copy(commentStripper, CopyOptions.ALL_NAMESPACES);
        commentStripper.close();

        DocumentImpl doc = (DocumentImpl)styleBuilder.getCurrentRoot();
        styleBuilder.reset();

        return doc;
    }

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.