Package org.somox.metrics.basic
Class EfferentCoupling
java.lang.Object
org.somox.metrics.abstractmetrics.AbstractMetric
org.somox.metrics.abstractmetrics.AbstractCountingMetric
org.somox.metrics.basic.EfferentCoupling
- All Implemented Interfaces:
IMetric
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. see
http://www.ndepend.com/Metrics.aspx#EfferentCoupling
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetMID()
Returns the Metric ID of the Metricprotected void
internalComputeDirected
(ClusteringRelation relationToCompute) Template method to be implemented by subclasses to effectively compute the metric valueboolean
Methods inherited from class org.somox.metrics.abstractmetrics.AbstractCountingMetric
isNormalised
Methods inherited from class org.somox.metrics.abstractmetrics.AbstractMetric
calculateUnion, calculateUnion, checkMetricPostCondition, checkMetricPreCondition, computeDirected, getAccessGraphCache, getComponentToClassHelper, getLaunchConfigurationTab, getMetric, getMetricParameters, initialize
-
Field Details
-
METRIC_ID
-
-
Constructor Details
-
EfferentCoupling
public EfferentCoupling()
-
-
Method Details
-
internalComputeDirected
Description copied from class:AbstractMetric
Template method to be implemented by subclasses to effectively compute the metric value- Specified by:
internalComputeDirected
in classAbstractMetric
- Parameters:
relationToCompute
- The relation to compute
-
getMID
Description copied from interface:IMetric
Returns the Metric ID of the Metric- Returns:
- the metric id of the instance
-
isCommutative
public boolean isCommutative()- Specified by:
isCommutative
in interfaceIMetric
- Specified by:
isCommutative
in classAbstractMetric
- Returns:
- true if the metric gives the same result if firstComponent and secondComponent are swapped
-