Metric
Description |
An abstract class that inherits AbstractMetric to represent metrics that compare different parts of definitions. |
Important public methods of this class are:
Key |
Return Type |
Description |
generateMetrics |
map<shared_ptr<Metric>, int> |
Static method that returns a map of (Metric*, 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 Metric. |
getMetricResult |
int |
Returns the measurement result for a specific metric. Each child class overrides this method to handle the measurement. |