|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectunbbayes.prs.Network
unbbayes.prs.bn.SingleEntityNetwork
public class SingleEntityNetwork
Class that represents a generic network.
| Field Summary | |
|---|---|
protected List<Edge> |
arcosMarkov
Lista de edgeList utilizada no processo de transformaÔøΩÔøΩo. |
protected List<Edge> |
copiaArcos
|
protected ArrayList<Node> |
copiaNos
CÔøΩpia dos nÔøΩs sem os nÔøΩs de utilidade. |
protected boolean |
createLog
Indica se o log deve ser criado ou nÔøΩo. |
protected ArrayList<Node> |
decisionNodes
NÔøΩs de decisÔøΩo utilizado no processo de transformaÔøΩÔøΩo. |
protected boolean |
firstInitialization
|
protected HierarchicTree |
hierarchicTree
|
protected JunctionTree |
junctionTree
Armazena handle do objeto ÔøΩrvore de JunÔøΩÔøΩo associado ao Grafo. |
protected NetworkCompilationLogManager |
logManager
Faz o processamento do log de compilaÔøΩÔøΩo. |
protected ArrayList<Node> |
oe
Ordem de eliminaÔøΩÔøΩo dos nÔøΩs. |
protected double |
radius
|
protected static ResourceBundle |
resource
Load resource file from this package |
| Fields inherited from class unbbayes.prs.Network |
|---|
edgeList, id, name, nodeIndexes, nodeList, nodeNameChangedListener |
| Constructor Summary | |
|---|---|
SingleEntityNetwork(String name)
ConstrÔøΩi um novo grafo sem nÔøΩs nem edgeList. |
|
| Method Summary | |
|---|---|
protected void |
arvoreForte()
Faz o processo de constituiÔøΩÔøΩo da ÔøΩrvore de junÔøΩÔøΩo - Frank Jensen |
protected void |
associateCliques()
Faz a associaÔøΩÔøΩo dos NÔøΩs a um ÔøΩnico clique com menos espaÔøΩo de est. |
protected void |
clearAdjacents()
DestrÔøΩi a lista de adjacentes de cada nÔøΩ do grafo. |
protected void |
cliques()
Faz o processo de identificaÔøΩÔøΩo dos Cliques |
protected void |
compileJT(JunctionTree jt)
Monta ÔøΩrvore de junÔøΩÔøΩo a partir do grafo. |
protected void |
copyMarginal()
|
protected int |
getCliqueIndex(ArrayList<Node> listaNos,
ArrayList<Node> alpha)
SUB-FUNÔøΩÔøΩO do mÔøΩtodo arvoreForte |
ArrayList<Node> |
getDescriptionNodes()
|
ArrayList<Node> |
getExplanationNodes()
|
HierarchicTree |
getHierarchicTree()
|
String |
getLog()
|
ArrayList<Node> |
getNodesCopy()
Return a copy of the nodes (without utility nodes). |
double |
getRadius()
|
void |
initialize()
Inicia as crenÔøΩas da ÔøΩrvore de junÔøΩÔøΩo. |
boolean |
isBN()
Returns true if this network has only discrete probabilistic nodes, i.e. |
boolean |
isCreateLog()
Gets the createLog. |
boolean |
isHybridBN()
Returns true if this network is hybrid, in other words, if it has at least one continuous node. |
boolean |
isID()
Returns true if this network is a Influence Diagram |
protected void |
makeAdjacents()
|
protected void |
makeAdjacentsListForNodeListElements()
Build the adjacent list of each node in nodeList (then adjacent list contains all nodes that is or father or child of the origin node)_. |
protected void |
makeLog()
|
protected boolean |
minimumWeightElimination(ArrayList<Node> auxNos)
Sub-rotina do mÔøΩtodo triangula. |
protected void |
moralize()
Faz o processo de moralizaÔøΩÔøΩo da rede. |
float |
PET()
Retorna a probabilidade estimada total da ÔøΩrvore de junÔøΩÔøΩo associada. |
void |
resetEvidences()
|
void |
resetNodesCopy()
Reset the copy of the nodes. |
protected void |
restoreMarginais()
|
void |
setCreateLog(boolean createLog)
Sets the createLog. |
void |
setFirstInitialization(boolean firstInitialization)
Sets the firstInitialization. |
void |
setHierarchicTree(HierarchicTree hierarchicTree)
|
void |
setRadius(double radius)
|
protected void |
sortCliqueNodes()
Ordena os nÔøΩs dos cliques e dos separadores de acordo com a ordem de eliminaÔøΩÔøΩo. |
protected void |
sortDecisions()
SUB-FUNÔøΩÔøΩO do mÔøΩtodo verificaConsistÔøΩncia que verifica se existe uma ordenaÔøΩÔøΩo total das decisÔøΩes. |
void |
updateEvidences()
Chama o mÔøΩtodo da ÔøΩrvore de junÔøΩÔøΩo para atualizar evidÔøΩncias. |
protected void |
updateMarginais()
|
void |
verifyConectivity()
Verifica a conectividade da rede. |
protected void |
verifyConsistency()
Verifica integridade como grafo direcionado acÔøΩclico / conexo e coesÔøΩo. |
void |
verifyCycles()
Verify if this network has cycle. |
protected void |
verifyPotentialTables()
SUB-FUNÔøΩÔøΩO do mÔøΩtodo verificaConsistÔøΩncia que verifica a consistencia das tabelas de potenciais dos nÔøΩs do grafo. |
protected void |
verifyUtility()
SUB-FUNÔøΩÔøΩO do mÔøΩtodo verificaConsistÔøΩncia que verifica se todos os nÔøΩs de utilidade nÔøΩo contÔøΩm filhos. |
| Methods inherited from class unbbayes.prs.Network |
|---|
addEdge, addNode, clearEdges, clearNodes, getEdge, getEdges, getId, getName, getNode, getNodeAt, getNodeCount, getNodeIndex, getNodeIndexes, getNodes, hasEdge, hasEdge, removeEdge, removeNode, setName, setNodeIndexes, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static ResourceBundle resource
protected HierarchicTree hierarchicTree
protected boolean firstInitialization
protected ArrayList<Node> decisionNodes
protected double radius
protected NetworkCompilationLogManager logManager
protected List<Edge> arcosMarkov
protected boolean createLog
protected ArrayList<Node> oe
protected ArrayList<Node> copiaNos
protected List<Edge> copiaArcos
protected JunctionTree junctionTree
| Constructor Detail |
|---|
public SingleEntityNetwork(String name)
| Method Detail |
|---|
public ArrayList<Node> getDescriptionNodes()
public ArrayList<Node> getExplanationNodes()
protected void makeAdjacentsListForNodeListElements()
protected void makeAdjacents()
protected void clearAdjacents()
public final void verifyCycles()
throws Exception
Exception - If this network has a cycle.
public final void verifyConectivity()
throws Exception
Exception - se a rede for disconexa.protected void moralize()
public void setCreateLog(boolean createLog)
createLog - The createLog to set
protected void compileJT(JunctionTree jt)
throws Exception
Exceptionpublic void resetEvidences()
public boolean isID()
public boolean isHybridBN()
public boolean isBN()
protected void updateMarginais()
protected void cliques()
protected void sortCliqueNodes()
protected void makeLog()
protected void associateCliques()
protected void arvoreForte()
protected int getCliqueIndex(ArrayList<Node> listaNos,
ArrayList<Node> alpha)
protected boolean minimumWeightElimination(ArrayList<Node> auxNos)
auxNos - Vetor de nÔøΩs.
protected void verifyConsistency()
throws Exception
Exceptionpublic HierarchicTree getHierarchicTree()
public void setHierarchicTree(HierarchicTree hierarchicTree)
public void setRadius(double radius)
public double getRadius()
protected void verifyPotentialTables()
throws Exception
Exception
protected void verifyUtility()
throws Exception
Exception
protected void sortDecisions()
throws Exception
Exceptionpublic ArrayList<Node> getNodesCopy()
public void resetNodesCopy()
public String getLog()
public boolean isCreateLog()
public void updateEvidences()
throws Exception
Exception
public void initialize()
throws Exception
Exceptionprotected void copyMarginal()
protected void restoreMarginais()
public void setFirstInitialization(boolean firstInitialization)
firstInitialization - The firstInitialization to setpublic float PET()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||