edu.ucla.belief
Class AbstractInferenceEngine

Object
  extended by AbstractInferenceEngine
All Implemented Interfaces:
EvidenceChangeListener, InferenceEngine, ChangeListener
Direct Known Subclasses:
EdgeDeletionInferenceEngine, JoinTreeInferenceEngineImpl, PropagationInferenceEngineImpl, RandomInferenceEngine, RCInferenceEngine, RecoveryInferenceEngine, WrapperInferenceEngine

public abstract class AbstractInferenceEngine
extends Object
implements InferenceEngine, ChangeListener

Since:
20030121
Author:
keith cascio

Field Summary
static String[] DESCRIBE_CONDITIONAL
           
static String STR_CONSOLE_MESSAGE_COMP_MEM
           
static String STR_CONSOLE_MESSAGE_COMP_TIME
           
static String STR_CONSOLE_MESSAGE_PROP_TIME
           
 
Constructor Summary
AbstractInferenceEngine(Dynamator dyn)
           
 
Method Summary
 InferenceEngine canonical()
           
 String compilationStatus(PropertySuperintendent bn)
           
 Table[] conditionals(FiniteVariable var, Table[] buckets)
          In case this InferenceEngine wants to report two sets of answers, for example, approximate and exact.
 String[] describeConditionals()
          In case this InferenceEngine wants to report two sets of answers, for example, approximate and exact.
 void die()
           
 boolean equals(Object other)
           
 Component getControlPanel()
           
 Dynamator getDynamator()
           
 double[] getEffectiveCPTData(FiniteVariable var)
           
 QuantitativeDependencyHandler getQuantitativeDependencyHandler()
           
 boolean getValid()
           
 int hashCode()
           
 boolean isQuantitativeDependencyHandled()
           
 double max()
           
 Collection notoriousEdges()
           
 void printInfoCompilation(PrintWriter out)
           
 void printInfoPropagation(PrintWriter out)
           
 void printTables(Table[] tables, PrintWriter stream)
           
 char probabilityDisplayOperatorUnicode()
           
 boolean probabilitySupported()
           
 int random(FiniteVariable var)
           
 InferenceEngine setControlPanel(Component panel)
           
 void setDynamator(Dynamator dyn)
           
 void setQuantitativeDependencyHandler(QuantitativeDependencyHandler handler)
           
 ChangeListener settingChanged(ChangeEvent event)
          interface ChangeListener
 void setValid(boolean flag)
           
static boolean test(InferenceEngine ie1, InferenceEngine ie2, EvidenceController controller, double epsilon, int numEvidences)
           
 
Methods inherited from class Object
getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface InferenceEngine
conditional, familyConditional, familyJoint, handledClone, isExhaustive, joint, printTables, probability, setCPT, variables
 
Methods inherited from interface EvidenceChangeListener
evidenceChanged, warning
 

Field Detail

DESCRIBE_CONDITIONAL

public static final String[] DESCRIBE_CONDITIONAL
Since:
20080226

STR_CONSOLE_MESSAGE_COMP_TIME

public static final String STR_CONSOLE_MESSAGE_COMP_TIME
See Also:
Constant Field Values

STR_CONSOLE_MESSAGE_COMP_MEM

public static final String STR_CONSOLE_MESSAGE_COMP_MEM
See Also:
Constant Field Values

STR_CONSOLE_MESSAGE_PROP_TIME

public static final String STR_CONSOLE_MESSAGE_PROP_TIME
See Also:
Constant Field Values
Constructor Detail

AbstractInferenceEngine

public AbstractInferenceEngine(Dynamator dyn)
Method Detail

canonical

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object
Since:
20091226

equals

public boolean equals(Object other)
Overrides:
equals in class Object
Since:
20091226

compilationStatus

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

notoriousEdges

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

conditionals

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

Specified by:
conditionals in interface InferenceEngine
Since:
20080226

describeConditionals

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

Specified by:
describeConditionals in interface InferenceEngine
Since:
20080226

getControlPanel

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

setControlPanel

public InferenceEngine setControlPanel(Component panel)
Specified by:
setControlPanel in interface InferenceEngine
Since:
20080227

probabilityDisplayOperatorUnicode

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

random

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

die

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

getEffectiveCPTData

public double[] getEffectiveCPTData(FiniteVariable var)
Since:
061304

setQuantitativeDependencyHandler

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

getQuantitativeDependencyHandler

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

isQuantitativeDependencyHandled

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

settingChanged

public ChangeListener settingChanged(ChangeEvent event)
interface ChangeListener

Specified by:
settingChanged in interface ChangeListener
Since:
20081128

printTables

public void printTables(Table[] tables,
                        PrintWriter stream)
Since:
061504

printInfoCompilation

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

printInfoPropagation

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

setDynamator

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

getDynamator

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

setValid

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

getValid

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

max

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

probabilitySupported

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

test

public static boolean test(InferenceEngine ie1,
                           InferenceEngine ie2,
                           EvidenceController controller,
                           double epsilon,
                           int numEvidences)
Since:
20030819


Copyright 2010 UCLA Automated Reasoning Group