Class HxStatistics

java.lang.Object
com.hexaly.optimizer.HxStatistics

public class HxStatistics extends Object
Statistics of the search.
  • Method Details

    • getOptimizer

      public HexalyOptimizer getOptimizer()
      Returns the Hexaly Optimizer object associated to these statistics.
      Returns:
      HexalyOptimizer object.
    • getRunningTime

      public int getRunningTime()
      Gets the running time in seconds. Note that is the "real" time spent (and not only the CPU or system time). Only allowed in states HxState.Paused or HxState.Stopped.
      Returns:
      Running time in seconds.
    • getNbIterations

      public long getNbIterations()
      Gets the number of iterations. Only allowed in states HxState.Paused or HxState.Stopped.
      Returns:
      Number of iterations.
    • toString

      public String toString()
      Returns a String representation of the statistics. Only allowed in states HxState.Paused or HxState.Stopped. Useful for debugging or logging purposes.
      Overrides:
      toString in class Object
      Returns:
      String representation.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object