|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Population
A collection of GA organisms
Field Summary | |
---|---|
static ChangeType |
NAME
|
static ChangeType |
ORGANISMS
|
Method Summary | |
---|---|
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 |
Methods inherited from interface org.biojava.utils.Changeable |
---|
addChangeListener, addChangeListener, isUnchanging, removeChangeListener, removeChangeListener |
Field Detail |
---|
static final ChangeType ORGANISMS
static final ChangeType NAME
Method Detail |
---|
String getName()
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 organism
ChangeVetoException
IllegalOrganismException
- if for some reason the organism is invalidvoid addOrganisms(Organism[] orgs) throws ChangeVetoException, IllegalOrganismException
orgs
- the organisms to add
ChangeVetoException
IllegalOrganismException
- if for some reason the organism is invalidvoid addOrganisms(Set orgs) throws ChangeVetoException, IllegalOrganismException
orgs
- the organisms to add
ChangeVetoException
IllegalOrganismException
- if for some reason the organism is invalidvoid addOrganisms(Population orgs) throws ChangeVetoException, IllegalOrganismException
orgs
- the population to add
ChangeVetoException
IllegalOrganismException
- if for some reason the organism is invalidvoid removeOrganism(Organism org) throws ChangeVetoException
org
- the organism to kill
ChangeVetoException
void removeOrganisms(Organism[] orgs) throws ChangeVetoException
Organisms
in orgs
orgs
- the Organisms
to remove.
ChangeVetoException
- if the change is vetoedvoid removeOrganisms(Set orgs) throws ChangeVetoException
Organisms
in orgs
orgs
- the Organisms
to remove.
ChangeVetoException
- if the change is vetoedvoid removeAllOrganisms() throws ChangeVetoException
Organisms
in this Population
ChangeVetoException
- if the change is vetoedOrganism getOrganismByName(String name)
name
- the name of the organism to retreive
Set getOrganisms()
Iterator organisms()
int size()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |