net.usa.rharder.tabusearch22
Class NoMovesGeneratedException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--net.usa.rharder.tabusearch22.NoMovesGeneratedException
All Implemented Interfaces:
java.io.Serializable

public class NoMovesGeneratedException
extends java.lang.Exception

This exception is thrown when getAllMoves (in the TSMoveManager)returns no moves. Execution does not stop. The TSEngine moves on to the next iteration and again requests getAllMoves from the TSMoveManager.

Since:
2.1
See Also:
Serialized Form

Constructor Summary
NoMovesGeneratedException()
          Constructs generic NoMovesGeneratedException.
NoMovesGeneratedException(int iteration)
          Constructs a NoMovesGeneratedException and specifies the iteration when the exception occurred.
NoMovesGeneratedException(java.lang.String s)
          Constructs a NoMovesGeneratedException with the specified string.
 
Method Summary
 java.lang.String toString()
          Returns a String representation of the exception, specifiying the iteration of the exception, if known.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NoMovesGeneratedException

public NoMovesGeneratedException()
Constructs generic NoMovesGeneratedException. This constructor only calls super() and quits.

NoMovesGeneratedException

public NoMovesGeneratedException(java.lang.String s)
Constructs a NoMovesGeneratedException with the specified string. This constructor calls super( s ) and quits.
Parameters:
s - String describing the exception

NoMovesGeneratedException

public NoMovesGeneratedException(int iteration)
Constructs a NoMovesGeneratedException and specifies the iteration when the exception occurred.
Parameters:
iteration - the iteration when the exception occurred.
Method Detail

toString

public java.lang.String toString()
Returns a String representation of the exception, specifiying the iteration of the exception, if known.
Overrides:
toString in class java.lang.Throwable
Returns:
String representation of the exception.