Package ch.hortis.sonar.service

Examples of ch.hortis.sonar.service.MeasureKey.clone()


      List<ProjectMeasure> measures = (List<ProjectMeasure>) entry.getValue();
      List<Double> values = getValues(measures);
      TendencyAnalyser analyser = new TendencyAnalyser(values, MAX_DAYS);
      Number[] slopeAndLevel = getSlopeAndLevel(analyser, key.getMetric());
      if (slopeAndLevel[0] != null && slopeAndLevel[1]!=null) {
        module.createTendency(((MeasureKey) key.clone()), (Double) slopeAndLevel[0], (Integer) slopeAndLevel[1], MAX_DAYS);
      }
    }
  }

  protected Number[] getSlopeAndLevel(TendencyAnalyser analyser, Metric metric) {
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.