ca.utoronto.JCVSReport.metric
Class MetricSet

java.lang.Object
  extended byca.utoronto.JCVSReport.metric.MetricSet

public class MetricSet
extends Object

MetricSet: Gather a set of metric from a revision of a file and add it to the Bloof database

Author:
David James

Constructor Summary
MetricSet(MetricDatabase database)
          Initialize our set of Metrics
 
Method Summary
 void addMetric(String metricName)
          Add a metric to this metricSet
static String metricTitle(String metricName)
          Get the title of a particular metric
 void processRevision(String revisionId, String contents)
          Process the contents of a revision of a file with each metric
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetricSet

public MetricSet(MetricDatabase database)
Initialize our set of Metrics

Parameters:
database - The database we should update
Method Detail

metricTitle

public static String metricTitle(String metricName)
Get the title of a particular metric

Parameters:
metricName - the name of the metric

addMetric

public void addMetric(String metricName)
               throws Exception
Add a metric to this metricSet

Parameters:
metricName - The metric we want to add
Throws:
Exception - if any of the metrics cannot be loaded

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.