org.sonar.core.consolidation
Class AbstractWeightedService

java.lang.Object
  extended by org.sonar.core.consolidation.AbstractService
      extended by org.sonar.core.consolidation.AbstractWeightedService
All Implemented Interfaces:
Service
Direct Known Subclasses:
WeightedClassComplexity, WeightedFileComplexity, WeightedFunctionComplexity

public abstract class AbstractWeightedService
extends AbstractService


Field Summary
 
Fields inherited from class org.sonar.core.consolidation.AbstractService
log
 
Constructor Summary
AbstractWeightedService(DaoFacade dao)
           
 
Method Summary
protected  double calculate(ProjectMeasure dividend, ProjectMeasure divisor)
           
 void execute(Node node)
           
protected abstract  Metric getDividendMetric()
           
protected abstract  Metric getDivisorMetric()
           
protected abstract  Metric getTargetMetric()
           
 boolean shouldExecuteOn(Node node)
           
 
Methods inherited from class org.sonar.core.consolidation.AbstractService
getDao, getMeasureKey, getMetric, getMetrics, init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractWeightedService

public AbstractWeightedService(DaoFacade dao)
Method Detail

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.