edu.ucla.belief.rc2.structure
Class RC2Node
Object
RC2Node
- All Implemented Interfaces:
- Comparable
- Direct Known Subclasses:
- RC2NodeInternal, RC2NodeLeaf, RC2NodeLeafEvidInd
public abstract class RC2Node
- extends Object
- implements Comparable
This class represents RCNode objects.
- Author:
- David Allen
Field Summary |
int |
height
This height is calculated by how many levels of nodes
there are, not by how many edges there are between them. |
int |
nodeID
|
RC2 |
rc
|
Collection |
vars
|
nodeID
public final int nodeID
rc
public final RC2 rc
vars
public final Collection vars
height
public final int height
- This height is calculated by how many levels of nodes
there are, not by how many edges there are between them.
(e.g. leaf nodes have height of 1, their parents have
a height of 2...)
RC2Node
public RC2Node(int id,
RC2 rc,
int height,
Collection vars)
hashCode
public final int hashCode()
- Overrides:
hashCode
in class Object
initialize
public abstract void initialize(Collection acutset)
- Called to initialize the nodes. Implementations of this funciton
should make a call to initializeNode.
toString
public String toString()
- Overrides:
toString
in class Object
isRoot
public final boolean isRoot()
isLeaf
public abstract boolean isLeaf()
context
public final RC2Index context()
parentNodes
public final Set parentNodes()
numParentNodes
public final int numParentNodes()
compareTo
public final int compareTo(Object o)
- Specified by:
compareTo
in interface Comparable
Copyright 2010 UCLA Automated Reasoning Group