T
- item-type.public interface Assignment<T>
Any item used in one pairing, may not be used in another.
The two sets are referred to as left and right respectively.
The terminology is borrowed from the the assignment problem.
Statistics are also associated with the assignment, giving different measures of how successful the assignment was.
Modifier and Type | Method and Description |
---|---|
int |
numberPaired()
The number of items that are paired.
|
int |
numberUnassigned(boolean left)
The number of items in a particular set that are not paired.
|
List<T> |
paired(boolean left)
The items that are paired for a particular set.
|
StatisticsToExport |
statistics()
The statistics associated with the assignment.
|
List<T> |
unassigned(boolean left)
The items that are not paired for a particular set.
|
int numberPaired()
This is necessarily the same number for either set.
int numberUnassigned(boolean left)
left
- if true, the left-set is considered, otherwise the right-set.List<T> paired(boolean left)
left
- if true, the left-set is considered, otherwise the right-set.List<T> unassigned(boolean left)
left
- if true, the left-set is considered, otherwise the right-set.StatisticsToExport statistics()
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.