Archived
0

implement limit by time for crawler specification

This commit is contained in:
iMoHax
2015-11-20 16:10:59 +03:00
parent b805722edc
commit b0ef280c8f
11 changed files with 479 additions and 123 deletions

View File

@@ -199,7 +199,7 @@ public class CrawlerSpecificatorTest extends Assert{
VendorsCrawlerSpecification spec = specificator.build(vendors, edges -> {paths.add(RouteSearcher.toRoute(edges, vGraph.getScorer()));});
Crawler<Vendor> crawler = vGraph.crawler(spec, new AnalysisCallBack());
crawler.setMaxSize(7);
crawler.setMaxSize(spec.getMinLands());
crawler.findMin(ithaca_st, 10);
assertEquals(10, paths.size());
for (Route path : paths) {