public abstract class AbstractMetric extends Object implements IMetric
| Constructor and Description |
|---|
AbstractMetric() |
| Modifier and Type | Method and Description |
|---|---|
void |
computeDirected(ClusteringRelation relationToCompute)
Computes the metric for the given clustering relation and stores the value in it
|
MetricTab |
getLaunchConfigurationTab()
Returns the GUI launch configuration tab that can be used to configure the metric.
|
ParameterDescriptor[] |
getMetricParameters()
The parameters needed by this metric for its computation.
|
void |
initialize(Root gastModel,
SoMoXConfiguration somoxConfiguration,
Map<MetricID,IMetric> allMetrics,
<any> accessGraph,
ComponentToImplementingClassesHelper componentToClassHelper)
Initializes the Metric.
|
abstract boolean |
isCommutative() |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetMID, isNormalisedpublic void computeDirected(ClusteringRelation relationToCompute)
IMetriccomputeDirected in interface IMetricpublic MetricTab getLaunchConfigurationTab()
IMetricgetLaunchConfigurationTab in interface IMetricpublic ParameterDescriptor[] getMetricParameters()
IMetricgetMetricParameters in interface IMetricpublic abstract boolean isCommutative()
isCommutative in interface IMetricpublic void initialize(Root gastModel, SoMoXConfiguration somoxConfiguration, Map<MetricID,IMetric> allMetrics, <any> accessGraph, ComponentToImplementingClassesHelper componentToClassHelper)
IMetricinitialize in interface IMetricgastModel - the Root object of the GAST modelsomoxConfiguration - the configuration of the metric computationallMetrics - A map of all metrics available in the running SoMoX instance, maps metricID to
Metric implementationaccessGraph - A graph which contains the number of accesses from the source GASTClass to the
target GASTClass for all edges in thecomponentToClassHelper - Helper initialized graph