Class GlobalMatching<T>
java.lang.Object
microsim.matching.GlobalMatching<T>
- Type Parameters:
T- agent type.
MATCHING CLASS BASED ON THE ITERATIVE RANDOM MATCHING CLASS
Whereas the IterativeRandomMatching class matches units in collection1 to
those in collection2 in order of collection1
the current class evaluates all potential match combinations between
collection1 and collection2 and proceeds to
select matches from lowest to highest "score". The routine is consequently
agnostic concerning the order of each collection.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic GlobalMatchingDeprecated, for removal: This API element is subject to removal in a future version.use constructor to obtain an instancematching(Collection<T> collection1, Predicate<T> filter1, Collection<T> collection2, Predicate<T> filter2, MatchingScoreClosure<T> doubleClosure, MatchingClosure<T> matching)
-
Constructor Details
-
GlobalMatching
public GlobalMatching()
-
-
Method Details
-
matching
public org.apache.commons.math3.util.Pair<Set<T>,Set<T>> matching(Collection<T> collection1, Predicate<T> filter1, Collection<T> collection2, Predicate<T> filter2, MatchingScoreClosure<T> doubleClosure, MatchingClosure<T> matching) -
getInstance
Deprecated, for removal: This API element is subject to removal in a future version.use constructor to obtain an instance
-