public abstract class Vtree extends CanonicalWatched
| Constructor and Description |
|---|
Vtree() |
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
addVariables(java.util.Set<Variable> s)
Adds the variables in this vtree to the specified set.
|
abstract boolean |
contains(Vtree vt)
Indicates whether this vtree contains the specified vtree.
|
abstract boolean |
findPathTo(Vtree vt,
java.util.List<VtreeNode> path)
Stores in the specified list the ``path''
from this vtree to the specified vtree (excluded).
|
abstract int |
getDepth()
Returns the depth of this vtree.
|
abstract java.util.Set<Variable> |
getVariables()
Returns the collection of variables
that decorate the leaves of this vtree.
|
abstract boolean |
isLeaf()
Indicates whether this vtree is a leaf.
|
destroy, equals, equivalent, getBuffer, getCanonical, hashCode, print, unwatch, unwatchAll, verifyValidity, watchpublic abstract java.util.Set<Variable> getVariables()
java.lang.IllegalStateException - if a variable is present twice in this vtree.public abstract boolean isLeaf()
public abstract boolean addVariables(java.util.Set<Variable> s)
s - the set where the variables in this vtree should be inserted.public abstract int getDepth()
public abstract boolean contains(Vtree vt)
vt - the vtree that is looked for.public abstract boolean findPathTo(Vtree vt, java.util.List<VtreeNode> path)
vt - the vtree to which a path is requested.path - the list where the path is recorded.