Package org.somox.metrics.ratio
Class Coupling
- All Implemented Interfaces:
IMetric
Coupling metric
Efferent coupling (Ce): The number of types inside this assembly that depends
on types outside this assembly. High efferent coupling indicates that the
concerned assembly is dependant. Notice that types declared in framework
assemblies are taken into account. see
http://www.ndepend.com/Metrics.aspx#EfferentCoupling
Here it is the ratio of the number of accesses between the two component
candidates to the total number of accesses
-
Field Summary
-
Constructor Summary
-
Method Summary
Methods inherited from class org.somox.metrics.abstractmetrics.AbstractRatioMetric
getChildMetrics, getCompositionFunction, isCommutative, isNormalised
Methods inherited from class org.somox.metrics.abstractmetrics.AbstractComposedMetric
getAllChildMetrics, initialize, internalComputeDirected, metricIDToIMetric
Methods inherited from class org.somox.metrics.abstractmetrics.AbstractMetric
calculateUnion, calculateUnion, checkMetricPostCondition, checkMetricPreCondition, computeDirected, getAccessGraphCache, getComponentToClassHelper, getLaunchConfigurationTab, getMetric, getMetricParameters
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.somox.metrics.IMetric
computeDirected, getLaunchConfigurationTab, getMetricParameters, initialize
-
Field Details
-
METRIC_ID
-
-
Constructor Details
-
Coupling
public Coupling()
-
-
Method Details
-
getMID
Returns the Metric ID of the Metric- Returns:
- the metric id of the instance
-
getNumeratorMetricID
- Specified by:
getNumeratorMetricID
in classAbstractRatioMetric
-
getDenominatorMetricID
- Specified by:
getDenominatorMetricID
in classAbstractRatioMetric
-