Package org.somox.metrics.structure
Class SliceLayerArchitectureQuality
java.lang.Object
org.somox.metrics.abstractmetrics.AbstractMetric
org.somox.metrics.structure.SliceLayerArchitectureQuality
- All Implemented Interfaces:
IMetric
SliceLayerArchitectureQuality (SLAQ) metric
-
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
boolean
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
-
SliceLayerArchitectureQuality
public SliceLayerArchitectureQuality()
-
-
Method Details
-
internalComputeDirected
Template method to be implemented by subclasses to effectively compute the metric value- Specified by:
internalComputeDirected
in classAbstractMetric
- Parameters:
relationToCompute
- The relation to compute
-
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
-
getMID
Returns the Metric ID of the Metric- Returns:
- the metric id of the instance
-
isNormalised
public boolean isNormalised()- Returns:
- whether the metric is normalized. If it is normalized, values of this metric must be between 0.0 and 1.0.
-