public class PTCRISGrouper
extends java.lang.Object
A generic activity grouper for the PTCRIS framework. The method is
customizable by a comparison criteria that
determines when two activities match each other, in which case they are
grouped together. This relationship is transitive: two non-matching
activities may belong to the same group if they both match a third one.
The user should provide an activity comparator
that defines matching activities by calculating a similarity metric, and the
respective threshold.
| Constructor | Description |
|---|---|
PTCRISGrouper() |
| Modifier and Type | Method | Description |
|---|---|---|
static <E> java.util.List<ActivityGroup<E>> |
group(java.util.Collection<E> locals,
ActivityComparator<E> comparator) |
Groups a list of local activities into groups of matching activities,
according to the provided comparator.
|
public static <E> java.util.List<ActivityGroup<E>> group(java.util.Collection<E> locals, ActivityComparator<E> comparator)
E - the type of entries being groupedlocals - the local activities to be groupedcomparator - the provided activity comparator