Method Summary |
|
public void | addDependent(RuleState dependent) |
public boolean | addResult(Triple result) Add a new result to the result set for this goal. |
public void | decRefCount() Decrement the reference count, called when a RuleState for this result set either
fails or completes. |
public void | flushDependents() Move all the blocked dependents to the agenda for further processing. |
public BRuleEngine | getEngine() |
public Triple | getResult(int n) Return the n'th memoized result for this goal. |
public void | incRefCount() Increment the reference count, called when a new RuleState refering to this result set
is created. |
public boolean | isComplete() Return true of this goal is known to have been completely
evaluated. |
public int | numResults() Return the number of available memoized results for this goal. |
public void | setAllComplete() Indicate that all goals have been completed, sets this to complete
but does not bother to add the dependents to the agenda. |
public void | setComplete() Indicate that the goal has completed. |
public void | start() Start up a GoalResults stream. |
public String | toString() |