org.sonar.core.consolidation.statistics
Class WeightedDuplicatedLines

java.lang.Object
  extended by org.sonar.core.consolidation.AbstractService
      extended by org.sonar.core.consolidation.statistics.WeightedDuplicatedLines
All Implemented Interfaces:
Service

public class WeightedDuplicatedLines
extends AbstractService


Field Summary
 
Fields inherited from class org.sonar.core.consolidation.AbstractService
log
 
Constructor Summary
WeightedDuplicatedLines(DaoFacade dao)
           
 
Method Summary
protected  java.lang.Double calculate(java.lang.Double dividend, java.lang.Double divisor)
           
 void execute(Node node)
           
protected  Metric getDuplicatedLinesdMetric()
           
protected  Metric getNbCommentsMetric()
           
protected  Metric getNbLinesMetric()
           
protected  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

WeightedDuplicatedLines

public WeightedDuplicatedLines(DaoFacade dao)
Method Detail

shouldExecuteOn

public boolean shouldExecuteOn(Node node)

getTargetMetric

protected Metric getTargetMetric()

getNbLinesMetric

protected Metric getNbLinesMetric()

getNbCommentsMetric

protected Metric getNbCommentsMetric()

getDuplicatedLinesdMetric

protected Metric getDuplicatedLinesdMetric()

execute

public void execute(Node node)

calculate

protected java.lang.Double calculate(java.lang.Double dividend,
                                     java.lang.Double divisor)


Copyright © 2007-2008 hortis. All Rights Reserved.