Class ListPermutationFactory<T>
- java.lang.Object
-
- org.uncommons.watchmaker.framework.factories.AbstractCandidateFactory<List<T>>
-
- org.uncommons.watchmaker.framework.factories.ListPermutationFactory<T>
-
- Type Parameters:
T
- The component type of the lists created by this factory.
- All Implemented Interfaces:
CandidateFactory<List<T>>
public class ListPermutationFactory<T> extends AbstractCandidateFactory<List<T>>
Generates random candidates from a set of elements. Each candidate is a random permutation of the full set of elements.
-
-
Constructor Summary
Constructors Constructor Description ListPermutationFactory(List<T> elements)
Creates a factory that creates lists that contain each of the specified elements exactly once.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<T>
generateRandomCandidate(Random rng)
Generates a random permutation from the configured elements.-
Methods inherited from class org.uncommons.watchmaker.framework.factories.AbstractCandidateFactory
generateInitialPopulation, generateInitialPopulation
-
-