Class CPTNode

java.lang.Object
  extended by Cluster
      extended by CPTNode

public class CPTNode
extends Cluster

A CPT node used in the bucket-tree method. The ID of a CPT node is the ID of the child variable in the CPT.


Field Summary
 
Fields inherited from class Cluster
id, instAry, modeAry, offset, varAry, width
 
Constructor Summary
CPTNode(int i, VArray a)
           
 
Method Summary
 void buildModes()
          Adds the input/output modes for all variables in the CPT.
 java.lang.String toPrismString()
          Returns a string representation of the corresponding "cpt" literal.
 java.lang.String toPrismString2()
          The same as toPrismString().
 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

CPTNode

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

buildModes

public void buildModes()
Adds the input/output modes for all variables in the CPT.


toString

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

Specified by:
toString in class Cluster

toPrismString

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

Specified by:
toPrismString in class Cluster

toPrismString2

public java.lang.String toPrismString2()
The same as toPrismString().

Specified by:
toPrismString2 in class Cluster