Interface HxCallback


public interface HxCallback
HxCallback interface. Implementing the HxCallback interface enables users to call functions to react to specific events or to call a function regularly during the search. It can be used for example to control when to stop the search or to display some specific information during the search.

Note: When a callback is called, the optimizer is paused. In that state, you can call all the methods marked as "allowed in state HxState.Paused". Calling any other method will throw an error.

Since:
4.0
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    The function that will be called during Hexaly Optimizer search.
  • Method Details

    • callback

      void callback(HexalyOptimizer optimizer, HxCallbackType type)
      The function that will be called during Hexaly Optimizer search.
      Parameters:
      optimizer - The optimizer calling the function.
      type - The type of event that triggered the call.