edu.ucla.belief.approx
Class RecoveryInferenceEngine

Object
  extended by AbstractInferenceEngine
      extended by RecoveryInferenceEngine
All Implemented Interfaces:
PropagationInferenceEngine, EvidenceChangeListener, InferenceEngine, ChangeListener

public class RecoveryInferenceEngine
extends AbstractInferenceEngine
implements InferenceEngine, PropagationInferenceEngine

Since:
20091207
Author:
keith cascio

Field Summary
static String[] DESCRIBE_CONDITIONALS
           
 
Fields inherited from class AbstractInferenceEngine
DESCRIBE_CONDITIONAL, STR_CONSOLE_MESSAGE_COMP_MEM, STR_CONSOLE_MESSAGE_COMP_TIME, STR_CONSOLE_MESSAGE_PROP_TIME
 
Constructor Summary
RecoveryInferenceEngine(BeliefNetwork bn, Converter brudge, Setting.Settings<RecoverySetting> settings, Map<CrouchingTiger.DynamatorImpl,Dynamator> team, Dynamator dyn)
           
 
Method Summary
 Converter bridge()
           
 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.
 String convergenceSummary(boolean identify)
          interface PropagationInferenceEngine
 String[] describeConditionals()
          In case this InferenceEngine wants to report two sets of answers, for example, approximate and exact.
 void die()
           
 RecoveryInferenceEngine dirty()
           
 Collection<DirectedEdge> edgesDeleted()
           
 void evidenceChanged(EvidenceChangeEvent ece)
          interface EvidenceChangeListener
 Table exactConditional(FiniteVariable var)
           
 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()
           
 InferenceEngine handledClone(QuantitativeDependencyHandler handler)
           
 boolean isExhaustive()
           
 Table joint(FiniteVariable var)
          Returns P(var,observations).
 Collection<DirectedEdge> notoriousEdges()
           
 void printTables(PrintWriter out)
           
 double probability()
           
 char probabilityDisplayOperatorUnicode()
           
 void setCPT(FiniteVariable var)
          Sets the CPT associated with var to the values in vals.
 RecoveryInferenceEngine setThreadGroup(ThreadGroup threadgroup)
           
 Setting.Settings<RecoverySetting> settings()
           
 Set<FiniteVariable> variables()
          Returns the set of all of the variables.
 void warning(EvidenceChangeEvent ece)
          interface EvidenceChangeListener
 
Methods inherited from class AbstractInferenceEngine
canonical, equals, getControlPanel, getDynamator, getEffectiveCPTData, getQuantitativeDependencyHandler, getValid, hashCode, isQuantitativeDependencyHandled, max, printInfoCompilation, printInfoPropagation, printTables, probabilitySupported, random, setControlPanel, setDynamator, setQuantitativeDependencyHandler, settingChanged, setValid, test
 
Methods inherited from class Object
getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface ChangeListener
settingChanged
 
Methods inherited from interface InferenceEngine
canonical, getControlPanel, getDynamator, getQuantitativeDependencyHandler, getValid, isQuantitativeDependencyHandled, max, printInfoCompilation, printInfoPropagation, probabilitySupported, random, setControlPanel, setDynamator, setQuantitativeDependencyHandler, setValid
 

Field Detail

DESCRIBE_CONDITIONALS

public static final String[] DESCRIBE_CONDITIONALS
Constructor Detail

RecoveryInferenceEngine

public RecoveryInferenceEngine(BeliefNetwork bn,
                               Converter brudge,
                               Setting.Settings<RecoverySetting> settings,
                               Map<CrouchingTiger.DynamatorImpl,Dynamator> team,
                               Dynamator dyn)
Method Detail

compilationStatus

public String compilationStatus(PropertySuperintendent bn)
Specified by:
compilationStatus in interface InferenceEngine
Overrides:
compilationStatus in class AbstractInferenceEngine
Since:
20091226

convergenceSummary

public String convergenceSummary(boolean identify)
interface PropagationInferenceEngine

Specified by:
convergenceSummary in interface PropagationInferenceEngine

setThreadGroup

public RecoveryInferenceEngine setThreadGroup(ThreadGroup threadgroup)

conditionals

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

Specified by:
conditionals in interface InferenceEngine
Overrides:
conditionals in class AbstractInferenceEngine

exactConditional

public Table exactConditional(FiniteVariable var)

describeConditionals

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

Specified by:
describeConditionals in interface InferenceEngine
Overrides:
describeConditionals in class AbstractInferenceEngine

evidenceChanged

public void evidenceChanged(EvidenceChangeEvent ece)
interface EvidenceChangeListener

Specified by:
evidenceChanged in interface EvidenceChangeListener

warning

public void warning(EvidenceChangeEvent ece)
interface EvidenceChangeListener

Specified by:
warning in interface EvidenceChangeListener

conditional

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

Specified by:
conditional in interface InferenceEngine

joint

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

Specified by:
joint in interface InferenceEngine

probability

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

probabilityDisplayOperatorUnicode

public char probabilityDisplayOperatorUnicode()
Specified by:
probabilityDisplayOperatorUnicode in interface InferenceEngine
Overrides:
probabilityDisplayOperatorUnicode in class AbstractInferenceEngine

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.

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

variables

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

Specified by:
variables in interface InferenceEngine

isExhaustive

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

handledClone

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

printTables

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

getBeliefNetwork

public BeliefNetwork getBeliefNetwork()

bridge

public Converter bridge()

dirty

public RecoveryInferenceEngine dirty()

settings

public Setting.Settings<RecoverySetting> settings()

notoriousEdges

public Collection<DirectedEdge> notoriousEdges()
Specified by:
notoriousEdges in interface InferenceEngine
Overrides:
notoriousEdges in class AbstractInferenceEngine
Since:
20091218

edgesDeleted

public Collection<DirectedEdge> edgesDeleted()
Since:
20091218

die

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


Copyright 2010 UCLA Automated Reasoning Group