hudson.plugins.cobertura.targets
Class CoverageAggregationRule

java.lang.Object
  extended by hudson.plugins.cobertura.targets.CoverageAggregationRule
All Implemented Interfaces:
Serializable

public class CoverageAggregationRule
extends Object
implements Serializable

Rules that determines how coverage ratio of children are aggregated into that of the parent.

Since:
22-Aug-2007 18:08:46
Author:
Stephen Connolly
See Also:
Serialized Form

Constructor Summary
CoverageAggregationRule(CoverageElement source, CoverageMetric input, CoverageAggregationMode mode, CoverageMetric output)
           
 
Method Summary
static Map<CoverageMetric,Ratio> aggregate(CoverageElement source, CoverageMetric input, Ratio inputResult, Map<CoverageMetric,Ratio> runningTotal)
           
static Ratio combine(CoverageMetric metric, Ratio existingResult, Ratio additionalResult)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CoverageAggregationRule

public CoverageAggregationRule(CoverageElement source,
                               CoverageMetric input,
                               CoverageAggregationMode mode,
                               CoverageMetric output)
Method Detail

aggregate

public static Map<CoverageMetric,Ratio> aggregate(CoverageElement source,
                                                  CoverageMetric input,
                                                  Ratio inputResult,
                                                  Map<CoverageMetric,Ratio> runningTotal)

combine

public static Ratio combine(CoverageMetric metric,
                            Ratio existingResult,
                            Ratio additionalResult)


Copyright © 2004-2012 Hudson. All Rights Reserved.