Class OptimizationReport


  • public class OptimizationReport
    extends java.lang.Object
    Reports the result of optimizations of a ranking expression.
    Author:
    bratseth
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getMetric​(java.lang.String name)
      Returns the value of a metric, or null if it is not set
      void incMetric​(java.lang.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
      void note​(java.lang.String note)  
      void setMetric​(java.lang.String name, int value)  
      java.lang.String toString()
      Returns all the content of this report as a multiline string
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • OptimizationReport

        public OptimizationReport()
    • Method Detail

      • setMetric

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

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

        public void incMetric​(java.lang.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​(java.lang.String note)
      • toString

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