|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ca.utoronto.JCVSReport.metric.MetricSet
MetricSet: Gather a set of metric from a revision of a file and add it to the Bloof database
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 |
public MetricSet(MetricDatabase database)
database
- The database we should updateMethod Detail |
public static String metricTitle(String metricName)
metricName
- the name of the metricpublic void addMetric(String metricName) throws Exception
metricName
- The metric we want to add
Exception
- if any of the metrics cannot be loadedpublic void processRevision(String revisionId, String contents) throws Exception
revisionId
- A unique ID for this revision of this filecontents
- The contents of the file as a string
Exception
- if this revision cannot be processed
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |