org.coinor.opents
Interface MoveManager

All Superinterfaces:
java.io.Serializable

public interface MoveManager
extends java.io.Serializable

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

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

Since:
1.0
See Also:
Move, Solution

Method Summary
 Move[] getAllMoves(Solution 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 Move[] getAllMoves(Solution 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 may be a copy of the current solution that is operated on.

Parameters:
solution - The current solution.
Returns:
All possible moves for this iteration from given solution
Since:
1.0
See Also:
Solution, Move