public class GlobalContext
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
GlobalContext.ExplorationProcessState |
Constructor and Description |
---|
GlobalContext() |
public ExplorerThread tryStartNewThread(ThreadContext originalThreadContext, org.eclipse.emf.common.notify.Notifier model, boolean cloneModel, IStrategy strategy)
originalThreadContext
- The context of the thread which starts the new thread.model
- The model to start from.cloneModel
- It should be true in most cases.strategy
- The strategy, the thread will use.ExplorerThread
public ExplorerThread tryStartNewThread(ThreadContext originalThreadContext)
strategyBase
- The Strategy
.tedToClone
- The model to clone. Hint: context.getTed()ExplorerThread
. Null if the number of the current strategies reached their
maximum.public ExplorerThread tryStartNewThread(ThreadContext originalThreadContext, LocalSearchStrategyBase strategyBase)
public ExplorerThread tryStartNewThread(ThreadContext originalThreadContext, boolean cloneModel)
public ExplorerThread tryStartNewThread(ThreadContext originalThreadContext, org.eclipse.emf.ecore.EObject root)
public void strategyFinished(ExplorerThread strategy)
public boolean isDone()
public boolean canStartNewThread()
public void stopAllThreads()
public void registerException(java.lang.Throwable e)
public void initLeveledObjectives()
public void reset()
public java.util.List<IDesignSpaceVisualizer> getVisualizers()
public void registerDesignSpaceVisualizer(IDesignSpaceVisualizer visualizer)
public void deregisterDesignSpaceVisualizer(IDesignSpaceVisualizer visualizer)
public boolean isDesignSpaceVisualizerRegistered(IDesignSpaceVisualizer visualizer)
public void initVisualizersForThread(ThreadContext threadContext)
public boolean isExceptionHappendInOtherThread()
public java.util.Collection<java.lang.Throwable> getExceptions()
public IStateCoderFactory getStateCoderFactory()
public void setStateCoderFactory(IStateCoderFactory stateCoderFactory)
public java.util.Set<DSETransformationRule<?,?>> getTransformations()
public void setTransformations(java.util.Set<DSETransformationRule<?,?>> transformations)
public DSEThreadPool getThreadPool()
public IDesignSpace getDesignSpace()
public void setDesignSpace(IDesignSpace designSpace)
public int getNumberOfStartedThreads()
public java.lang.Object getSharedObject()
public void setSharedObject(java.lang.Object sharedObject)
public ISolutionStore getSolutionStore()
public void setSolutionStore(ISolutionStore solutionStore)
public GlobalContext.ExplorationProcessState getState()
public java.util.List<IObjective> getObjectives()
public void setObjectives(java.util.List<IObjective> objectives)
public java.util.List<IGlobalConstraint> getGlobalConstraints()
public void setGlobalConstraints(java.util.List<IGlobalConstraint> globalConstraints)
public IObjective[][] getLeveledObjectives()
public void setSolutionStore2(SolutionStore solutionStore2)
public SolutionStore getSolutionStore2()