|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectCluster
public abstract class Cluster
A cluster used in the bucket-tree algorithm. Note that clusters and variables in the Bayesian network have a one-to-one mapping, so the ID of a cluster is the same as the ID of the corresponding variable.
Field Summary | |
---|---|
(package private) int |
id
ID of the cluster. |
(package private) VArray |
instAry
Bit array that indicates the existences of the instanciation nodes in the same bucket. |
(package private) VArray |
modeAry
Bit array that indicates the input/output modes of the variables in the cluster. |
(package private) int |
offset
Temporary variable used for breaking a loop of input/output dependency |
(package private) VArray |
varAry
Bit array that indicates the variables in the cluster. |
(package private) int |
width
The width of the cluster. |
Constructor Summary | |
---|---|
Cluster()
|
Method Summary | |
---|---|
protected int |
computeWidth(VArray va)
|
int |
getId()
|
VArray |
getInstAry()
|
VArray |
getModeAry()
|
int |
getOffset()
|
VArray |
getVarAry()
|
int |
getWidth()
|
void |
setInstAry(VArray ia)
|
void |
setModeAry(VArray m)
|
void |
setOffset(int o)
|
abstract java.lang.String |
toPrismString()
|
abstract java.lang.String |
toPrismString2()
|
abstract java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
int id
VArray varAry
true
(resp. false
) means the variable is
(resp. is not) included in the cluster.
int width
varAry
.
VArray modeAry
true
means the input (+) mode, and false
means the
output (-) mode.
VArray instAry
int offset
Constructor Detail |
---|
public Cluster()
Method Detail |
---|
public int getId()
public VArray getVarAry()
public int getWidth()
public void setModeAry(VArray m)
public void setInstAry(VArray ia)
public VArray getModeAry()
public VArray getInstAry()
public void setOffset(int o)
public int getOffset()
public abstract java.lang.String toString()
toString
in class java.lang.Object
public abstract java.lang.String toPrismString()
public abstract java.lang.String toPrismString2()
protected int computeWidth(VArray va)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |