|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--ls.Clique
This class represents a Clique. It is one of the structures that is used in the L-S algorithm.
| Field Summary | |
protected java.util.Vector |
children
|
protected java.util.Vector |
clq
|
protected int |
number
|
protected Clique |
parent
|
protected Potential |
potential
|
protected java.util.Vector |
r
|
protected java.util.Vector |
s
|
protected java.util.Vector |
sets
|
| Constructor Summary | |
Clique()
Creates an empty clique. |
|
| Method Summary | |
void |
addChild(java.lang.Object child)
|
void |
addCliqueSet(CliqueSet cs)
Adds a new CliqueSet |
void |
addCliqueSet(java.util.Vector o,
double fi,
double probability)
Adds a new CliqueSet to the list of set. |
Clique |
getChild(int index)
Returns a specific child of this clique. |
java.util.Vector |
getChildren()
This returns all of the children that are associated with a particular clique. |
java.util.Vector |
getCliqueSet()
Returns all of the CliqueSets. |
CliqueSet |
getCliqueSet(int index)
Returns an individual clique set. |
java.util.Vector |
getClq()
Returns all of the Vertexs that make up this clique. |
java.lang.Object |
getClq(int index)
|
int |
getClqSize()
|
int |
getNumber()
Returns the clique number. |
Clique |
getParent()
Returns the parent of this clique. |
Potential |
getPotential()
Returns the formula for the calculation of the potential for this clique. |
java.util.Vector |
getR()
Returns all of the relative vertexs of the clique. |
java.lang.Object |
getR(int index)
Returns the specificed relative vertex. |
java.util.Vector |
getS()
Returns all of the non realative vertices for this clique. |
java.lang.Object |
getS(int index)
Returns a particlular non relative vertex of the clique. |
int |
numChildren()
Returns the number of children that this clique has. |
void |
removeEvidenceNodes(NodeManager manager)
|
void |
setChild(Clique child)
Adds a new child to this clique. |
void |
setChildren(java.util.Vector v)
|
void |
setCliqueSet(java.util.Vector v)
|
void |
setClq(java.lang.Object o)
Sets an individual vertex in this clique |
void |
setClq(java.util.Vector clq)
|
void |
setClqVector(java.util.Vector clq)
Sets all of the Vertices that are included in one clique. |
void |
setNumber(int number)
Sets the Clique Number. |
void |
setParent(Clique parent)
Sets the parent of the clique. |
void |
setPotential(Potential potential)
Sets the cpt calculations that make up the potential for this clique. |
void |
setR(java.lang.Object o)
Adds the relative vertex to the list. |
void |
setRVector(java.util.Vector newR)
|
void |
setS(java.lang.Object o)
Adds a vertex to the cliques non realtive vertices list. |
void |
setSVector(java.util.Vector newS)
|
int |
sizeCliqueSet()
Returns the number of items in the clique set. |
int |
sizeR()
Returns the number of relative vertices in this clique. |
int |
sizeS()
Returns the number of non relative vertices in the list. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected int number
protected Clique parent
protected java.util.Vector children
protected java.util.Vector clq
protected java.util.Vector r
protected java.util.Vector s
protected Potential potential
protected java.util.Vector sets
| Constructor Detail |
public Clique()
| Method Detail |
public void setNumber(int number)
number - the number of this cliquepublic int getNumber()
public void setParent(Clique parent)
parent - the parent of this cliquepublic Clique getParent()
public void setChild(Clique child)
child - the child to be added to this cliquepublic void addChild(java.lang.Object child)
public void setChildren(java.util.Vector v)
public java.util.Vector getChildren()
public Clique getChild(int index)
index - the specific child to returnpublic int numChildren()
public void setClqVector(java.util.Vector clq)
clq - all of the vertices in this cliquepublic void setClq(java.util.Vector clq)
public void setClq(java.lang.Object o)
clq - a vertex of this cliquepublic java.util.Vector getClq()
public java.lang.Object getClq(int index)
throws IllegalCliqueIndexException
public int getClqSize()
public void setR(java.lang.Object o)
o - the vertex to be addedpublic java.util.Vector getR()
public java.lang.Object getR(int index)
index - the location of the vertexpublic int sizeR()
public void setS(java.lang.Object o)
o - the vertex to be addedpublic java.util.Vector getS()
public java.lang.Object getS(int index)
index - the location of the vertexpublic int sizeS()
public void setPotential(Potential potential)
potential - the potential for this cliquepublic Potential getPotential()
public void addCliqueSet(java.util.Vector o,
double fi,
double probability)
o - the configuration of the setfi - the fi valueprobability - the probabilitypublic void setSVector(java.util.Vector newS)
public void setRVector(java.util.Vector newR)
public void removeEvidenceNodes(NodeManager manager)
public void setCliqueSet(java.util.Vector v)
public void addCliqueSet(CliqueSet cs)
cs - the CliqueSet to be added.public java.util.Vector getCliqueSet()
public CliqueSet getCliqueSet(int index)
index - the location of the CliqueSetpublic int sizeCliqueSet()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||