|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectOperator.Operations.SelectionOperation
public abstract class SelectionOperation
Abstract SelectionOperation class. Has a selectedPopulation and the size of the selection
Field Summary | |
---|---|
protected Population |
selectedPopulation
|
protected int |
size
|
Constructor Summary | |
---|---|
SelectionOperation()
New instance |
|
SelectionOperation(int size)
New instance |
|
SelectionOperation(java.util.Properties p)
New instance |
Method Summary | |
---|---|
abstract void |
doOperation(Individual operand)
Performs the operation on an operand |
abstract void |
doOperation(java.util.List<Individual> operands)
Performs the operation on the list passed |
Population |
getSelectedPopulation()
Returns the selected population. |
int |
getSize()
Size of the population to be selecetd |
void |
setProperties(java.util.Properties p)
Set properties |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Population selectedPopulation
protected int size
Constructor Detail |
---|
public SelectionOperation(int size)
size
- size of selectionpublic SelectionOperation(java.util.Properties p)
p
- propertiespublic SelectionOperation()
Method Detail |
---|
public void setProperties(java.util.Properties p)
setProperties
in interface ParameterI
p
- object containing propertiespublic abstract void doOperation(Individual operand)
Operation
doOperation
in interface Operation
operand
- operand to perform operation onpublic abstract void doOperation(java.util.List<Individual> operands)
Operation
doOperation
in interface Operation
operands
- operands to be operated onpublic Population getSelectedPopulation()
public int getSize()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |