|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjenes.stage.AbstractStage<T>
jenes.stage.operator.Operator<T>
T
- The class of chromosomes to work with.public abstract class Operator<T extends Chromosome>
A genetic operator used in the evolution process. It is made part of the genetic algorithm structure at the
genetic algorithm set up. An operator represents the ultimate stage executing some trasformation on
the input Population
in order to obtain the output one.
To implement an operator it is necessary to subclass this abstract class.
Individual
,
Population
Nested Class Summary | |
---|---|
class |
Operator.Statistics
A statistics object holding the time spent to execute the operator. |
Field Summary | |
---|---|
protected Random |
random
the random used by the operator |
protected Operator.Statistics |
statistics
the operator statistics |
Fields inherited from class jenes.stage.AbstractStage |
---|
biggerIsBetter, ga |
Constructor Summary | |
---|---|
protected |
Operator()
Constructs a new operator |
Method Summary | |
---|---|
Operator.Statistics |
getStatistics()
Returns the operator statistics |
void |
updateStatistics(Operator.Statistics stats)
Updates the specified statistics at the statistics operator state |
Methods inherited from class jenes.stage.AbstractStage |
---|
dispose, init, isBiggerBetter, process, setBiggerIsBetter, setBiggerIsBetter |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Operator.Statistics statistics
protected Random random
Constructor Detail |
---|
protected Operator()
Method Detail |
---|
public Operator.Statistics getStatistics()
public void updateStatistics(Operator.Statistics stats)
stats
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |