net.usa.rharder.tabusearch22
Interface TSTabuList


public interface TSTabuList

The TSTabuList tracks which moves are tabu and for how long.

Since:
1.0
See Also:
TSMove, TSSolution

Method Summary
 boolean allowMove(TSMove move, TSSolution solution)
          This function should be able to determine if a given move is on the tabu list.
 void registerMoves(TSMove[] moves, TSSolution solution)
          This method accepts an array of TSMoves as an argument and updates the tabu list as necessary.
 

Method Detail

registerMoves

public void registerMoves(TSMove[] moves,
                          TSSolution solution)
This method accepts an array of TSMoves as an argument and updates the tabu list as necessary.

Although the tabu list may not use both of the passed arguments, both must be included in the definition.

Parameters:
moves - The moves to register
solution - The solution that these move(s) operated on (past tense).
Since:
2.0
See Also:
TSMove, TSSolution

allowMove

public boolean allowMove(TSMove move,
                         TSSolution solution)
This function should be able to determine if a given move is on the tabu list.
Parameters:
move - A move
solution - The solution resulting from the move's operation.
Returns:
whether or not the tabu list permits the move.
See Also:
TSMove, TSSolution