org.drools.planner.api.domain.entity
Interface PlanningEntityDifficultyWeightFactory
- All Known Subinterfaces:
- PlanningEntity.NullDifficultyWeightFactory
public interface PlanningEntityDifficultyWeightFactory
Creates a difficultyWeight for a PlanningEntity.
A difficultyWeight estimates how hard is to plan a certain PlanningEntity.
Some algorithms benefit from planning on more difficult planning entities first or from focusing on them.
createDifficultyWeight
Comparable createDifficultyWeight(Solution solution,
Object planningEntity)
- Parameters:
solution
- never null, the Solution
to which the planningEntity belongsplanningEntity
- never null, the planningEntity to create the difficultyWeight for
- Returns:
- never null
Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.