|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectDtreeNode
DtreeNodeInternal
public class DtreeNodeInternal
This class represents Internal DtreeNode objects.
Constructor Summary | |
---|---|
DtreeNodeInternal(DtreeNode left,
DtreeNode right)
Creates a DtreeNodeInternal using the two parameters as children. |
Method Summary | |
---|---|
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. |
int |
getNumberNodes()
Returns the number of DtreeNodes including this one and all below it. |
boolean |
isLeaf()
|
DtreeNode |
left()
|
DtreeNode |
right()
|
String |
toString()
|
void |
writeToParenFile(Writer out)
|
Methods inherited from class DtreeNode |
---|
containsVar, getCluster, getContext, getCutset, getVars, hashCodeSpecial |
Methods inherited from class Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DtreeNodeInternal(DtreeNode left, DtreeNode right)
left
- A non-Null DtreeNode.right
- A non-Null DtreeNode.
IllegalArgumentException
- if left.equals( right)Method Detail |
---|
public String toString()
toString
in class Object
public boolean isLeaf()
isLeaf
in class DtreeNode
public DtreeNode left()
public DtreeNode right()
public int getNumberNodes()
DtreeNode
getNumberNodes
in class 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 |