|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface implemented by classes that are used to guide searches towards specific solutions such as solutions that minimizes a specified expression.
Method Summary | |
double |
bestObjectiveValue()
Returns the best objective value known given the current problem state and previous solutions that have been found |
java.lang.Object |
clone()
|
SearchNodeReference |
getSolutionReference(int n)
Returns the reference to a solution node for this goal at the specified offset. |
int |
getSolutionReferenceCount()
Returns the number of search nodes this goal has marked as valid solutions acceptable to the goal. |
boolean |
isOkToActivate(SearchNode node)
This function must return true if the specified open node is acceptable to activate. |
void |
returnBoundToObjectiveValue(double objective)
Called by search to notify goal that the bound should be returned to a previous objective value |
boolean |
solutionFound(SearchNodeReference treeLocationRef)
Called when searches encounter a solution to determine the proper course of action based on whether the goal has been reached. |
void |
updateBoundForOpenNode()
Called by search to notify goal that any changes to the problem to update the bounds before an open node is activated should be performed at this time. |
Method Detail |
public boolean isOkToActivate(SearchNode node)
node
- Node to check for ability to activate
public boolean solutionFound(SearchNodeReference treeLocationRef)
treeLocationRef
- Reference to a node in the search tree where solution was located
public double bestObjectiveValue()
public void returnBoundToObjectiveValue(double objective)
public void updateBoundForOpenNode() throws PropagationFailureException
PropagationFailureException
- If a failure occurred
attempting to update problempublic int getSolutionReferenceCount()
public SearchNodeReference getSolutionReference(int n)
public java.lang.Object clone()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |