VersionMinorMetric

Description

An abstract class that inherits AbstractMetric to represent metrics that compare the minor part of the product's version in the parameters with the minor part of this product's versions that have the same major part in the database. If there are not any versions of this product that have the same major part, these metrics will compare the major part of versions.

Important public methods of this class are:

Key

Return Type

Description

generateMetrics

map<shared_ptr<VersionMinorMetric>, int>

Static method that returns a map of (VersionMinorMetric*, int) pairs, each pair represents the metric being used and its measurement result in number form. The result includes measurement results from all child classes of VersionMinorMetric.

getMetricResult

int

Returns the measurement result for a specific metric. Each child class overrides this method to handle the measurement.