|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object rdr.core.Node rdr.methods.NTreeNode
public class NTreeNode
A node object for an n-tree. Used by MCRDR
Field Summary |
---|
Fields inherited from class rdr.core.Node |
---|
classification, id, rule |
Constructor Summary | |
---|---|
NTreeNode()
Constructor. |
|
NTreeNode(Rule rule,
Classification classification,
common.datastructures.MyFastVector<NTreeNode> children,
NTreeNode parent,
common.datastructures.MyFastVector<Case> cornerstones)
Constructor Builds a node to the specifications provided |
|
NTreeNode(Rule rule,
Classification classification,
NTreeNode parent,
common.datastructures.MyFastVector<Case> cornerstones)
Constructor Builds a node to the specifications provided. |
Method Summary | |
---|---|
void |
addChild(NTreeNode child)
Add a child to this node |
boolean |
childSatisfied(Case c)
Determine if there is a child satisfied by case c |
common.datastructures.MyFastVector<Condition> |
getAllParentConditions(common.datastructures.MyFastVector<Condition> conds)
Get all the conditions of node and all its parents back to the root Is recursive. |
common.datastructures.MyFastVector<NTreeNode> |
getChildren()
|
common.datastructures.MyFastVector<Case> |
getCornerstones()
|
int |
getDepth()
Finds the depth of this node |
int |
getNumChildren()
|
NTreeNode |
getParent()
|
void |
insertCornerstone(Case c)
Adds the case c to the list of cornerstones for this node only if it's not already in there. |
void |
setChildren(common.datastructures.MyFastVector<NTreeNode> children)
Set the children |
void |
setCornerstones(common.datastructures.MyFastVector<Case> cornerstones)
Sets the potential cornerstones |
void |
setParent(NTreeNode parent)
Sets the parent node |
Methods inherited from class rdr.core.Node |
---|
getClassification, getId, getRule, setClassification, setId, setRule, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public NTreeNode()
public NTreeNode(Rule rule, Classification classification, NTreeNode parent, common.datastructures.MyFastVector<Case> cornerstones)
rule
- classification
- parent
- cornerstones
- public NTreeNode(Rule rule, Classification classification, common.datastructures.MyFastVector<NTreeNode> children, NTreeNode parent, common.datastructures.MyFastVector<Case> cornerstones)
rule
- classification
- children
- parent
- cornerstones
- Method Detail |
---|
public common.datastructures.MyFastVector<NTreeNode> getChildren()
public void setChildren(common.datastructures.MyFastVector<NTreeNode> children)
children
- the set of childrenpublic common.datastructures.MyFastVector<Case> getCornerstones()
public void setCornerstones(common.datastructures.MyFastVector<Case> cornerstones)
cornerstones
- the set of cornerstonespublic void insertCornerstone(Case c)
c
- public NTreeNode getParent()
public void setParent(NTreeNode parent)
parent
- public boolean childSatisfied(Case c)
c
-
public common.datastructures.MyFastVector<Condition> getAllParentConditions(common.datastructures.MyFastVector<Condition> conds)
conds
- set of conditions found so far
public void addChild(NTreeNode child)
child
- public int getDepth()
getDepth
in class Node
public int getNumChildren()
getNumChildren
in class Node
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |