public class RandomInitalSelector extends java.lang.Object implements IInitialPopulationSelector
| Constructor and Description |
|---|
RandomInitalSelector(int minDepth,
int maxDepth) |
| Modifier and Type | Method and Description |
|---|---|
void |
explore()
This method explores the design space as the implementation specifies.
|
java.util.Set<TrajectoryFitness> |
getInitialPopulation() |
void |
initStrategy(ThreadContext context)
Initializes the strategy with a specific
ThreadContext. |
void |
interruptStrategy()
The implementation of this interface should be ready to be interrupted.
|
void |
setPopulationSize(int populationSize)
Sets the populations size in the initialization phase.
|
public void setPopulationSize(int populationSize)
IInitialPopulationSelectorIStoreChild implementation.setPopulationSize in interface IInitialPopulationSelectorpopulationSize - Expected number of children.public void initStrategy(ThreadContext context)
IStrategyThreadContext.initStrategy in interface IStrategycontext - The context.public void explore()
IStrategypublic void interruptStrategy()
IStrategyIStrategy.explore() method should return ASAP.
This method is also called by the SolutionStore class if enough solutions are found.interruptStrategy in interface IStrategypublic java.util.Set<TrajectoryFitness> getInitialPopulation()
getInitialPopulation in interface IInitialPopulationSelector