|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.bddbddb.InferenceRule.DependenceNavigator
public static class InferenceRule.DependenceNavigator
A navigator that can navigate over rule dependencies. next() on a rule returns its head relation, and next() on a relation returns the rules that use that relation. Likewise, prev() on a rule returns its subgoal relations, and prev() on a relation returns the rules that define that relation. This class also allows you to remove edges/nodes from it.
Constructor Summary | |
---|---|
InferenceRule.DependenceNavigator(java.util.Collection rules)
Construct a new DependenceNavigator using the given collection of rules. |
|
InferenceRule.DependenceNavigator(InferenceRule.DependenceNavigator that)
Construct a new DependenceNavigator that is a copy of another DependenceNavigator. |
Method Summary | |
---|---|
java.util.Collection |
next(java.lang.Object node)
|
java.util.Collection |
prev(java.lang.Object node)
|
void |
removeAll(java.util.Collection c)
Remove all of the relations/rules in the given collection. |
void |
removeEdge(java.lang.Object from,
java.lang.Object to)
Remove a specific edge from this navigator. |
void |
retainAll(java.util.Collection c)
Retain only the relations/rules in the given collection. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InferenceRule.DependenceNavigator(java.util.Collection rules)
rules
- rulespublic InferenceRule.DependenceNavigator(InferenceRule.DependenceNavigator that)
that
- the one to copy fromMethod Detail |
---|
public void retainAll(java.util.Collection c)
c
- collection to retainpublic void removeAll(java.util.Collection c)
c
- collection to removepublic void removeEdge(java.lang.Object from, java.lang.Object to)
from
- source of edgeto
- target of edgepublic java.util.Collection next(java.lang.Object node)
next
in interface jwutil.graphs.Navigator
public java.util.Collection prev(java.lang.Object node)
prev
in interface jwutil.graphs.Navigator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |