|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectlio.population.Population
public abstract class Population
Field Summary | |
---|---|
protected int |
size
Size of the population |
Constructor Summary | |
---|---|
Population()
|
Method Summary | |
---|---|
Individual |
copyElementAt(int position)
Returns a copy of the element at the given position. |
abstract Individual |
elementAt(int position)
Returns a reference to the individual in the given position. |
abstract Individual[] |
individuals()
Returns an array containing all individuals. |
abstract void |
setElementAt(int position,
Individual individual)
Replaces the element at given position. |
int |
size()
Returns the size of the population. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int size
Constructor Detail |
---|
public Population()
Method Detail |
---|
public abstract Individual elementAt(int position)
position
- Individual that is referenced.
public Individual copyElementAt(int position)
position
- Position of the required element.
public abstract void setElementAt(int position, Individual individual)
position
- Position where the individual will be placed.individual
- Individual to be stored at the population.public abstract Individual[] individuals()
public int size()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |