edu.ucla.belief.inference
Class SynchronizedInferenceEngine

Object
  extended by SynchronizedInferenceEngine
All Implemented Interfaces:
EvidenceChangeListener, InferenceEngine
Direct Known Subclasses:
SynchronizedInferenceEngine.SynchronizedPartialDerivativeEngine

public class SynchronizedInferenceEngine
extends Object
implements InferenceEngine, EvidenceChangeListener

Since:
20091226
Author:
keith cascio

Nested Class Summary
static class SynchronizedInferenceEngine.SynchronizedPartialDerivativeEngine
           
 
Method Summary
 InferenceEngine canonical()
           
 String compilationStatus(PropertySuperintendent bn)
           
 Table conditional(FiniteVariable var)
          Returns P(var | observations).
 Table[] conditionals(FiniteVariable var, Table[] buckets)
          In case this InferenceEngine wants to report two sets of answers, for example, approximate and exact.
static SynchronizedInferenceEngine decorate(InferenceEngine simple)
           
 String[] describeConditionals()
          In case this InferenceEngine wants to report two sets of answers, for example, approximate and exact.
 void die()
           
 boolean equals(Object oth)
           
 void evidenceChanged(EvidenceChangeEvent ece)
          Invoked when there is an evidence change.
 Table familyConditional(FiniteVariable var)
          Returns P(Family(var) | evidence) where Family(var) is the set containing var and its parents.
 Table familyJoint(FiniteVariable var)
          Returns P(Family(var),evidence) where Family(var) is the set containing var and its parents.
 Component getControlPanel()
           
 Dynamator getDynamator()
           
 QuantitativeDependencyHandler getQuantitativeDependencyHandler()
           
 boolean getValid()
           
 InferenceEngine handledClone(QuantitativeDependencyHandler handler)
           
 int hashCode()
           
 boolean isExhaustive()
           
 boolean isQuantitativeDependencyHandled()
           
 Table joint(FiniteVariable var)
          Returns P(var,observations).
 double max()
           
 Collection notoriousEdges()
           
 void printInfoCompilation(PrintWriter out)
           
 void printInfoPropagation(PrintWriter out)
           
 void printTables(PrintWriter out)
           
 double probability()
           
 char probabilityDisplayOperatorUnicode()
           
 boolean probabilitySupported()
           
 int random(FiniteVariable var)
           
 InferenceEngine setControlPanel(Component pnl)
           
 void setCPT(FiniteVariable var)
          Sets the CPT associated with var to the values in vals.
 void setDynamator(Dynamator dyn)
           
 void setQuantitativeDependencyHandler(QuantitativeDependencyHandler handler)
           
 void setValid(boolean flag)
           
 String toString()
           
 Set variables()
          Returns the set of all of the variables.
 void warning(EvidenceChangeEvent ece)
          warning() means: a real evidence change is about to happen - get ready!
 
Methods inherited from class Object
getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

decorate

public static SynchronizedInferenceEngine decorate(InferenceEngine simple)

evidenceChanged

public void evidenceChanged(EvidenceChangeEvent ece)
Description copied from interface: EvidenceChangeListener
Invoked when there is an evidence change.

Specified by:
evidenceChanged in interface EvidenceChangeListener

warning

public void warning(EvidenceChangeEvent ece)
Description copied from interface: EvidenceChangeListener
warning() means: a real evidence change is about to happen - get ready!

Specified by:
warning in interface EvidenceChangeListener

probability

public double probability()
Specified by:
probability in interface InferenceEngine

max

public double max()
Specified by:
max in interface InferenceEngine

setCPT

public void setCPT(FiniteVariable var)
Description copied from interface: InferenceEngine
Sets the CPT associated with var to the values in vals. The ordering of vars must be consistent with the ordering returned by getCPT(var).

Specified by:
setCPT in interface InferenceEngine
Parameters:
var - The variable whose CPT we want to set.

random

public int random(FiniteVariable var)
Specified by:
random in interface InferenceEngine

joint

public Table joint(FiniteVariable var)
Description copied from interface: InferenceEngine
Returns P(var,observations).

