|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.udo.cs.yale.operator.features.IndividualOperator
public abstract class IndividualOperator
A PopulationOperator that modifies a population by modifying all individuals independently. The modifications can be made each per attribute block or for single attributes.
| Constructor Summary | |
|---|---|
IndividualOperator()
|
|
| Method Summary | |
|---|---|
abstract java.util.List<Individual> |
operate(Individual individual)
Subclasses must implement this method providing a list of new individuals. |
void |
operate(Population pop)
Operates on all individuals, removes the original individuals and adds the new ones. |
boolean |
performOperation(int generation)
The default implementation returns true for every generation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IndividualOperator()
| Method Detail |
|---|
public abstract java.util.List<Individual> operate(Individual individual)
throws java.lang.Exception
java.lang.Exception
public void operate(Population pop)
throws java.lang.Exception
operate in interface PopulationOperatorjava.lang.Exceptionpublic boolean performOperation(int generation)
performOperation in interface PopulationOperator
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||