public class MetricProcedureConnectedComponents extends MetricProcedure
| Constructor and Description |
|---|
MetricProcedureConnectedComponents() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Integer |
calculate(ModelElement element,
Metric metric)
Calculates the metric procedure.
|
StronglyConnectedComponents<ModelElement> |
getConnectedComponents(MetricsEngine engine,
ModelElement element,
Metric metric)
Calculates the connected components for a model element.
|
evalBooleanExpression, evalElementSetExpression, evalExpression, evalSetExpression, getFilterAttributeProcessor, getMetaModel, getMetricsEngine, getModel, getRelationOrSet, isCompatiblepublic java.lang.Integer calculate(ModelElement element, Metric metric) throws SDMetricsException
calculate in class MetricProcedureelement - The model element for which to calculate the procedure.metric - The metric to calculate.SDMetricsException - Problem during the calculation of the metric.public StronglyConnectedComponents<ModelElement> getConnectedComponents(MetricsEngine engine, ModelElement element, Metric metric) throws SDMetricsException
engine - The metrics engine to calculate the connected componentselement - Model element for which to calculate the connected
componentsmetric - Metric that defines the connected componentsSDMetricsException - Problem during the calculation