de.kumpe.hadooptimizer.impl
Class MemoryPopulationWriter<I>

java.lang.Object
  extended by de.kumpe.hadooptimizer.impl.MemoryPopulationWriter<I>
Type Parameters:
I - the individuals' type
All Implemented Interfaces:
PopulationWriter<I>, Serializable

public class MemoryPopulationWriter<I>
extends Object
implements PopulationWriter<I>

A PopulationWriter which stores the given population in memory.

Author:
Christian Kumpe
See Also:
Serialized Form

Constructor Summary
MemoryPopulationWriter()
           
 
Method Summary
 Collection<I> getPopulation()
           
 I getWinner()
           
 void write(Collection<I> population)
          Store the given population.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MemoryPopulationWriter

public MemoryPopulationWriter()
Method Detail

write

public void write(Collection<I> population)
Description copied from interface: PopulationWriter
Store the given population.

Specified by:
write in interface PopulationWriter<I>
Parameters:
population - the optimization result population

getPopulation

public Collection<I> getPopulation()

getWinner

public I getWinner()


Copyright © 2011 Christian Kumpe. All Rights Reserved.