javax.constraints.impl.search.goal
Class GoalAddSolution
java.lang.Object
javax.constraints.impl.CommonBase
javax.constraints.impl.search.AbstractSearchStrategy
javax.constraints.impl.search.goal.Goal
javax.constraints.impl.search.goal.GoalAddSolution
- All Implemented Interfaces:
- SearchStrategy
public class GoalAddSolution
- extends Goal
This goal adds a newly found solution to the array of solutions
available via getSolutions()
|
Method Summary |
Goal |
execute()
Method that executes an underlying goal in the proper implementation. |
| 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 java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GoalAddSolution
public GoalAddSolution(Solver solver)
GoalAddSolution
public GoalAddSolution(Solver solver,
int solutionNumber)
GoalAddSolution
public GoalAddSolution(Solver solver,
int solutionNumber,
Var objective)
GoalAddSolution
public GoalAddSolution(Solver solver,
Var objective)
execute
public Goal execute()
throws java.lang.Exception
- Description copied from class:
Goal
- Method that executes an underlying goal in the proper implementation.
- Specified by:
execute in class Goal
- Returns:
- goal or null
- Throws:
java.lang.Exception