edu.ucla.belief.inference
Class WrapperInferenceEngine

Object
  extended by AbstractInferenceEngine
      extended by WrapperInferenceEngine
All Implemented Interfaces:
EvidenceChangeListener, JoinTreeInferenceEngine, InferenceEngine, ChangeListener, JoinTreeStats.StatsSource
Direct Known Subclasses:
HuginEngine, PartialDerivativeWrapperEngine

public abstract class WrapperInferenceEngine
extends AbstractInferenceEngine
implements JoinTreeInferenceEngine, JoinTreeStats.StatsSource

Author:
JD Park

Field Summary
 
Fields inherited from class AbstractInferenceEngine
DESCRIBE_CONDITIONAL, STR_CONSOLE_MESSAGE_COMP_MEM, STR_CONSOLE_MESSAGE_COMP_TIME, STR_CONSOLE_MESSAGE_PROP_TIME
 
Method Summary
 Table conditional(FiniteVariable var)
          Returns P(var | observations).
 void die()
           
 void evidenceChanged(EvidenceChangeEvent ECE)
          For interface EvidenceChangeListener
 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.
 BeliefNetwork getBeliefNetwork()
           
 JoinTreeStats.Stat getClusterStats()
           
 double getCompilationTime()
           
 JoinTreeStats.StatsSource getJoinTreeStats()
           
 JointWrapper getJointWrapper()
           
 double getMemoryRequirements()
           
 double getPropagationTime()
           
 JoinTreeStats.Stat getSeparatorStats()
           
 double getValue()
           
 boolean isExhaustive()
           
 Table joint(FiniteVariable var)
          Returns P(var,observations).
 void printInfoCompilation(PrintWriter stream)
           
 void printInfoPropagation(PrintWriter stream)
           
 void printTables(PrintWriter out)
           
 double probability()
           
 void setCPT(FiniteVariable var)
          Sets the CPT associated with var to the values in vals.
 Set variables()
          Returns the set of all of the variables.
 void warning(EvidenceChangeEvent ece)
          For interface EvidenceChangeListener
 
Methods inherited from class AbstractInferenceEngine
canonical, compilationStatus, conditionals, describeConditionals, equals, getControlPanel, getDynamator, getEffectiveCPTData, getQuantitativeDependencyHandler, getValid, hashCode, isQuantitativeDependencyHandled, max, notoriousEdges, printTables, probabilityDisplayOperatorUnicode, probabilitySupported, random, setControlPanel, setDynamator, setQuantitativeDependencyHandler, settingChanged, setValid, test
 
Methods inherited from class Object
getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface InferenceEngine
canonical, compilationStatus, conditionals, describeConditionals, getControlPanel, getDynamator, getQuantitativeDependencyHandler, getValid, handledClone, isQuantitativeDependencyHandled, max, notoriousEdges, probabilityDisplayOperatorUnicode, probabilitySupported, random, setControlPanel, setDynamator, setQuantitativeDependencyHandler, setValid
 
Methods inherited from interface ChangeListener
settingChanged
 

Method Detail

die

public void die()
Specified by:
die in interface InferenceEngine
Overrides:
die in class AbstractInferenceEngine
Since:
20060321

getBeliefNetwork

public BeliefNetwork getBeliefNetwork()
Since:
061404

getJointWrapper

public JointWrapper getJointWrapper()
Since:
112503

getJoinTreeStats

public JoinTreeStats.StatsSource getJoinTreeStats()
Specified by:
getJoinTreeStats in interface JoinTreeInferenceEngine

printTables

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

printInfoCompilation

public void printInfoCompilation(PrintWriter stream)
Specified by:
printInfoCompilation in interface InferenceEngine
Overrides:
printInfoCompilation in class AbstractInferenceEngine

printInfoPropagation

public void printInfoPropagation(PrintWriter stream)
Specified by:
printInfoPropagation in interface InferenceEngine
Overrides:
printInfoPropagation in class AbstractInferenceEngine

warning

public void warning(EvidenceChangeEvent ece)
For interface EvidenceChangeListener

Specified by:
warning in interface EvidenceChangeListener
Since:
071003

evidenceChanged

public void evidenceChanged(EvidenceChangeEvent ECE)
For interface EvidenceChangeListener

Specified by:
evidenceChanged in interface EvidenceChangeListener
Since:
071902

setCPT

public void setCPT(FiniteVariable var)
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.
vals - The values of the entries in the cpt.

probability

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

joint

public Table joint(FiniteVariable var)
Returns P(var,observations).

Specified by:
joint in interface InferenceEngine

conditional

public Table conditional(FiniteVariable var)
Returns P(var | observations).

Specified by:
conditional in interface InferenceEngine

familyJoint

public Table familyJoint(FiniteVariable var)
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)
Returns P(Family(var) | evidence) where Family(var) is the set containing var and its parents.

Specified by:
familyConditional in interface InferenceEngine

getValue

public double getValue()

variables

public Set variables()
Returns the set of all of the variables.

Specified by:
variables in interface InferenceEngine

getClusterStats

public JoinTreeStats.Stat getClusterStats()
Specified by:
getClusterStats in interface JoinTreeStats.StatsSource

getSeparatorStats

public JoinTreeStats.Stat getSeparatorStats()
Specified by:
getSeparatorStats in interface JoinTreeStats.StatsSource

getCompilationTime

public double getCompilationTime()

getPropagationTime

public double getPropagationTime()

getMemoryRequirements

public double getMemoryRequirements()

isExhaustive

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


Copyright 2010 UCLA Automated Reasoning Group