public class SmallTestsSequenceSelection extends InputSequenceSelector
| Modifier and Type | Field and Description |
|---|---|
private java.util.Map<Sequence,java.lang.Double> |
weightMap
Map from a sequence to its weight.
|
| Constructor and Description |
|---|
SmallTestsSequenceSelection() |
| Modifier and Type | Method and Description |
|---|---|
Sequence |
selectInputSequence(SimpleList<Sequence> candidates)
Pick a sequence from the candidate list using a weighting that favors shorter sequences.
|
private double |
updateWeightMapForCandidates(SimpleList<Sequence> candidates)
Update the weight for any sequence not currently in the map, and compute the total weight.
|
createdExecutableSequenceprivate final java.util.Map<Sequence,java.lang.Double> weightMap
public Sequence selectInputSequence(SimpleList<Sequence> candidates)
selectInputSequence in class InputSequenceSelectorcandidates - sequences to choose fromprivate double updateWeightMapForCandidates(SimpleList<Sequence> candidates)
candidates - the elements to compute a weight for