Class ClusterNode

java.lang.Object
  extended by Cluster
      extended by ClusterNode

public class ClusterNode
extends Cluster

A cluster node used in the bucket-tree method. In a probabilistic context, a cluster node corresponds to a marginal distribution, and the ID of a cluster node is the ID of the variable which has been marginalized out lastly in the bucket-tree method.


Field Summary
 
Fields inherited from class Cluster
id, instAry, modeAry, offset, varAry, width
 
Constructor Summary
ClusterNode(int i, VArray a)
           
 
Method Summary
 java.lang.String toPrismModeString()
          Returns a mode declaration of the corresponding "node_xN" predicate.
 java.lang.String toPrismModeString2()
          Returns a mode declaration of the corresponding "pot_xN" predicate.
 java.lang.String toPrismString()
          Returns a string representation of the corresponding "node_xN" literal.
 java.lang.String toPrismString2()
          Returns a string representation of the corresponding "pot_xN" literal.
 java.lang.String toString()
          Returns an _internal_ string representation.
 
Methods inherited from class Cluster
computeWidth, getId, getInstAry, getModeAry, getOffset, getVarAry, getWidth, setInstAry, setModeAry, setOffset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClusterNode

public ClusterNode(int i,
                   VArray a)
            throws B2PException
Parameters:
i - ID of the cluster node.
a - bit array that indicates the variables in the cluster node.
Throws:
B2PException
Method Detail

toString

public java.lang.String toString()
Returns an _internal_ string representation.

Specified by:
toString in class Cluster

toPrismModeString

public java.lang.String toPrismModeString()
Returns a mode declaration of the corresponding "node_xN" predicate.


toPrismModeString2

public java.lang.String toPrismModeString2()
Returns a mode declaration of the corresponding "pot_xN" predicate.


toPrismString

public java.lang.String toPrismString()
Returns a string representation of the corresponding "node_xN" literal.

Specified by:
toPrismString in class Cluster

toPrismString2

public java.lang.String toPrismString2()
Returns a string representation of the corresponding "pot_xN" literal.

Specified by:
toPrismString2 in class Cluster