|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.constraints.impl.CommonBase
javax.constraints.impl.search.AbstractSearchStrategy
javax.constraints.impl.search.goal.Goal
javax.constraints.impl.search.goal.GoalCheckMaxNumberOfSolutions
public class GoalCheckMaxNumberOfSolutions
This goal is used inside solveAll() to stop or continue the search. It checks if the maximal number of solutions has been reached. If yes, it returns null ("do nothing") and search will be stopped. If no, it returns goalFail() and the search will be continued.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface javax.constraints.SearchStrategy |
|---|
SearchStrategy.SearchStrategyType |
| Constructor Summary | |
|---|---|
GoalCheckMaxNumberOfSolutions(Solver solver)
|
|
| Method Summary | |
|---|---|
Goal |
execute()
Method that executes an underlying goal in the proper implementation. |
| Methods inherited from class javax.constraints.impl.search.goal.Goal |
|---|
and, getSolver, or, trace |
| Methods inherited from class javax.constraints.impl.search.AbstractSearchStrategy |
|---|
getType, getValueSelector, getVarReals, getVars, getVarSelector, run, setType, setValueSelector, setValueSelectorType, setVarReals, setVars, setVars, setVars, setVarSelector, setVarSelectorType |
| Methods inherited from class javax.constraints.impl.CommonBase |
|---|
getImpl, getName, getObject, getProblem, setImpl, setName, setObject |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.constraints.SearchStrategy |
|---|
getImpl, getName, getObject, setImpl, setName, setObject |
| Constructor Detail |
|---|
public GoalCheckMaxNumberOfSolutions(Solver solver)
| Method Detail |
|---|
public Goal execute()
throws java.lang.Exception
Goal
execute in class Goaljava.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||