org.drools.planner.examples.nqueens.domain.solution
Class QueenDifficultyWeightFactory
java.lang.Object
org.drools.planner.examples.nqueens.domain.solution.QueenDifficultyWeightFactory
- All Implemented Interfaces:
- SelectionSorterWeightFactory<NQueens,Queen>
public class QueenDifficultyWeightFactory
- extends Object
- implements SelectionSorterWeightFactory<NQueens,Queen>
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QueenDifficultyWeightFactory
public QueenDifficultyWeightFactory()
createSorterWeight
public Comparable createSorterWeight(NQueens nQueens,
Queen queen)
- Specified by:
createSorterWeight in interface SelectionSorterWeightFactory<NQueens,Queen>
- Parameters:
nQueens - never null, the Solution to which the selection belongs or applies toqueen - never null, a PlanningEntity, a planningValue, a Move or a Selector
- Returns:
- never null, for example a
Integer, Double or a more complex Comparable
Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.