net.usa.rharder.tabusearch22
Interface TSMoveManager


public interface TSMoveManager

The TSMoveManager determines which moves are available at any given time (or given solution). As a performance boost, you may want to consider reusing TSMoves after each iteration to avoid expensive instantiation.

Since:
1.0
See Also:
TSMove, TSSolution

Method Summary
 TSMove[] getAllMoves(TSSolution solution)
          This method should return an array of all possible moves to try at an iteration based on the passed current solution.
 

Method Detail

getAllMoves

public TSMove[] getAllMoves(TSSolution solution)
This method should return an array of all possible moves to try at an iteration based on the passed current solution. Note that the moves generated should not depend on this exact solution object being the one to be operated on. It is always a copy of the current solution that is operated on.
Parameters:
solution - The current solution.
Returns:
All possible moves from given solution.
Since:
1.0
See Also:
TSSolution, TSMove