ca.utoronto.JCVSReport.metric
Class BasicMetric

java.lang.Object
  extended byca.utoronto.JCVSReport.metric.BasicMetric
All Implemented Interfaces:
Metric
Direct Known Subclasses:
RegexMatchCounter

public abstract class BasicMetric
extends Object
implements Metric

Gather one metric from a revision of a file and add it to the Bloof database

Author:
David James

Field Summary
protected  String id
           
protected  PreparedStatement insertMetric
           
protected  ResourceBundle props
           
 
Constructor Summary
BasicMetric()
           
 
Method Summary
 void init(MetricDatabase database, String id, ResourceBundle props)
          Initialize Metric object from properties file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface ca.utoronto.JCVSReport.metric.Metric
processRevision
 

Field Detail

props

protected ResourceBundle props

id

protected String id

insertMetric

protected PreparedStatement insertMetric
Constructor Detail

BasicMetric

public BasicMetric()
Method Detail

init

public void init(MetricDatabase database,
                 String id,
                 ResourceBundle props)
          throws Exception
Initialize Metric object from properties file

Specified by:
init in interface Metric
Parameters:
database - Where to insert the metrics
id - The name of the metric
props - The properties of this metric as specified in the .properties file
Throws:
Exception


JCVSReport: Easy Progress Reports for CVS/Java Projects. By David James.