org.processmining.analysis.recommendation
Class RecommendationFilter
java.lang.Object
org.processmining.analysis.recommendation.RecommendationFilter
public class RecommendationFilter
- extends java.lang.Object
Provides a static method for filtering a recommendation result to only contain
those recommendations that satisfy a recommendation filter provided by the
recommendation query.
Empty query filters, or filter fields, are ignored gracefully.
- Author:
- Christian W. Guenther (christian@deckfour.org)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RecommendationFilter
public RecommendationFilter()
filter
public static RecommendationResult filter(RecommendationQuery query,
RecommendationResult result)
- Filters a recommendation result based on the filter attributes provided in the
respective recommendation query.
- Parameters:
query
- The recommendation query containing the filter specification.result
- The recommendation result to be filtered.
- Returns:
- The filtered recommendation result (containing only recommendations which
have passed the query's filter).
accept
public static boolean accept(RecommendationQuery query,
Recommendation rec)
- Helper method which decides for one recommendation, whether it passes the
query's filter.
- Parameters:
query
- The query containing the filter attributes.rec
- Recommendation to be filtered.
- Returns:
- Whether the recommendation provided passes the filter.