|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Interface for a class that returns common search actions that can be used to locate solutions to a CSP problem
| Method Summary | |
SearchAction |
addConstraint(CspConstraint constraint)
Adds a constraint during a search that can be undone as the search routine backtracks |
SearchAction |
choice(SearchAction[] actions)
Creates a choice point between an array of actions |
SearchAction |
choice(SearchAction action1,
SearchAction action2)
Creates a choice point between two different actions |
SearchAction |
combine(SearchAction[] actions)
Creates a new combined action |
SearchAction |
combine(SearchAction action1,
SearchAction action2)
Creates a new combined action |
SearchAction |
combine(SearchAction action1,
SearchAction action2,
SearchAction action3)
Creates a new combined action |
SearchAction |
generate(CspDoubleVariable[] vars,
double precision)
Creates an action that will instantiate an array of variables in order. |
SearchAction |
generate(CspDoubleVariable[] vars,
double precision,
boolean minFirst)
Creates an action that will instantiate an array of variables in order. |
SearchAction |
generate(CspFloatVariable[] vars,
float precision)
Creates an action that will instantiate an array of variables in order. |
SearchAction |
generate(CspFloatVariable[] vars,
float precision,
boolean minFirst)
Creates an action that will instantiate an array of variables in order. |
SearchAction |
generate(CspIntVariable[] vars)
Creates an action that will instantiate an array of variables in order. |
SearchAction |
generate(CspIntVariable[] vars,
IntegerSelector selector)
Creates an action that will instantiate an array of variables in order. |
SearchAction |
generate(CspLongVariable[] vars)
Creates an action that will instantiate an array of variables in order. |
SearchAction |
generate(CspLongVariable[] vars,
LongSelector selector)
Creates an action that will instantiate an array of variables in order. |
SearchAction |
generate(CspSetVariable[] vars)
Creates an action that will instantiate an array of variables in order. |
SearchAction |
generate(CspSetVariable[] vars,
SetSelector selector)
Creates an action that will instantiate an array of variables in order. |
SearchAction |
generateNonBinary(CspIntVariable[] vars)
Creates an action that will instantiate an array of variables in order. |
SearchAction |
restoreSolution(SolverSolution solution)
Action that will push all current changes onto the stack and restore another solution. |
SearchAction |
splitGenerate(CspIntVariable[] vars)
Creates an action that will instantiate an array of variables in order. |
SearchAction |
splitGenerate(CspIntVariable[] vars,
boolean minFirst)
Creates an action that will instantiate an array of variables in order. |
SearchAction |
splitGenerate(CspLongVariable[] vars)
Creates an action that will instantiate an array of variables in order. |
SearchAction |
splitGenerate(CspLongVariable[] vars,
boolean minFirst)
Creates an action that will instantiate an array of variables in order. |
SearchAction |
storeSolution(SolverSolution solution)
Creates an action that will store all information for the current problem state in a solution that can be restored at a later date. |
| Method Detail |
public SearchAction generate(CspIntVariable[] vars)
vars - Array of variables to instantiate
public SearchAction generate(CspIntVariable[] vars,
IntegerSelector selector)
vars - Array of variables to instantiateselector - Used to select next value to reduce domain of variablepublic SearchAction generate(CspLongVariable[] vars)
vars - Array of variables to instantiate
public SearchAction generate(CspLongVariable[] vars,
LongSelector selector)
vars - Array of variables to instantiateselector - Used to select next value to reduce domain of variable
public SearchAction generate(CspFloatVariable[] vars,
float precision)
vars - Array of variables to instantiateprecision - Minimum precision to which variable domain will be reduced
public SearchAction generate(CspFloatVariable[] vars,
float precision,
boolean minFirst)
vars - Array of variables to instantiateprecision - Minimum precision to which variable domain will be reducedminFirst - True if bottom half of domain should be used to restrict domain first,
false to use upper half
public SearchAction generate(CspDoubleVariable[] vars,
double precision)
vars - Array of variables to instantiateprecision - Minimum precision to which variable domain will be reduced
public SearchAction generate(CspDoubleVariable[] vars,
double precision,
boolean minFirst)
vars - Array of variables to instantiateprecision - Minimum precision to which variable domain will be reducedminFirst - True if bottom half of domain should be used to restrict domain first,
false to use upper halfpublic SearchAction generateNonBinary(CspIntVariable[] vars)
vars - Array of variables to instantiatepublic SearchAction splitGenerate(CspIntVariable[] vars)
vars - Array of variables to instantiate
public SearchAction splitGenerate(CspIntVariable[] vars,
boolean minFirst)
vars - Array of variables to instantiateminFirst - True if bottom half of domain should be used to restrict domain first,
false to use upper halfpublic SearchAction splitGenerate(CspLongVariable[] vars)
vars - Array of variables to instantiate
public SearchAction splitGenerate(CspLongVariable[] vars,
boolean minFirst)
vars - Array of variables to instantiateminFirst - True if bottom half of domain should be used to restrict domain first,
false to use upper halfpublic SearchAction generate(CspSetVariable[] vars)
vars - Array of variables to instantiate
public SearchAction generate(CspSetVariable[] vars,
SetSelector selector)
vars - Array of variables to instantiateselector - Used to select next value to reduce domain of variablepublic SearchAction storeSolution(SolverSolution solution)
solution - Solution to store information inpublic SearchAction restoreSolution(SolverSolution solution)
solution - Solution to restore frompublic SearchAction addConstraint(CspConstraint constraint)
public SearchAction choice(SearchAction action1,
SearchAction action2)
action1 - First choiceaction2 - Second choicepublic SearchAction choice(SearchAction[] actions)
actions - Array of actions that should be separated into individual search nodes
public SearchAction combine(SearchAction action1,
SearchAction action2)
action1 - First action to performaction2 - Second action to perform
public SearchAction combine(SearchAction action1,
SearchAction action2,
SearchAction action3)
action1 - First action to performaction2 - Second action to performaction3 - Third action to performpublic SearchAction combine(SearchAction[] actions)
actions - Collection of actions that should be combined into one actions
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||