ca.utoronto.JCVSReport.metric
Interface Metric

All Known Implementing Classes:
BasicMetric

public interface Metric

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

Author:
David James

Method Summary
 void init(MetricDatabase database, String id, ResourceBundle props)
          Initialize Metric from properties file
 void processRevision(String revisionId, String contents)
          Process the contents of a revision of a file with each metric
 

Method Detail

init

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

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

processRevision

public void processRevision(String revisionId,
                            String contents)
                     throws Exception
Process the contents of a revision of a file with each metric

Parameters:
revisionId - A unique ID for this revision of this file
contents - The contents of the file as a string
Throws:
Exception - if this revision cannot be processed


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