Examples of analyse()


Examples of com.analysis.control.AnaCrack.analyse()

        // 3. Create analyzer object
        AnaCrack aAnaCrack = new AnaCrack();

        // 4. do the anlysing and return the offers
        Collection<CrawlResultPackage> aAnaColl = aAnaCrack.analyse(
                aResultColl, /* The result collection from the crawler */
                50, /* Give me the x best offers */
                CraigslistAlgorithmEnum.BEST, /* To use algorithm */
                1, /* Lower control limit */
                1000 /* higher control limit */
 
View Full Code Here

Examples of com.analysis.control.AnaCrack.analyse()

        logger.info("Catch expected IllegalArgumentException");
        logger.info("Create AnaCrack class and give over nothing null and -1 ...");
        AnaCrack c = new AnaCrack();
       
        try{
            Collection<CrawlResultPackage> aColl=c.analyse(null, -1, null, -1, -1);
        } catch (IllegalArgumentException e){
            logger.info("Catch expected IllegalArgumentException exception");
            logger.info(e);
        }
View Full Code Here

Examples of com.analysis.control.AnaCrack.analyse()

        logger.info("Test Average");
       
        AnaCrack c = new AnaCrack();
       
        // ToDo try something lower then 10 Packages and you will receive an Exception
        Collection<CrawlResultPackage> aColl=c.analyse(AnaCrackTest.generateFakeColl(1, 10, 1), 10, CraigslistAlgorithmEnum.BEST, 1, 10);

        logger.debug(""+c.toString());
       
        assertTrue(c.getAverage() == 5);
    }
View Full Code Here

Examples of com.analysis.control.AnaCrack.analyse()

        logger.info("Test offers");
       
        AnaCrack c = new AnaCrack();
       
        // ToDo try something lower then 10 Packages and you will receive an Exception
        Collection<CrawlResultPackage> aColl=c.analyse(AnaCrackTest.generateFakeColl(1, 10, 1), 10, CraigslistAlgorithmEnum.BEST, 1, 10);

        logger.debug(""+c.toString());
       
        assertTrue(c.getOffers() == 9);
    }
View Full Code Here

Examples of com.analysis.control.AnaCrack.analyse()

        logger.info("Test min");
       
        AnaCrack c = new AnaCrack();
       
        // ToDo try something lower then 10 Packages and you will receive an Exception
        Collection<CrawlResultPackage> aColl=c.analyse(AnaCrackTest.generateFakeColl(1, 10, 1), 10, CraigslistAlgorithmEnum.BEST, 1, 10);

        logger.debug(""+c.toString());
       
        assertTrue(c.getMin() == 1);
    }
View Full Code Here

Examples of com.analysis.control.AnaCrack.analyse()

        logger.info("Test max");
       
        AnaCrack c = new AnaCrack();
       
        // ToDo try something lower then 10 Packages and you will receive an Exception
        Collection<CrawlResultPackage> aColl=c.analyse(AnaCrackTest.generateFakeColl(1, 10, 1), 10, CraigslistAlgorithmEnum.BEST, 1, 10);

        logger.debug(""+c.toString());
       
        assertTrue(c.getMax() == 9);
    }
View Full Code Here

Examples of com.analysis.control.AnaCrack.analyse()

        logger.info("Test median");
       
        AnaCrack c = new AnaCrack();
       
        // ToDo try something lower then 10 Packages and you will receive an Exception
        Collection<CrawlResultPackage> aColl=c.analyse(AnaCrackTest.generateFakeColl(1, 10, 1), 10, CraigslistAlgorithmEnum.BEST, 1, 10);

        logger.debug(""+c.toString());
       
        assertTrue(c.getMedian() == 5.0);
    }
View Full Code Here

Examples of com.analysis.control.AnaCrack.analyse()

        logger.info("Test Standard Deviation");
       
        AnaCrack c = new AnaCrack();
       
        // ToDo try something lower then 10 Packages and you will receive an Exception
        Collection<CrawlResultPackage> aColl=c.analyse(AnaCrackTest.generateFakeColl(1, 10, 1), 10, CraigslistAlgorithmEnum.BEST, 1, 10);

        logger.debug(""+c.toString());
       
        assertTrue(c.getStandardDeviation() == 2.7386127875258306);
    }
View Full Code Here

Examples of com.hp.hpl.jena.eyeball.repairtools.analysis.LiteralAnalysis.analyse()

          inspector.end( r );
         
          if( r.model().size() > 0 )
            { // New items were found to report; analyse and doctor them
            LiteralAnalysis litA = new LiteralAnalysis();
            litA.analyse( r, output, config );
            LiteralDoctor litD = new LiteralDoctor();
            litD.doctorModel( r.model(), output, config );
            }
      }
    }
View Full Code Here

Examples of com.sun.enterprise.tools.verifier.hk2.ModuleDependencyAnalyser.analyse()

            ModuleDefinition moduleDef = new MavenModuleDefinition(repo, location);
            ModuleDependencyAnalyser analyser = new ModuleDependencyAnalyser(moduleDef, repo);
            if (excludedPatterns!=null) {
                analyser.excludePatterns(excludedPatterns);
            }
            if (!analyser.analyse()) {
                String msg = "Missing dependency. See details below:\n" + analyser.getResultAsString();
                if (failOnVerificationError) {
                    throw new MojoExecutionException(msg);
                } else {
                    logger.logp(Level.WARNING, "DependencyAnalyserMojo", "execute", msg);
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.