Class OptimizationReport


  • public class OptimizationReport
    extends Object
    Reports the result of optimizations of a ranking expression.
    Author:
    bratseth
    • Constructor Detail

      • OptimizationReport

        public OptimizationReport()
    • Method Detail

      • setMetric

        public void setMetric​(String name,
                              int value)
      • getMetric

        public int getMetric​(String name)
        Returns the value of a metric, or null if it is not set
      • incMetric

        public void incMetric​(String name,
                              int increment)
        Increases the metric by the given name by increment, if the metric is not previously set, this will assign it the value increment as expected
      • note

        public void note​(String note)
      • toString

        public String toString()
        Returns all the content of this report as a multiline string
        Overrides:
        toString in class Object