de.kumpe.hadooptimizer.impl
Class MemoryPopulationReader<I>
java.lang.Object
de.kumpe.hadooptimizer.impl.MemoryPopulationReader<I>
- Type Parameters:
I
- the individuals' type
- All Implemented Interfaces:
- PopulationReader<I>, Serializable
public class MemoryPopulationReader<I>
- extends Object
- implements PopulationReader<I>
A PopulationReader
which returns an in memory collection of
individuals.
- Author:
- Christian Kumpe
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MemoryPopulationReader
public MemoryPopulationReader(I individual)
MemoryPopulationReader
public MemoryPopulationReader(Collection<I> population)
read
public Collection<I> read()
- Specified by:
read
in interface PopulationReader<I>
- Returns:
- the initial population for the evolution cycle
getPopulation
public Collection<I> getPopulation()
Copyright © 2011 Christian Kumpe. All Rights Reserved.