| Modifier and Type | Class and Description |
|---|---|
static class |
EvolutionaryStrategy.EvolutionaryStrategySharedObject |
| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<IEvolutionaryStrategyAdapter> |
adapters |
protected ThreadContext |
context |
protected java.util.List<ICrossover> |
crossovers |
protected DesignSpaceManager |
dsm |
protected boolean |
isFirstThread |
protected java.util.concurrent.atomic.AtomicBoolean |
isInterrupted |
protected IParentSelectionStrategy |
localParentSelector |
protected org.apache.log4j.Logger |
logger |
protected java.util.List<IMutation> |
mutations |
protected java.util.Random |
random |
protected EvolutionaryStrategy.EvolutionaryStrategySharedObject |
so |
| Constructor and Description |
|---|
EvolutionaryStrategy() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
addToChildren(TrajectoryFitness child) |
void |
explore()
This method explores the design space as the implementation specifies.
|
protected void |
generateChildren() |
void |
initStrategy(ThreadContext context)
Initializes the strategy with a specific
ThreadContext. |
void |
interruptStrategy()
The implementation of this interface should be ready to be interrupted.
|
protected void |
mainThread() |
protected void |
savePopulationsAsSolutions(java.util.List<TrajectoryFitness> survivedPopulation) |
protected void |
startThreads() |
protected EvolutionaryStrategy.EvolutionaryStrategySharedObject so
protected java.util.List<ICrossover> crossovers
protected java.util.List<IMutation> mutations
protected java.util.List<IEvolutionaryStrategyAdapter> adapters
protected ThreadContext context
protected DesignSpaceManager dsm
protected java.util.concurrent.atomic.AtomicBoolean isInterrupted
protected java.util.Random random
protected IParentSelectionStrategy localParentSelector
protected boolean isFirstThread
protected org.apache.log4j.Logger logger
public void initStrategy(ThreadContext context)
IStrategyThreadContext.initStrategy in interface IStrategycontext - The context.public void explore()
IStrategyprotected void mainThread()
throws java.lang.InterruptedException,
java.util.concurrent.BrokenBarrierException
java.lang.InterruptedExceptionjava.util.concurrent.BrokenBarrierExceptionprotected void startThreads()
protected void generateChildren()
protected boolean addToChildren(TrajectoryFitness child)
child - protected void savePopulationsAsSolutions(java.util.List<TrajectoryFitness> survivedPopulation)
public 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 IStrategy