Package org.somox.metrics.dslvisitor
Class ConfigurableWeightedComposedMetric
java.lang.Object
org.somox.metrics.abstractmetrics.AbstractMetric
org.somox.metrics.abstractmetrics.AbstractComposedMetric
org.somox.metrics.abstractmetrics.AbstractWeightedComposedMetric
org.somox.metrics.dslvisitor.ConfigurableWeightedComposedMetric
- All Implemented Interfaces:
IMetric
-
Constructor Summary
ConstructorDescriptionConfigurableWeightedComposedMetric
(String id, WeightedMetric metricDefinition) -
Method Summary
Methods inherited from class org.somox.metrics.abstractmetrics.AbstractWeightedComposedMetric
getCompositionFunction, isNormalised
Methods inherited from class org.somox.metrics.abstractmetrics.AbstractComposedMetric
getAllChildMetrics, initialize, internalComputeDirected, isCommutative, metricIDToIMetric
Methods inherited from class org.somox.metrics.abstractmetrics.AbstractMetric
calculateUnion, calculateUnion, checkMetricPostCondition, checkMetricPreCondition, computeDirected, getAccessGraphCache, getComponentToClassHelper, getLaunchConfigurationTab, getMetric, getMetricParameters
-
Constructor Details
-
ConfigurableWeightedComposedMetric
-
-
Method Details
-
getWeigths
protected double[] getWeigths()- Specified by:
getWeigths
in classAbstractWeightedComposedMetric
-
getChildMetrics
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 classAbstractComposedMetric
- 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
Description copied from interface:IMetric
Returns the Metric ID of the Metric- Returns:
- the metric id of the instance
-