Class SimpleTimeOut

  • All Implemented Interfaces:
    TimeOutListener

    public class SimpleTimeOut
    extends java.lang.Object
    implements TimeOutListener
    It defines a simple time out listener. It only records the fact that timeout listener occurred as well as number of solutions found before the timeout.
    Version:
    4.7
    • Field Detail

      • timeOutOccurred

        public boolean timeOutOccurred
        It specifies if the timeout has already occurred.
      • solutionsNo

        public int solutionsNo
        It records number of found solutions.
      • timeOutListeners

        public TimeOutListener[] timeOutListeners
        It contains child(ren) of this timeout listener.
    • Constructor Detail

      • SimpleTimeOut

        public SimpleTimeOut()
    • Method Detail

      • executedAtTimeOut

        public void executedAtTimeOut​(int solutionsNo)
        Description copied from interface: TimeOutListener
        It is executed right after time out is determined.
        Specified by:
        executedAtTimeOut in interface TimeOutListener
        Parameters:
        solutionsNo - number of solutions found before the timeout occurred.