[rules-users] [Planner] uninitializedEntityFilter example
Geoffrey De Smet
ge0ffrey.spam at gmail.com
Mon Oct 21 07:43:56 EDT 2013
See it's javadocs. Note that in your case the T is a planning entity.
/**
* Decides on keeping or discarding a selection
* (which is a {@link PlanningEntity}, a planningValue, a {@link Move}
or a {@link Selector}).
* <p/>
* A filtered selection is considered as not selected, it does not
count as an unaccepted selection.
*/
public interface SelectionFilter<T> {
/**
* @param scoreDirector never null, the {@link ScoreDirector}
* which has the {@link ScoreDirector#getWorkingSolution()} to
which the selection belongs or applies to
* @param selection never null, a {@link PlanningEntity}, a
planningValue, a {@link Move} or a {@link Selector}
* @return true if the selection is accepted, false if the
selection should be discarded
*/
boolean accept(ScoreDirector scoreDirector, T selection);
}
On 21-10-13 13:09, chakez30 wrote:
> I have seen that post but neither that answers the question about what would
> be the example content for the UninitializedTaskFilter.class. It only show
> the class which will be extends by UninitializedTaskFilter.class by what
> would be the exact example content. Many thanks.
>
>
>
> --
> View this message in context: http://drools.46999.n3.nabble.com/Re-rules-users-uninitializedEntityFilter-example-tp4026436p4026438.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
More information about the rules-users
mailing list