Package org.somox.metrics.basic
Class ExternalAccessesCount
java.lang.Object
org.somox.metrics.abstractmetrics.AbstractMetric
org.somox.metrics.abstractmetrics.AbstractCountingMetric
org.somox.metrics.basic.ExternalAccessesCount
- All Implemented Interfaces:
IMetric
Counts accesses from component1 to all classes besides those of component1
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the GUI launch configuration tab that can be used to configure the metric.getMID()
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, getMetric, getMetricParameters, initialize
-
Field Details
-
METRIC_ID
-
-
Constructor Details
-
ExternalAccessesCount
public ExternalAccessesCount()
-
-
Method Details
-
getLaunchConfigurationTab
Returns the GUI launch configuration tab that can be used to configure the metric. Override if the metric supplies a tab- Specified by:
getLaunchConfigurationTab
in interfaceIMetric
- Overrides:
getLaunchConfigurationTab
in classAbstractMetric
-
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
-