javax.constraints.impl.search.goal
Class GoalAddSolution

java.lang.Object
  extended by javax.constraints.impl.CommonBase
      extended by javax.constraints.impl.search.AbstractSearchStrategy
          extended by javax.constraints.impl.search.goal.Goal
              extended by 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()


Nested Class Summary
 
Nested classes/interfaces inherited from interface javax.constraints.SearchStrategy
SearchStrategy.SearchStrategyType
 
Constructor Summary
GoalAddSolution(Solver solver)
           
GoalAddSolution(Solver solver, int solutionNumber)
           
GoalAddSolution(Solver solver, int solutionNumber, Var objective)
           
GoalAddSolution(Solver solver, Var objective)
           
 
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

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)
Method Detail

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