org.sonar.core.consolidation
Class AbstractWeightedService
java.lang.Object
org.sonar.core.consolidation.AbstractService
org.sonar.core.consolidation.AbstractWeightedService
- All Implemented Interfaces:
- Service
- Direct Known Subclasses:
- WeightedClassComplexity, WeightedFileComplexity, WeightedFunctionComplexity
public abstract class AbstractWeightedService
- extends AbstractService
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractWeightedService
public AbstractWeightedService(DaoFacade dao)
shouldExecuteOn
public boolean shouldExecuteOn(Node node)
getTargetMetric
protected abstract Metric getTargetMetric()
getDivisorMetric
protected abstract Metric getDivisorMetric()
getDividendMetric
protected abstract Metric getDividendMetric()
execute
public void execute(Node node)
calculate
protected double calculate(ProjectMeasure dividend,
ProjectMeasure divisor)
Copyright © 2007-2008 hortis. All Rights Reserved.