|
JAGA Homepage | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Basis for all populations.
Project: JAGA - Java API for Genetic Algorithms.
Company: University College London and JAGA.Org (http://www.jaga.org).
Copyright: (c) 2004 by G. Paperin.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, ONLY if you include a note of the original
author(s) in any redistributed/modified copy.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
or see http://www.gnu.org/licenses/gpl.html
| Method Summary | |
|---|---|
void |
add(Individual individual)
Adds a specified individual to the population. |
void |
addAll(Individual[] individuals)
Adds a list of individuals to the population. |
Individual[] |
getAllMembers()
Gets an array of all individuals in the population. |
Individual |
getMember(int index)
Gets an individual at the specifies index from the population. If this population does not support an ordering, this method may throw an UnsupportedOperationException. |
int |
getSize()
Gets the size of the population. |
| Method Detail |
|---|
int getSize()
void addAll(Individual[] individuals)
individuals - An array of individuals which should be added to the#
population.void add(Individual individual)
individual - To add to the population.Individual[] getAllMembers()
Individual getMember(int index)
throws java.lang.ArrayIndexOutOfBoundsException
UnsupportedOperationException.
index - The index of the population member to return.
java.lang.ArrayIndexOutOfBoundsException - If index is invalid.
|
JAGA Homepage | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||