|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectDtreeNode
DtreeNodeLeaf
public class DtreeNodeLeaf
This class represents family dtree leaf nodes.
Constructor Summary | |
---|---|
DtreeNodeLeaf(Collection vars,
FiniteVariable child)
Creates a new DtreeNodeLeaf using the Collection vars. |
Method Summary | |
---|---|
FiniteVariable |
child()
|
int |
getHeight()
This height is calculated by how many levels of nodes there are, not by how many edges there are between them. |
Collection |
getLargestCluster(int largest)
Returns the largest cluster (actually the first it finds which is at least as big as the parameter largest). |
int |
getNumberInternalNodes()
Returns the number of internal nodes including (possibly) this one and all below it. |
int |
getNumberLeafNodes()
Returns the number of leaf nodes including (possibly) this one and all below it. |
boolean |
isLeaf()
|
void |
populate(Collection acutset)
Should only be called through dtree. |
String |
toString()
|
void |
writeToParenFile(Writer out)
|
Methods inherited from class DtreeNode |
---|
containsVar, getCluster, getContext, getCutset, getNumberNodes, getVars, hashCodeSpecial |
Methods inherited from class Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DtreeNodeLeaf(Collection vars, FiniteVariable child)
vars
- A Collection of FiniteVariables.
(This Collection will be used and modified, so pass copies of anything
that cannot be changed.)Method Detail |
---|
public String toString()
toString
in class Object
public boolean isLeaf()
isLeaf
in class DtreeNode
public FiniteVariable child()
public void populate(Collection acutset)
DtreeNode
public int getNumberInternalNodes()
DtreeNode
getNumberInternalNodes
in class DtreeNode
public int getNumberLeafNodes()
DtreeNode
getNumberLeafNodes
in class DtreeNode
public Collection getLargestCluster(int largest)
DtreeNode
getLargestCluster
in class DtreeNode
public int getHeight()
DtreeNode
getHeight
in class DtreeNode
public void writeToParenFile(Writer out) throws IOException
IOException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |