Examples of AvgCalculator


Examples of ch.hortis.sonar.core.service.AvgCalculator

    services.add(new SumCalculator(Metrics.PMD_DUPLICATED_LINES));
    services.add(new SumCalculator(Metrics.PMD_DUPLICATED_TOKENS));
    services.add(new SumCalculator(Metrics.PMD_DUPLICATION));
    services.add(new SumCalculator(Metrics.SUREFIRE_TESTS));
    services.add(new SumCalculator(Metrics.SUREFIRE_TIME));
    services.add(new AvgCalculator(Metrics.CYCLOMATIC_COMPLEXITY_AVG_CLASS, Metrics.CYCLOMATIC_COMPLEXITY, Metrics.NCSS_CLASSES));
    services.add(new AvgCalculator(Metrics.CYCLOMATIC_COMPLEXITY_AVG_FUNCTION, Metrics.CYCLOMATIC_COMPLEXITY, Metrics.NCSS_FUNCTIONS));
    services.add(new CodeCoverageCalculator());
    services.add(new RuleErrorsCountCalculator());
    services.add(new RuleWarningsCountCalculator());
    services.add(new ErrorRciCalculator());
    services.add(new WarningRciCalculator());
View Full Code Here

Examples of org.emftrace.quarc.core.aggregations.AvgCalculator

    final HashMap<TableColumn, AbstractCalculator> calculatorsColumnMap = new HashMap<TableColumn, AbstractCalculator>();
    calculators.put("max", new MaxCalculator(
        leafElements, builder.getCacheManager()));
    calculators.put("min", new MinCalculator(
        leafElements, builder.getCacheManager()));
    calculators.put("avg", new AvgCalculator(
        leafElements, builder.getCacheManager()));
    if (weightsIncluded) {
      calculators.put(
          "weighted max",
          new WeightedMaxCalculator(leafElements, builder
View Full Code Here

Examples of org.emftrace.quarc.core.aggregations.AvgCalculator

      ratingsString += "\n";
      calculators.put("max", new MaxCalculator(leafElementsGoalLayer,
          getCacheManager()));
      calculators.put("min", new MinCalculator(leafElementsGoalLayer,
          getCacheManager()));
      calculators.put("avg", new AvgCalculator(leafElementsGoalLayer,
          getCacheManager()));
      if (!getCacheManager().getSelectedGoals().isEmpty()) {
        calculators.put("weighted max", new WeightedMaxCalculator(
            leafElementsGoalLayer, getCacheManager()));
        calculators.put("weighted min", new WeightedMinCalculator(
            leafElementsGoalLayer, getCacheManager()));
        calculators.put("weighted avg", new WeightedAvgCalculator(
            leafElementsGoalLayer, getCacheManager()));
      }

      if (element instanceof SolutionInstrument) {
        calculators.put("max", new MaxCalculator(
            leafElementsPrincipleLayer, getCacheManager()));
        calculators.put("min", new MinCalculator(
            leafElementsPrincipleLayer, getCacheManager()));
        calculators.put("avg", new AvgCalculator(
            leafElementsPrincipleLayer, getCacheManager()));
        if (!getCacheManager().getSelectedPrinciples().isEmpty()) {
          calculators.put("weighted max", new WeightedMaxCalculator(
              leafElementsPrincipleLayer, getCacheManager()));
          calculators.put("weighted min", new WeightedMinCalculator(
View Full Code Here

Examples of org.emftrace.quarc.core.aggregations.AvgCalculator

    List<Element> goalList = new ArrayList<Element>();
    goalList.add(g1);
    goalList.add(g2);
   
   
    assertEquals(25.0f , new AvgCalculator(goalList, cacheManager).calcAggregation(si1));
  }
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.