Package com.crawljax.core.state

Examples of com.crawljax.core.state.StateFlowGraph


  /**
   * The general shutdown procedure without running plugins or using browsers.
   */
  private void shutdown(long timeCrawlCalc) {
    StateFlowGraph stateFlowGraph = this.getSession().getStateFlowGraph();
    for (Eventable c : stateFlowGraph.getAllEdges()) {
      LOGGER.info("Interaction Element= " + c.toString());
    }
    LOGGER.info("Total Crawling time(" + timeCrawlCalc + "ms) ~= "
            + formatRunningTime(timeCrawlCalc));
    LOGGER.info("EXAMINED ELEMENTS: " + elementChecker.numberOfExaminedElements());
    LOGGER.info("CLICKABLES: " + stateFlowGraph.getAllEdges().size());
    LOGGER.info("STATES: " + stateFlowGraph.getAllStates().size());
    LOGGER.info("Dom average size (byte): " + stateFlowGraph.getMeanStateStringSize());
    LOGGER.info("DONE!!!");
  }
View Full Code Here


   * Generated the report.
   */
  @Override
  public void postCrawling(CrawlSession session, ExitStatus exitStatus) {
    LOG.debug("postCrawling");
    StateFlowGraph sfg = session.getStateFlowGraph();
    result = outModelCache.close(session, exitStatus);
    outputBuilder.write(result, session.getConfig());
    StateWriter writer = new StateWriter(outputBuilder, sfg,
            ImmutableMap.copyOf(visitedStates));
    for (State state : result.getStates().values()) {
View Full Code Here

   * Generated the report.
   */
  @Override
  public void postCrawling(CrawlSession session, ExitStatus exitStatus) {
    LOG.debug("postCrawling");
    StateFlowGraph sfg = session.getStateFlowGraph();
    result = outModelCache.close(session, exitStatus);
    outputBuilder.write(result, session.getConfig());
    StateWriter writer = new StateWriter(outputBuilder, sfg,
            ImmutableMap.copyOf(visitedStates));
    for (State state : result.getStates().values()) {
View Full Code Here

                    this.getBrowser().getDom(), controller.getStrippedDom(this.getBrowser()));

    /**
     * Build the StateFlowGraph
     */
    StateFlowGraph stateFlowGraph = new StateFlowGraph(indexState);

    /**
     * Build the StateMachine
     */
    stateMachine =
View Full Code Here

  /**
   * The general shutdown procedure without running plugins or using browsers.
   */
  private void shutdown(long timeCrawlCalc) {
    StateFlowGraph stateFlowGraph = this.getSession().getStateFlowGraph();
    for (Eventable c : stateFlowGraph.getAllEdges()) {
      LOGGER.info("Interaction Element= " + c.toString());
    }
    LOGGER.info("Total Crawling time(" + timeCrawlCalc + "ms) ~= "
            + formatRunningTime(timeCrawlCalc));
    LOGGER.info("EXAMINED ELEMENTS: " + elementChecker.numberOfExaminedElements());
    LOGGER.info("CLICKABLES: " + stateFlowGraph.getAllEdges().size());
    LOGGER.info("STATES: " + stateFlowGraph.getAllStates().size());
    LOGGER.info("Dom average size (byte): " + stateFlowGraph.getMeanStateStringSize());
    LOGGER.info("DONE!!!");
  }
View Full Code Here

      LOGGER.info("Max time " + maxCrawlTime + " seconds passed!");
      /* stop crawling */
      return false;
    }
    StateFlowGraph graph = controller.getSession().getStateFlowGraph();
    int maxNumberOfStates =
            configurationReader.getCrawlSpecificationReader().getMaxNumberOfStates();
    if ((maxNumberOfStates != 0) && (graph.getAllStates().size() >= maxNumberOfStates)) {
      LOGGER.info("Max number of states " + maxNumberOfStates + " reached!");
      /* stop crawling */
      return false;
    }
    /* continue crawling */
 
View Full Code Here

TOP

Related Classes of com.crawljax.core.state.StateFlowGraph

Copyright © 2018 www.massapicom. 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.