Package microsim.matching
Interface MatchingAlgorithm<T>
- All Known Implementing Classes:
 SimpleMatching
public interface MatchingAlgorithm<T>
- 
Method Summary
Modifier and TypeMethodDescriptionvoidmatching(@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 forcollection1.collection2- Another set of agents to match to.filter2- A filter forcollection2.doubleClosure- An object implementingMatchingScoreClosurethat allows scoring of pairs.matching- An object implementingMatchingClosureto match pairs of agents.- Throws:
 NullPointerException- when any of the input parameters isnull.
 
 -