|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cyvis.core.metrics.sources.MetricSource
public abstract class MetricSource
An object from which metrics can be extracted.
Nested Class Summary | |
---|---|
static class |
MetricSource.ProgressNotifier
This is a callback mechanism by which other classes can track the progress of a metrics collection run. |
static class |
MetricSource.UnreadableMetricSourceException
Thrown when a MetricSource cannot be read. |
static class |
MetricSource.UnsupportedMetricSourceException
Thrown when an unrecognised file extension is encountered. |
Constructor Summary | |
---|---|
MetricSource()
|
Method Summary | |
---|---|
void |
collect(ProjectMetric project)
Collects all available metrics from the source. |
abstract void |
collect(ProjectMetric project,
MetricSource.ProgressNotifier notifier)
Collects all available metrics from the source. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MetricSource()
Method Detail |
---|
public void collect(ProjectMetric project) throws IOException
project
- the ProjectMetric to which the collected metrics will be
ProjectMetric.add(cyvis.core.metrics.ClassMetric)
ed.
IOException
public abstract void collect(ProjectMetric project, MetricSource.ProgressNotifier notifier) throws IOException
project
- the ProjectMetric to which the collected metrics will be
ProjectMetric.add(cyvis.core.metrics.ClassMetric)
ed.notifier
- a ProgressNotifier whose callback methods are called to
indicate the progress of metric collection
IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |