jopt.js.spi
Class JsSolverImpl

java.lang.Object
  extended byjopt.csp.CspSolver
      extended byjopt.csp.spi.SolverImpl
          extended byjopt.js.JsSolver
              extended byjopt.js.spi.JsSolverImpl

public class JsSolverImpl
extends jopt.js.JsSolver


Constructor Summary
JsSolverImpl()
           
 
Method Summary
 void addConstraint(jopt.csp.variable.CspConstraint constraint)
           
 jopt.js.api.search.JsLocalSearch getJsLocalSearch()
          Returns a LocalSearch object that is used to create common objects for use during local neighborhood search operations
 jopt.js.api.search.JsSearchActions getJsSearchActions()
          Returns a SearchActions object that is used to create common search operations
 jopt.js.api.search.JsSearchGoals getJsSearchGoals()
          Returns a SearchGoals object that is will create common goals for guiding searches
 jopt.js.api.search.JsSearchTechniques getJsSearchTechniques()
          Returns a SearchTechniques object that is used to create common techniques for guiding searches such as Breadth First Searching and Depth First Searching
 jopt.js.api.variable.JsVariableFactory getJsVarFactory()
          Returns the variable factory for the algorithm the solver is based upon
 void problemBuilt()
           
 boolean solve(jopt.csp.search.SearchAction action, jopt.csp.search.SearchGoal goal, jopt.csp.search.SearchTechnique technique, boolean continuallyImprove, boolean reset)
          Locates a solution for the current problem.
 
Methods inherited from class jopt.js.JsSolver
createJsSolver, createSolver, createSolver
 
Methods inherited from class jopt.csp.spi.SolverImpl
addConstraint, addConstraint, addConstraint, addVariable, clear, createDefaultAlgorithm, getAutoPropagate, nextSolution, propagate, reset, restoreNeighboringSolution, restoreSolution, setAutoPropagate, solve, storeSolution
 
Methods inherited from class jopt.csp.CspSolver
createSolver, createSolver, createSolver, createSolver, getLocalSearch, getSearchActions, getSearchGoals, getSearchLimits, getSearchTechniques, getVarFactory, restoreSolution, solve, solve, solve, solve, solve, solve, solve, solve, solve, solve, solve, solve, solve, solve, solve, storeSolution
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JsSolverImpl

public JsSolverImpl()
Method Detail

getJsVarFactory

public jopt.js.api.variable.JsVariableFactory getJsVarFactory()
Returns the variable factory for the algorithm the solver is based upon


getJsSearchActions

public jopt.js.api.search.JsSearchActions getJsSearchActions()
Returns a SearchActions object that is used to create common search operations


getJsSearchGoals

public jopt.js.api.search.JsSearchGoals getJsSearchGoals()
Returns a SearchGoals object that is will create common goals for guiding searches


getJsSearchTechniques

public jopt.js.api.search.JsSearchTechniques getJsSearchTechniques()
Returns a SearchTechniques object that is used to create common techniques for guiding searches such as Breadth First Searching and Depth First Searching


getJsLocalSearch

public jopt.js.api.search.JsLocalSearch getJsLocalSearch()
Returns a LocalSearch object that is used to create common objects for use during local neighborhood search operations


problemBuilt

public void problemBuilt()

solve

public boolean solve(jopt.csp.search.SearchAction action,
                     jopt.csp.search.SearchGoal goal,
                     jopt.csp.search.SearchTechnique technique,
                     boolean continuallyImprove,
                     boolean reset)
Locates a solution for the current problem.

Parameters:
action - Search action used to locate a solution
goal - Goal to guide search towards a solution
technique - Search technique used to locate a solution
continuallyImprove - True if each successive solution found will be an improvement over previous, false if the best solution (according to the goal) is found during the original search
reset - True if state of problem should be reset before starting search
Returns:
True if a solution was found

addConstraint

public void addConstraint(jopt.csp.variable.CspConstraint constraint)
                   throws jopt.csp.variable.PropagationFailureException
Throws:
jopt.csp.variable.PropagationFailureException