edu.ucla.belief.approx
Class BeliefPropagationSettings

Object
  extended by BeliefPropagationSettings
All Implemented Interfaces:
ChangeBroadcaster, UserObject

public class BeliefPropagationSettings
extends Object
implements UserObject, ChangeBroadcaster

Since:
20050505
Author:
Arthur Choi

Field Summary
static double DOUBLE_THRESHOLD_DEFAULT
           
 ChangeEvent EVENT_SETTING_CHANGED
           
static int INT_MAX_ITERATIONS_DEFAULT
           
static long LONG_TIMEOUT_MILLIS_DEFAULT
           
 
Constructor Summary
BeliefPropagationSettings()
          default IBP settings: timeout = 10 sec max iterations = 100 convergence threshold = 10e-8 use max iterations as stopping condition
BeliefPropagationSettings(long millis, int max, double thresh)
          IBP settings to use max iterations as stopping condition.
BeliefPropagationSettings(long millis, int max, double thresh, MessagePassingScheduler scheduler)
           
 
Method Summary
 boolean addChangeListener(ChangeListener listener)
          interface ChangeBroadcaster
 void copy(BeliefPropagationSettings toCopy)
           
 ChangeBroadcaster fireSettingChanged()
          interface ChangeBroadcaster
 double getConvergenceThreshold()
           
 int getMaxIterations()
           
 MessagePassingScheduler getScheduler()
           
 long getTimeoutMillis()
           
 void killState()
           
 UserObject onClone()
          interface UserObject
 boolean removeChangeListener(ChangeListener listener)
          interface ChangeBroadcaster
 void setConvergenceThreshold(double thresh)
           
 void setMaxIterations(int max)
           
 void setScheduler(MessagePassingScheduler scheduler)
           
 void setTimeoutMillis(long millis)
           
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INT_MAX_ITERATIONS_DEFAULT

public static final int INT_MAX_ITERATIONS_DEFAULT
See Also:
Constant Field Values

LONG_TIMEOUT_MILLIS_DEFAULT

public static final long LONG_TIMEOUT_MILLIS_DEFAULT
See Also:
Constant Field Values

DOUBLE_THRESHOLD_DEFAULT

public static final double DOUBLE_THRESHOLD_DEFAULT
See Also:
Constant Field Values

EVENT_SETTING_CHANGED

public final ChangeEvent EVENT_SETTING_CHANGED
Constructor Detail

BeliefPropagationSettings

public BeliefPropagationSettings()
default IBP settings: timeout = 10 sec max iterations = 100 convergence threshold = 10e-8 use max iterations as stopping condition


BeliefPropagationSettings

public BeliefPropagationSettings(long millis,
                                 int max,
                                 double thresh)
IBP settings to use max iterations as stopping condition. If millis or max is 0, the respective stopping condition is unused.


BeliefPropagationSettings

public BeliefPropagationSettings(long millis,
                                 int max,
                                 double thresh,
                                 MessagePassingScheduler scheduler)
Method Detail

setTimeoutMillis

public void setTimeoutMillis(long millis)

getTimeoutMillis

public long getTimeoutMillis()

setMaxIterations

public void setMaxIterations(int max)

setScheduler

public void setScheduler(MessagePassingScheduler scheduler)

getMaxIterations

public int getMaxIterations()

setConvergenceThreshold

public void setConvergenceThreshold(double thresh)

getConvergenceThreshold

public double getConvergenceThreshold()

getScheduler

public MessagePassingScheduler getScheduler()

killState

public void killState()

fireSettingChanged

public ChangeBroadcaster fireSettingChanged()
interface ChangeBroadcaster

Specified by:
fireSettingChanged in interface ChangeBroadcaster

addChangeListener

public boolean addChangeListener(ChangeListener listener)
interface ChangeBroadcaster

Specified by:
addChangeListener in interface ChangeBroadcaster

removeChangeListener

public boolean removeChangeListener(ChangeListener listener)
interface ChangeBroadcaster

Specified by:
removeChangeListener in interface ChangeBroadcaster

onClone

public UserObject onClone()
interface UserObject

Specified by:
onClone in interface UserObject

copy

public void copy(BeliefPropagationSettings toCopy)


Copyright 2010 UCLA Automated Reasoning Group