edu.ucla.belief.rc2.structure
Class RC2Node

Object
  extended by 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
           
 
Constructor Summary
RC2Node(int id, RC2 rc, int height, Collection vars)
           
 
Method Summary
 int compareTo(Object o)
           
 RC2Index context()
           
 int hashCode()
           
abstract  void initialize(Collection acutset)
          Called to initialize the nodes.
abstract  boolean isLeaf()
           
 boolean isRoot()
           
 int numParentNodes()
           
 Set parentNodes()
           
 String toString()
           
 
Methods inherited from class Object
equals, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

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...)

Constructor Detail

RC2Node

public RC2Node(int id,
               RC2 rc,
               int height,
               Collection vars)
Method Detail

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