public final class SimplePopulation extends AbstractPopulation
Simple concrete implementation of the Population interface
Internally the SimplePopulation store Organisms in a HashMap
NAME, ORGANISMS| Constructor and Description | 
|---|
SimplePopulation()  | 
SimplePopulation(String name)  | 
| Modifier and Type | Method and Description | 
|---|---|
protected void | 
addOrganismImpl(Organism orgToAdd)  | 
Organism | 
getOrganismByName(String name)
Gets the specified organism 
 | 
Set | 
getOrganisms()
Gets the Set of Organisms 
 | 
Iterator | 
organisms()  | 
protected void | 
removeAllOrganismsImpl()  | 
protected void | 
removeOrganismImpl(Organism orgToRemove)  | 
int | 
size()
Gets the Size of the population 
 | 
addOrganism, addOrganisms, addOrganisms, addOrganisms, getName, removeAllOrganisms, removeOrganism, removeOrganisms, removeOrganisms, setNameaddChangeListener, addChangeListener, generateChangeSupport, getChangeSupport, hasListeners, hasListeners, isUnchanging, removeChangeListener, removeChangeListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddChangeListener, addChangeListener, isUnchanging, removeChangeListener, removeChangeListenerpublic SimplePopulation(String name)
public SimplePopulation()
protected void addOrganismImpl(Organism orgToAdd) throws IllegalOrganismException
addOrganismImpl in class AbstractPopulationIllegalOrganismExceptionprotected void removeOrganismImpl(Organism orgToRemove)
removeOrganismImpl in class AbstractPopulationprotected void removeAllOrganismsImpl()
removeAllOrganismsImpl in class AbstractPopulationpublic Organism getOrganismByName(String name)
Populationname - the name of the organism to retreivepublic int size()
Populationpublic Set getOrganisms()
PopulationCopyright © 2020 BioJava. All rights reserved.