Package com.hexaly.optimizer
Class HxStatistics
- java.lang.Object
-
- com.hexaly.optimizer.HxStatistics
-
public class HxStatistics extends java.lang.ObjectStatistics of the search.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)longgetNbIterations()Gets the number of iterations.HexalyOptimizergetOptimizer()Returns the Hexaly Optimizer object associated to these statistics.intgetRunningTime()Gets the running time in seconds.inthashCode()java.lang.StringtoString()Returns a String representation of the statistics.
-
-
-
Method Detail
-
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 statesHxState.PausedorHxState.Stopped.- Returns:
- Running time in seconds.
-
getNbIterations
public long getNbIterations()
Gets the number of iterations. Only allowed in statesHxState.PausedorHxState.Stopped.- Returns:
- Number of iterations.
-
toString
public java.lang.String toString()
Returns a String representation of the statistics. Only allowed in statesHxState.PausedorHxState.Stopped. Useful for debugging or logging purposes.- Overrides:
toStringin classjava.lang.Object- Returns:
- String representation.
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
-