|
|||||||||
| Home >> All >> com >> hp >> hpl >> jena >> reasoner >> rulesys >> impl >> [ oldCode overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.hp.hpl.jena.reasoner.rulesys.impl.oldCode
Class GoalState

java.lang.Objectcom.hp.hpl.jena.reasoner.rulesys.impl.oldCode.GoalState
- public class GoalState
- extends java.lang.Object
Represents the state in a traversal of all the solutions of a given goal. This will traverse, in turn, all the matches in the underlying triple stores, all the memoized results currently in the GoalTable and then all the additional results which can be found by turns of the goal Generator crank, until the goal (or the whole derivation) is complete.
- Version:
- $Revision: 1.5 $ on $Date: 2005/02/21 12:18:04 $
| Field Summary | |
(package private) static org.apache.commons.logging.Log |
logger
|
protected GoalResults |
results
The goal table entry for this goal |
protected int |
solutionPointer
The index of the next memoized solution to return |
protected com.hp.hpl.jena.util.iterator.ClosableIterator |
tripleMatches
An iterator over the matching triples in the stores |
| Constructor Summary | |
GoalState(com.hp.hpl.jena.util.iterator.ClosableIterator tripleMatches,
GoalResults results)
Constructor. |
|
| Method Summary | |
void |
close()
Close the GoalState, closing any still active iterators. |
boolean |
couldProcess()
Return true if there seems to be at least one new result available or if this can be stripped off the agenda because it has failed. |
GoalResults |
getGoalResultsEntry()
Return the GoalResults entry which this state is built in |
java.lang.Object |
next()
Return the next available result for this goal. |
java.lang.String |
toString()
Printable form |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
tripleMatches
protected com.hp.hpl.jena.util.iterator.ClosableIterator tripleMatches
- An iterator over the matching triples in the stores
results
protected GoalResults results
- The goal table entry for this goal
solutionPointer
protected int solutionPointer
- The index of the next memoized solution to return
logger
static org.apache.commons.logging.Log logger
| Constructor Detail |
GoalState
public GoalState(com.hp.hpl.jena.util.iterator.ClosableIterator tripleMatches, GoalResults results)
- Constructor. Create a GoalState which can traverse all the
matches to a goal over a set of raw data plus derivations.
| Method Detail |
getGoalResultsEntry
public GoalResults getGoalResultsEntry()
- Return the GoalResults entry which this state is built in
next
public java.lang.Object next()
- Return the next available result for this goal.
couldProcess
public boolean couldProcess()
- Return true if there seems to be at least one new result available or if
this can be stripped off the agenda because it has failed.
close
public void close()
- Close the GoalState, closing any still active iterators.
toString
public java.lang.String toString()
- Printable form
|
|||||||||
| Home >> All >> com >> hp >> hpl >> jena >> reasoner >> rulesys >> impl >> [ oldCode overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
com.hp.hpl.jena.reasoner.rulesys.impl.oldCode.GoalState