public class BNNode
extends java.lang.Object
| Modifier and Type | Class | Description |
|---|---|---|
static class |
BNNode.Relationship |
| Constructor | Description |
|---|---|
BNNode(edu.ksu.cis.bnj.bbn.BBNNode node) |
|
BNNode(BNGraph graph,
java.lang.String nodeName) |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
equals(BNNode o) |
|
boolean |
equals(java.lang.Object anObject) |
|
java.util.Set |
getAncestors() |
Get the ancestors of this node (does not include parents)
|
java.util.Set |
getChildren() |
Get the children of this node
|
edu.ksu.cis.bnj.bbn.BBNCPF |
getCPF() |
Get the CPT of this table
|
java.util.Set |
getDescendants() |
Get the descendants of this node (does not include children)
|
java.lang.String |
getFalseValueName() |
Get the false value name of this node
|
java.lang.String |
getName() |
Get the name of this name
|
edu.ksu.cis.bnj.bbn.BBNNode |
getNode() |
Get the BBNNode
|
java.lang.String |
getObservedValue() |
Get the observed value name of this node
|
java.util.Set<BNNode> |
getParents() |
Get the parents of this node
|
edu.ksu.cis.bnj.bbn.BBNDiscreteValue |
getPossibleValues() |
Get the possible values this node can take
|
java.lang.String |
getPossibleValuesOutput() |
Get the possible values this node can take as a string
|
java.lang.String |
getTruthValueName() |
Get the truth value name of this node
|
int |
hashCode() |
|
boolean |
isObserved() |
check if this node has been observerd
|
void |
observe(java.lang.String valueName) |
Observe this node
|
java.lang.String |
toString() |
|
java.lang.String |
toVerboseString() |
Get a verbose output string
|
public BNNode(edu.ksu.cis.bnj.bbn.BBNNode node)
public BNNode(BNGraph graph, java.lang.String nodeName)
public java.lang.String getName()
public edu.ksu.cis.bnj.bbn.BBNNode getNode()
public edu.ksu.cis.bnj.bbn.BBNCPF getCPF()
public edu.ksu.cis.bnj.bbn.BBNDiscreteValue getPossibleValues()
public java.lang.String getPossibleValuesOutput()
public java.lang.String getTruthValueName()
public java.lang.String getFalseValueName()
public java.lang.String getObservedValue()
public boolean isObserved()
public void observe(java.lang.String valueName)
valueName - public java.util.Set getChildren()
public java.util.Set<BNNode> getParents()
public java.util.Set getAncestors()
public java.util.Set getDescendants()
public java.lang.String toVerboseString()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(BNNode o)
public boolean equals(java.lang.Object anObject)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object