public abstract class AbstractPopulation extends AbstractChangeable implements Population
NAME, ORGANISMS| Constructor and Description |
|---|
AbstractPopulation() |
AbstractPopulation(String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
addOrganism(Organism org)
Adds an Organism to the Population
|
protected abstract void |
addOrganismImpl(Organism org) |
void |
addOrganisms(Organism[] orgs)
Adds several organisms to the population
|
void |
addOrganisms(Population orgs)
Adds the residents of one population to this one
|
void |
addOrganisms(Set orgs)
Adds several organisms to the population
|
String |
getName() |
void |
removeAllOrganisms()
Removes all the
Organisms in this Population |
protected abstract void |
removeAllOrganismsImpl() |
void |
removeOrganism(Organism org)
Kills off the organism
|
protected abstract void |
removeOrganismImpl(Organism org) |
void |
removeOrganisms(Organism[] orgs)
Removes all the
Organisms in orgs |
void |
removeOrganisms(Set orgs)
Removes all the
Organisms in orgs |
void |
setName(String name)
Sets the name of the population
|
addChangeListener, addChangeListener, generateChangeSupport, getChangeSupport, hasListeners, hasListeners, isUnchanging, removeChangeListener, removeChangeListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetOrganismByName, getOrganisms, organisms, sizeaddChangeListener, addChangeListener, isUnchanging, removeChangeListener, removeChangeListenerpublic AbstractPopulation()
public AbstractPopulation(String name)
public String getName()
getName in interface Populationpublic final void setName(String name) throws ChangeVetoException
PopulationsetName in interface Populationname - set the name to this.ChangeVetoException - if the name may not be changedpublic final void addOrganism(Organism org) throws ChangeVetoException, IllegalOrganismException
PopulationaddOrganism in interface Populationorg - the organismChangeVetoExceptionIllegalOrganismException - if for some reason the organism is invalidprotected abstract void addOrganismImpl(Organism org) throws IllegalOrganismException
IllegalOrganismExceptionpublic final void addOrganisms(Organism[] orgs) throws ChangeVetoException, IllegalOrganismException
PopulationaddOrganisms in interface Populationorgs - the organisms to addChangeVetoExceptionIllegalOrganismException - if for some reason the organism is invalidpublic final void addOrganisms(Set orgs) throws ChangeVetoException, IllegalOrganismException
PopulationaddOrganisms in interface Populationorgs - the organisms to addChangeVetoExceptionIllegalOrganismException - if for some reason the organism is invalidpublic final void addOrganisms(Population orgs) throws ChangeVetoException, IllegalOrganismException
PopulationaddOrganisms in interface Populationorgs - the population to addChangeVetoExceptionIllegalOrganismException - if for some reason the organism is invalidpublic final void removeOrganisms(Organism[] orgs) throws ChangeVetoException
PopulationOrganisms in orgsremoveOrganisms in interface Populationorgs - the Organisms to remove.ChangeVetoException - if the change is vetoedpublic final void removeOrganisms(Set orgs) throws ChangeVetoException
PopulationOrganisms in orgsremoveOrganisms in interface Populationorgs - the Organisms to remove.ChangeVetoException - if the change is vetoedpublic final void removeAllOrganisms() throws ChangeVetoException
PopulationOrganisms in this PopulationremoveAllOrganisms in interface PopulationChangeVetoException - if the change is vetoedpublic final void removeOrganism(Organism org) throws ChangeVetoException
PopulationremoveOrganism in interface Populationorg - the organism to killChangeVetoExceptionprotected abstract void removeOrganismImpl(Organism org)
protected abstract void removeAllOrganismsImpl()
Copyright © 2014 BioJava. All rights reserved.