public interface Population extends Changeable
| Modifier and Type | Field and Description |
|---|---|
static ChangeType |
NAME |
static ChangeType |
ORGANISMS |
| Modifier and Type | Method and Description |
|---|---|
void |
addOrganism(Organism org)
Adds an Organism to the Population
|
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() |
Organism |
getOrganismByName(String name)
Gets the specified organism
|
Set |
getOrganisms()
Gets the Set of Organisms
|
Iterator |
organisms() |
void |
removeAllOrganisms()
Removes all the
Organisms in this Population |
void |
removeOrganism(Organism org)
Kills off the organism
|
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
|
int |
size()
Gets the Size of the population
|
addChangeListener, addChangeListener, isUnchanging, removeChangeListener, removeChangeListenerstatic final ChangeType ORGANISMS
static final ChangeType NAME
void setName(String name) throws ChangeVetoException
name - set the name to this.ChangeVetoException - if the name may not be changedvoid addOrganism(Organism org) throws ChangeVetoException, IllegalOrganismException
org - the organismChangeVetoExceptionIllegalOrganismException - if for some reason the organism is invalidvoid addOrganisms(Organism[] orgs) throws ChangeVetoException, IllegalOrganismException
orgs - the organisms to addChangeVetoExceptionIllegalOrganismException - if for some reason the organism is invalidvoid addOrganisms(Set orgs) throws ChangeVetoException, IllegalOrganismException
orgs - the organisms to addChangeVetoExceptionIllegalOrganismException - if for some reason the organism is invalidvoid addOrganisms(Population orgs) throws ChangeVetoException, IllegalOrganismException
orgs - the population to addChangeVetoExceptionIllegalOrganismException - if for some reason the organism is invalidvoid removeOrganism(Organism org) throws ChangeVetoException
org - the organism to killChangeVetoExceptionvoid removeOrganisms(Organism[] orgs) throws ChangeVetoException
Organisms in orgsorgs - the Organisms to remove.ChangeVetoException - if the change is vetoedvoid removeOrganisms(Set orgs) throws ChangeVetoException
Organisms in orgsorgs - the Organisms to remove.ChangeVetoException - if the change is vetoedvoid removeAllOrganisms() throws ChangeVetoException
Organisms in this PopulationChangeVetoException - if the change is vetoedOrganism getOrganismByName(String name)
name - the name of the organism to retreiveSet getOrganisms()
int size()
Copyright © 2020 BioJava. All rights reserved.