Specified by:
joint in interface InferenceEngine

conditional

public Table conditional(FiniteVariable var)
Description copied from interface: InferenceEngine
Returns P(var | observations).

Specified by:
conditional in interface InferenceEngine

familyJoint

public Table familyJoint(FiniteVariable var)
Description copied from interface: InferenceEngine
Returns P(Family(var),evidence) where Family(var) is the set containing var and its parents.

Specified by:
familyJoint in interface InferenceEngine

familyConditional

public Table familyConditional(FiniteVariable var)
Description copied from interface: InferenceEngine
Returns P(Family(var) | evidence) where Family(var) is the set containing var and its parents.

Specified by:
familyConditional in interface InferenceEngine

conditionals

public Table[] conditionals(FiniteVariable var,
                            Table[] buckets)
Description copied from interface: InferenceEngine
In case this InferenceEngine wants to report two sets of answers, for example, approximate and exact.

Specified by:
conditionals in interface InferenceEngine

describeConditionals

public String[] describeConditionals()
Description copied from interface: InferenceEngine
In case this InferenceEngine wants to report two sets of answers, for example, approximate and exact.

Specified by:
describeConditionals in interface InferenceEngine

notoriousEdges

public Collection notoriousEdges()
Specified by:
notoriousEdges in interface InferenceEngine

compilationStatus

public String compilationStatus(PropertySuperintendent bn)
Specified by:
compilationStatus in interface InferenceEngine

printInfoCompilation

public void printInfoCompilation(PrintWriter out)
Specified by:
printInfoCompilation in interface InferenceEngine

printInfoPropagation

public void printInfoPropagation(PrintWriter out)
Specified by:
printInfoPropagation in interface InferenceEngine

printTables

public void printTables(PrintWriter out)
Specified by:
printTables in interface InferenceEngine

getDynamator

public Dynamator getDynamator()
Specified by:
getDynamator in interface InferenceEngine

setDynamator

public void setDynamator(Dynamator dyn)
Specified by:
setDynamator in interface InferenceEngine

getValid

public boolean getValid()
Specified by:
getValid in interface InferenceEngine

setValid

public void setValid(boolean flag)
Specified by:
setValid in interface InferenceEngine

setControlPanel

public InferenceEngine setControlPanel(Component pnl)
Specified by:
setControlPanel in interface InferenceEngine

getControlPanel

public Component getControlPanel()
Specified by:
getControlPanel in interface InferenceEngine

isExhaustive

public boolean isExhaustive()
Specified by:
isExhaustive in interface InferenceEngine

variables

public Set variables()
Description copied from interface: InferenceEngine
Returns the set of all of the variables.

Specified by:
variables in interface InferenceEngine

probabilitySupported

public boolean probabilitySupported()
Specified by:
probabilitySupported in interface InferenceEngine

probabilityDisplayOperatorUnicode

public char probabilityDisplayOperatorUnicode()
Specified by:
probabilityDisplayOperatorUnicode in interface InferenceEngine

die

public void die()
Specified by:
die in interface InferenceEngine

canonical

public InferenceEngine canonical()
Specified by:
canonical in interface InferenceEngine

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object oth)
Overrides:
equals in class Object

handledClone

public InferenceEngine handledClone(QuantitativeDependencyHandler handler)
Specified by:
handledClone in interface InferenceEngine

setQuantitativeDependencyHandler

public void setQuantitativeDependencyHandler(QuantitativeDependencyHandler handler)
Specified by:
setQuantitativeDependencyHandler in interface InferenceEngine

getQuantitativeDependencyHandler

public QuantitativeDependencyHandler getQuantitativeDependencyHandler()
Specified by:
getQuantitativeDependencyHandler in interface InferenceEngine

isQuantitativeDependencyHandled

public boolean isQuantitativeDependencyHandled()
Specified by:
isQuantitativeDependencyHandled in interface InferenceEngine

toString

public String toString()
Overrides:
toString in class Object


Copyright 2010 UCLA Automated Reasoning Group