|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectlio.selectors.KTournament
public class KTournament
This class implements the K-Tournement selection
Constructor Summary | |
---|---|
KTournament()
|
Method Summary | |
---|---|
LiOResourceDefinition |
getDefinition()
Return a LiOResDescription object which holds the name and all parameters that describe the resource. |
int |
getK()
Getter for property k. |
static void |
main(java.lang.String[] args)
Main class that allows testing the class. |
Individual[] |
select(Individual[] individuals,
int number)
Returns an array of individuals selected from those passed as parameter. |
void |
setK(int k)
Setter for property k. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public KTournament()
Method Detail |
---|
public Individual[] select(Individual[] individuals, int number)
select
in interface Selector
individuals
- set of individualsnumber
- number of individual that must be selected
public LiOResourceDefinition getDefinition()
getDefinition
in interface LiOResource
public int getK()
public void setK(int k)
k
- New value of property k.public static void main(java.lang.String[] args)
args
- Arguments passed by command line
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |