public class BasicPopulation extends Object implements Population
Modifier and Type | Field and Description |
---|---|
List<IndividualFilter> |
filterChain |
List<Individual> |
individuals |
String |
sourceFilename |
Constructor and Description |
---|
BasicPopulation() |
BasicPopulation(Collection<Individual> individuals) |
BasicPopulation(Individual... individuals) |
Modifier and Type | Method and Description |
---|---|
void |
addIndividual(Individual individual) |
void |
clearIndividuals(List<Individual> individuals) |
void |
createIndividuals()
Subclass-specific method to load the individuals from a file or create them based on other
properties.
|
Iterator<Individual> |
iterator() |
void |
setup()
Prepare the population for use.
|
int |
size() |
void |
writeAppropriateFormat(String outFileName,
ResultSet results)
Save the output data in this population to a file, using a format that is appropriate for the
specific class of population.
|
protected void |
writeCsv(String outFileName,
ResultSet results) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public String sourceFilename
public List<Individual> individuals
public List<IndividualFilter> filterChain
public BasicPopulation()
public BasicPopulation(Individual... individuals)
public BasicPopulation(Collection<Individual> individuals)
public void addIndividual(Individual individual)
addIndividual
in interface Population
public Iterator<Individual> iterator()
iterator
in interface Iterable<Individual>
public void clearIndividuals(List<Individual> individuals)
clearIndividuals
in interface Population
public void createIndividuals()
Population
createIndividuals
in interface Population
public int size()
size
in interface Population
public void writeAppropriateFormat(String outFileName, ResultSet results)
Population
writeAppropriateFormat
in interface Population
public void setup()
Population
setup
in interface Population
Copyright © 2018. All rights reserved.