Interface MatchingAlgorithm<T>

All Known Implementing Classes:
SimpleMatching

public interface MatchingAlgorithm<T>
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    matching(@NonNull Collection<T> collection1, @NonNull org.apache.commons.collections4.Predicate<T> filter1, @NonNull Collection<T> collection2, @NonNull org.apache.commons.collections4.Predicate<T> filter2, @NonNull MatchingScoreClosure<T> doubleClosure, @NonNull MatchingClosure<T> matching)
    Attempts to match people from two disjoint sets.
  • Method Details

    • matching

      void matching(@NonNull @NonNull Collection<T> collection1, @NonNull @NonNull org.apache.commons.collections4.Predicate<T> filter1, @NonNull @NonNull Collection<T> collection2, @NonNull @NonNull org.apache.commons.collections4.Predicate<T> filter2, @NonNull @NonNull MatchingScoreClosure<T> doubleClosure, @NonNull @NonNull MatchingClosure<T> matching)
      Attempts to match people from two disjoint sets.
      Parameters:
      collection1 - A set of agents.
      filter1 - A filter for collection1.
      collection2 - Another set of agents to match to.
      filter2 - A filter for collection2.
      doubleClosure - An object implementing MatchingScoreClosure that allows scoring of pairs.
      matching - An object implementing MatchingClosure to match pairs of agents.
      Throws:
      NullPointerException - when any of the input parameters is null.