Class ExternalAccessesCount

All Implemented Interfaces:
IMetric

public class ExternalAccessesCount extends AbstractCountingMetric
Counts accesses from component1 to all classes besides those of component1
  • Field Details

    • METRIC_ID

      public static final MetricID METRIC_ID
  • Constructor Details

    • ExternalAccessesCount

      public ExternalAccessesCount()
  • Method Details

    • getLaunchConfigurationTab

      public MetricTab 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 interface IMetric
      Overrides:
      getLaunchConfigurationTab in class AbstractMetric
    • internalComputeDirected

      protected void internalComputeDirected(ClusteringRelation relationToCompute)
      Description copied from class: AbstractMetric
      Template method to be implemented by subclasses to effectively compute the metric value
      Specified by:
      internalComputeDirected in class AbstractMetric
      Parameters:
      relationToCompute - The relation to compute
    • getMID

      public MetricID 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 interface IMetric
      Specified by:
      isCommutative in class AbstractMetric
      Returns:
      true if the metric gives the same result if firstComponent and secondComponent are swapped