|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jenes.stage.Dispenser<T> jenes.stage.ExclusiveDispenser<T> jenes.tutorials.problem2.SimpleDispenser<T>
public class SimpleDispenser<T extends Chromosome>
Field Summary |
---|
Fields inherited from class jenes.stage.Dispenser |
---|
span |
Constructor Summary | |
---|---|
SimpleDispenser(int span)
|
Method Summary | |
---|---|
int |
distribute(Individual<T> ind)
Returns the branch number where to add the specified individual. |
void |
preDistribute(Population<T> population)
Sets up the switcher state according to the population's state. |
Methods inherited from class jenes.stage.ExclusiveDispenser |
---|
distribute, mergePopulation |
Methods inherited from class jenes.stage.Dispenser |
---|
span |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleDispenser(int span)
Method Detail |
---|
public void preDistribute(Population<T> population)
ExclusiveDispenser
preDistribute
in class ExclusiveDispenser<T extends Chromosome>
population
- the population to distributepublic int distribute(Individual<T> ind)
ExclusiveDispenser
distribute
in class ExclusiveDispenser<T extends Chromosome>
ind
- the individual to distribute
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |