|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The TabuList tracks which moves are tabu and for how long.
This code is licensed for public use under the Common Public License version 0.5.
The Common Public License, developed by IBM and modeled after their industry-friendly IBM Public License,
differs from other common open source licenses in several important ways:
Copyright © 2001 Robert Harder
Move
,
Solution
Method Summary | |
boolean |
isTabu(Solution fromSolution,
Move move)
This function should be able to determine if a given move is on the tabu list. |
void |
setTabu(Solution fromSolution,
Move move)
This method accepts a Move and Solution as
arguments and updates the tabu list as necessary. |
Method Detail |
public void setTabu(Solution fromSolution, Move move)
Move
and Solution
as
arguments 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.
move
- The Move
to registerMove
,
Solution
public boolean isTabu(Solution fromSolution, Move move)
move
- A move
Move
,
Solution
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |