Constructor and Description |
---|
FixedPriorityStrategy() |
Modifier and Type | Method and Description |
---|---|
void |
explore()
This method explores the design space as the implementation specifies.
|
java.util.Map<DSETransformationRule<?,?>,java.lang.Integer> |
getPriorities() |
void |
initStrategy(ThreadContext context)
Initializes the strategy with a specific
ThreadContext . |
void |
interruptStrategy()
The implementation of this interface should be ready to be interrupted.
|
FixedPriorityStrategy |
withDepthLimit(int maxDepth)
Adds a depth limit to the strategy.
|
FixedPriorityStrategy |
withRulePriority(DSETransformationRule<?,?> rule,
int priority)
Assigns a priority to a rule.
|
public FixedPriorityStrategy withDepthLimit(int maxDepth)
depthLimit
- The depth limit.public FixedPriorityStrategy withRulePriority(DSETransformationRule<?,?> rule, int priority)
rule
- The transformation rule.priority
- The priority of the rule.public java.util.Map<DSETransformationRule<?,?>,java.lang.Integer> getPriorities()
public void initStrategy(ThreadContext context)
IStrategy
ThreadContext
.initStrategy
in interface IStrategy
context
- The context.public void explore()
IStrategy
public void interruptStrategy()
IStrategy
IStrategy.explore()
method should return ASAP.
This method is also called by the SolutionStore
class if enough solutions are found.interruptStrategy
in interface IStrategy