|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectunbbayes.prs.Node
unbbayes.prs.bn.TreeVariable
unbbayes.prs.bn.ProbabilisticNode
public class ProbabilisticNode
Represents probabilistic variable.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class unbbayes.prs.Node |
|---|
Node.NodeNameChangedEvent, Node.NodeNameChangedListener, Node.SetList<E> |
| Field Summary |
|---|
| Fields inherited from class unbbayes.prs.bn.TreeVariable |
|---|
cliqueAssociado, marginalList |
| Fields inherited from class unbbayes.prs.Node |
|---|
backColor, CONTINUOUS_NODE_TYPE, DECISION_NODE_TYPE, DEFAULT_SIZE, DESCRIPTION_TYPE, DISPLAY_MODE_BAR, DISPLAY_MODE_ELLIPSE, EXPLANATION_TYPE, infoestados, label, mean, name, nodeNameChangedListenerList, parents, position, PROBABILISTIC_NODE_TYPE, size, sizeIsVariable, sizeVariable, standardDeviation, states, UTILITY_NODE_TYPE |
| Constructor Summary | |
|---|---|
ProbabilisticNode()
Constructs a ProbabilisticNode with an initialized table and an incremented DrawElement. |
|
| Method Summary | |
|---|---|
void |
appendState(String state)
Inserts a new state and updates the affected tables. |
ProbabilisticNode |
basicClone()
|
Object |
clone()
|
ProbabilisticNode |
clone(double raio)
Copia as caracterÔøΩsticas principais para o nÔøΩ desejado |
static Color |
getDescriptionColor()
Returns node's color. |
static Color |
getExplanationColor()
Gets the explanationColor. |
PotentialTable |
getProbabilityFunction()
Returns the probabilistic table of this variable. |
int |
getType()
Method to extract node's type. |
protected void |
marginal()
Calculates the margin of this node. |
void |
removeAllStates()
Remove all, but one, states by removing the last state until there is just one left. |
void |
removeLastState()
Removes the newest state and updates the affected tables. |
static void |
setDescriptionColor(int c)
Changes the description node's color. |
static void |
setExplanationColor(int c)
Changes the explanation's node's color. |
| Methods inherited from class unbbayes.prs.bn.TreeVariable |
|---|
addFinding, addLikeliHood, getAssociatedClique, getEvidence, getMarginalAt, hasEvidence, initMarginalList, IsMarginalList, setAssociatedClique, updateEvidences |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ProbabilisticNode()
| Method Detail |
|---|
public int getType()
INode
getType in interface INodepublic ProbabilisticNode clone(double raio)
raio - raio do nÔøΩ.
public Object clone()
clone in class Objectpublic ProbabilisticNode basicClone()
public PotentialTable getProbabilityFunction()
getProbabilityFunction in interface IRandomVariableprotected void marginal()
marginal in class TreeVariablepublic void appendState(String state)
appendState in interface INodeappendState in class Nodestate - : a new state to be added.public void removeAllStates()
public void removeLastState()
removeLastState in interface INoderemoveLastState in class Nodepublic static Color getDescriptionColor()
public static void setDescriptionColor(int c)
c - RGB value of the new color.public static void setExplanationColor(int c)
c - RGB value of the new color.public static Color getExplanationColor()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||