OptaPlanner distribution 6.0.0-SNAPSHOT

org.optaplanner.examples.nqueens.solver.move.factory
Class RowChangeMoveFactory

java.lang.Object
  extended by org.optaplanner.examples.nqueens.solver.move.factory.RowChangeMoveFactory
All Implemented Interfaces:
MoveListFactory<NQueens>

public class RowChangeMoveFactory
extends Object
implements MoveListFactory<NQueens>


Constructor Summary
RowChangeMoveFactory()
           
 
Method Summary
 List<Move> createMoveList(NQueens nQueens)
          When it is called depends on the configured SelectionCacheType.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RowChangeMoveFactory

public RowChangeMoveFactory()
Method Detail

createMoveList

public List<Move> createMoveList(NQueens nQueens)
Description copied from interface: MoveListFactory
When it is called depends on the configured SelectionCacheType.

It can never support SelectionCacheType.JUST_IN_TIME, because it returns a List, not an Iterator.

Specified by:
createMoveList in interface MoveListFactory<NQueens>
Parameters:
nQueens - never null, the Solution of which the Moves need to be generated
Returns:
never null

OptaPlanner distribution 6.0.0-SNAPSHOT

Copyright © 2006-2013 JBoss by Red Hat. All Rights Reserved.