Examples of stop()


Examples of edu.cmu.sphinx.util.Timer.stop()

        nodeToNextUnitArrayMap = new HashMap<GrammarNode, int[]>();
        nodeToUnitSetMap = new HashMap<GrammarNode, Set<Unit>>();
        Timer timer = TimerPool.getTimer(this, "compileGrammar");
        timer.start();
        compileGrammar();
        timer.stop();
        logger.info("Done allocating  DFLAT");
    }


    /** Allocates the acoustic model.
View Full Code Here

Examples of edu.csusm.cs671.auction.agent.AuctionAgent.stop()

        System.out.println("Type \"exit\" to stop the agent");
        System.out.println("Type \"status\" to agent's status");
      }
    }
   
    auctionAgent.stop();
    //Terminated
    System.out.println("Agent " +id + " Terminated");
    System.out.println("Final Stats");
    System.out.println(auctionAgent);
   
View Full Code Here

Examples of edu.csusm.cs671.auction.agent.AuctionAgentImpl.stop()

        System.out.println("Type \"exit\" to stop the agent");
        System.out.println("Type \"status\" to agent's status");
      }
    }
   
    auctionAgent.stop();
    //Terminated
    System.out.println("Agent " +id + " Terminated");
    System.out.println("Final Stats");
    System.out.println(auctionAgent);
   
View Full Code Here

Examples of edu.stanford.nlp.util.Timing.stop()

    List<DependencyTree> predicted = testSents.stream().map(this::predictInner).collect(toList());
    Map<String, Double> result = system.evaluate(testSents, predicted, testTrees);
    double lasNoPunc = result.get("LASwoPunc");
    System.err.printf("UAS = %.4f%n", result.get("UASwoPunc"));
    System.err.printf("LAS = %.4f%n", lasNoPunc);
    long millis = timer.stop();
    double wordspersec = numWords / (((double) millis) / 1000);
    double sentspersec = numSentences / (((double) millis) / 1000);
    System.err.printf("%s tagged %d words in %d sentences in %.1fs at %.1f w/s, %.1f sent/s.%n",
            StringUtils.getShortClassName(this), numWords, numSentences, millis / 1000.0, wordspersec, sentspersec);
View Full Code Here

Examples of edu.uci.ics.jung.algorithms.layout.util.Relaxer.stop()

     *
     */
    private void animateLayoutChanges() {
        if (!(layout instanceof CircleLayout)) {
            Relaxer relaxer = new VisRunner((IterativeContext) layout);
            relaxer.stop();
            relaxer.prerelax();
            StaticLayout<Object, Object> staticLayout = new StaticLayout<Object, Object>(g, layout);
            LayoutTransition<Object, Object> lt = new LayoutTransition<Object, Object>(vv, vv.getGraphLayout(),
                            staticLayout);
            Animator animator = new Animator(lt);
View Full Code Here

Examples of edu.uci.ics.jung.algorithms.layout.util.VisRunner.stop()

     *
     */
    private void animateLayoutChanges() {
        if (!(layout instanceof CircleLayout)) {
            Relaxer relaxer = new VisRunner((IterativeContext) layout);
            relaxer.stop();
            relaxer.prerelax();
            StaticLayout<Object, Object> staticLayout = new StaticLayout<Object, Object>(g, layout);
            LayoutTransition<Object, Object> lt = new LayoutTransition<Object, Object>(vv, vv.getGraphLayout(),
                            staticLayout);
            Animator animator = new Animator(lt);
View Full Code Here

Examples of edu.wpi.cs.wpisuitetng.network.dummyserver.DummyServer.stop()

      assertEquals(true, "OK".equalsIgnoreCase(manualRequest.getResponse().getStatusMessage()));
     
      assertTrue(body.equals(server.getLastReceived().getBody()));
      assertEquals(manualRequest.getHttpMethod(), server.getLastReceived().getHttpMethod());
     
      server.stop();
    } //TODO switch to https
    catch (InterruptedException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    }
View Full Code Here

Examples of er.extensions.concurrency.IERXStoppable.stop()

  }

  public WOActionResults stopTask() {
    IERXStoppable task = loopStopTask();
    if (task != null) {
      task.stop();
    } //~ if (task != null)
    return null;
  }
 
  /**
 
View Full Code Here

Examples of etch.util.core.nio.Tcp2Connection.stop()

    assertWhat( What.UP, dh.what );
    assertNull( dh.xsender );
    assertNull( dh.xbuf );
   
    assertTrue( c.isStarted() );
    c.stop();
    assertFalse( c.isStarted() );
   
    c.waitDown( TIMEOUT );
   
    assertWhat( What.DOWN, dh.what );
View Full Code Here

Examples of etch.util.core.nio.Tcp2Listener.stop()

  @Test
  public void stop1() throws Exception
  {
    // illegal state: not started.
    Tcp2Listener l = new Tcp2Listener( "tcp://0.0.0.0:0", r );
    l.stop();
  }

  /** @throws Exception */
  @Test
  public void start1() throws Exception
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.