Class ConfigurableWeightedComposedMetric

All Implemented Interfaces:
IMetric

public class ConfigurableWeightedComposedMetric extends AbstractWeightedComposedMetric
  • Constructor Details

    • ConfigurableWeightedComposedMetric

      public ConfigurableWeightedComposedMetric(String id, WeightedMetric metricDefinition)
  • Method Details

    • getWeigths

      protected double[] getWeigths()
      Specified by:
      getWeigths in class AbstractWeightedComposedMetric
    • getChildMetrics

      protected IMetric[] getChildMetrics(Map<MetricID,IMetric> allMetrics)
      Description copied from class: AbstractComposedMetric
      In a subclass override this method and return the subset of metrics in allMetrics which are needed in this composed metric.
      Specified by:
      getChildMetrics in class AbstractComposedMetric
      Parameters:
      allMetrics - The set of all metrics registered in the system via the metric extension point
      Returns:
      The subset of all metrics needed in this composed metric
    • getMID

      public MetricID getMID()
      Description copied from interface: IMetric
      Returns the Metric ID of the Metric
      Returns:
      the metric id of the instance