|
JTP API Documentation | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface provides the basic search control functionality. When a reasoner
wants to follow a search path, it adds the cost of the next link to current depth
by calling incrementCurrentDepth(int)
or setCurrentDepth(int)
. It can
proceed only if the method returns true, otherwise the search depth limit has been
exceeded, and the depth hasn't been changed. When backtracking, the reasoner
should set the depth to its previous value.
Method Summary | |
int |
getCurrentDepth()
Returns the current search depth. |
int |
getMaxDepth()
|
boolean |
incrementCurrentDepth(int inc)
Attempts to increment current depth. |
boolean |
setCurrentDepth(int newDepth)
Attempts to set current depth to a new value. |
Method Detail |
public int getMaxDepth()
public int getCurrentDepth()
public boolean incrementCurrentDepth(int inc)
inc
- the desired increment to the depth, positive for following a link,
negative for backtracking.
true
if the operation was successful, false
if the depth limit has been reached. In this case, depth stays the same.public boolean setCurrentDepth(int newDepth)
true
if the operation was successful, false
if the depth limit has been reached. In this case, depth stays the same.
|
JTP API Documentation | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |