|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectlio.replacement.SelectionReplacement
public class SelectionReplacement
This replacement strategy uses a selector to choose individuals from both the current and the former population.
Field Summary | |
---|---|
(package private) Selector |
selector
Selector used to choose individuals from both populations. |
Constructor Summary | |
---|---|
SelectionReplacement()
|
Method Summary | |
---|---|
LiOResourceDefinition |
getDefinition()
Return a LiOResDescription object which holds the name and all parameters that describe the resource. |
Selector |
getSelector()
|
static void |
main(java.lang.String[] args)
Main class that allows testing the class. |
Individual[] |
replace(Population current,
Population former)
Generates a new population from the current and the former one. |
void |
setSelector(Selector selector)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
Selector selector
Constructor Detail |
---|
public SelectionReplacement()
Method Detail |
---|
public Individual[] replace(Population current, Population former)
replace
in interface Replacement
former
- The former population.current
- The current population.public LiOResourceDefinition getDefinition()
getDefinition
in interface LiOResource
public static void main(java.lang.String[] args)
args
- Arguments passed by command linepublic Selector getSelector()
public void setSelector(Selector selector)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |