edu.ucla.belief.inference
Class RCSettings

Object
  extended by RCSettings
All Implemented Interfaces:
ChangeBroadcaster, UserObject

public class RCSettings
extends Object
implements UserObject, ChangeBroadcaster

Since:
20031029
Author:
keith cascio

Field Summary
static double DOUBLE_60
           
static double DOUBLE_BYTES_PER_BYTE
           
static double DOUBLE_INVALID_OPTIMAL_MEMORY
           
static double DOUBLE_KILOBYTES_PER_BYTE
           
static double DOUBLE_MEGABYTES_PER_BYTE
           
 ChangeEvent EVENT_SETTING_CHANGED
           
static boolean FLAG_DEBUG_VERBOSE
           
static boolean FLAG_DEBUG_VERBOSE_CLONE
           
static boolean FLAG_DEBUG_VERBOSE_II
           
static boolean FLAG_DEBUG_VERBOSE_III
           
static boolean FLAG_DEBUG_VERBOSE_INFO
           
static int INT_MINUTE_HOUR_THRESHOLD
           
static int INT_SECOND_MINUTE_THRESHOLD
           
static long LONG_BYTE_KILO_THRESHOLD
           
static long LONG_BYTES_PER_DOUBLE
           
static long LONG_KILO_MEGA_THRESHOLD
           
static String STR_BYTE_UNIT
           
static String STR_EMPTY_UNIT
           
static String STR_HOURS_UNIT
           
static String STR_KILOBYTE_UNIT
           
static String STR_MEGABYTE_UNIT
           
static String STR_MINUTE_UNIT
           
static String STR_MSG_OVERFLOW
           
static String STR_SECOND_UNIT
           
 
Constructor Summary
RCSettings()
           
 
Method Summary
 boolean addChangeListener(ChangeListener listener)
          interface ChangeBroadcaster
 void copy(RCSettings toCopy)
           
 String describeUserMemoryProportion()
           
 ChangeBroadcaster fireSettingChanged()
          interface ChangeBroadcaster
 RCInfo generateInfo(BeliefNetwork bn)
           
 RCInfo generateInfoOrDie(BeliefNetwork bn)
           
 double getActualMemoryProportion()
           
 EliminationHeuristic getEliminationHeuristic()
           
 RCInfo getInfo()
           
 boolean getPrEOnly()
           
static double getSecondsPerRCCall()
           
 double getUserMemoryProportion()
           
 boolean isStale()
           
 UserObject onClone()
          interface UserObject
 boolean removeChangeListener(ChangeListener listener)
          interface ChangeBroadcaster
static RCInfo selectBetterRCInfo(RCInfo newRCInfo, RCInfo oldRCInfo)
           
 void setDebugID(String id)
           
 boolean setEliminationHeuristic(EliminationHeuristic h)
           
 void setExpectedNumberOfRCCalls(double l)
           
 boolean setHeuristicAndValidateOrRollback(EliminationHeuristic h, BeliefNetwork bn)
           
 void setInfo(RCInfo rcinfo)
           
static void setMillisPerRCCall(double millisPerRCCall)
           
 void setPrEOnly(boolean flag)
           
static void setSecondsPerRCCall(double secondsPerRCCall)
           
 boolean setUserMemoryProportion(double d)
           
 boolean setUserMemoryProportion(double d, boolean makeStale)
           
 double synchronizeMemoryProportion()
           
 String[] updateEstimatedMillisDisplay(double millis)
           
 String[] updateEstimatedMinutesDisplay()
           
 String[] updateEstimatedMinutesDisplay(int secs, int mins, int hours)
           
 String[] updateEstimatedTimeDisplay(double calls)
           
 String[] updateOptimalMemoryDisplay()
           
 String updateUserMemoryDisplay()
           
 String updateUserMemoryDisplay(double proportion)
           
 boolean validateAllocation(BeliefNetwork bn)
           
 boolean validateRC(BeliefNetwork bn)
           
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FLAG_DEBUG_VERBOSE

public static boolean FLAG_DEBUG_VERBOSE

FLAG_DEBUG_VERBOSE_II

public static final boolean FLAG_DEBUG_VERBOSE_II
See Also:
Constant Field Values

FLAG_DEBUG_VERBOSE_III

public static final boolean FLAG_DEBUG_VERBOSE_III
See Also:
Constant Field Values

FLAG_DEBUG_VERBOSE_INFO

public static final boolean FLAG_DEBUG_VERBOSE_INFO
See Also:
Constant Field Values

FLAG_DEBUG_VERBOSE_CLONE

public static final boolean FLAG_DEBUG_VERBOSE_CLONE
See Also:
Constant Field Values

INT_SECOND_MINUTE_THRESHOLD

public static final int INT_SECOND_MINUTE_THRESHOLD
See Also:
Constant Field Values

INT_MINUTE_HOUR_THRESHOLD

public static final int INT_MINUTE_HOUR_THRESHOLD
See Also:
Constant Field Values

STR_SECOND_UNIT

public static final String STR_SECOND_UNIT
See Also:
Constant Field Values

STR_MINUTE_UNIT

public static final String STR_MINUTE_UNIT
See Also:
Constant Field Values

STR_HOURS_UNIT

public static final String STR_HOURS_UNIT
See Also:
Constant Field Values

LONG_BYTES_PER_DOUBLE

public static final long LONG_BYTES_PER_DOUBLE
See Also:
Constant Field Values

DOUBLE_INVALID_OPTIMAL_MEMORY

public static final double DOUBLE_INVALID_OPTIMAL_MEMORY
See Also:
Constant Field Values

LONG_BYTE_KILO_THRESHOLD

public static final long LONG_BYTE_KILO_THRESHOLD
See Also:
Constant Field Values

LONG_KILO_MEGA_THRESHOLD

public static final long LONG_KILO_MEGA_THRESHOLD
See Also:
Constant Field Values

DOUBLE_BYTES_PER_BYTE

public static final double DOUBLE_BYTES_PER_BYTE
See Also:
Constant Field Values

DOUBLE_KILOBYTES_PER_BYTE

public static final double DOUBLE_KILOBYTES_PER_BYTE
See Also:
Constant Field Values

DOUBLE_MEGABYTES_PER_BYTE

public static final double DOUBLE_MEGABYTES_PER_BYTE
See Also:
Constant Field Values

DOUBLE_60

public static final double DOUBLE_60
See Also:
Constant Field Values

STR_EMPTY_UNIT

public static final String STR_EMPTY_UNIT
See Also:
Constant Field Values

STR_BYTE_UNIT

public static final String STR_BYTE_UNIT
See Also:
Constant Field Values

STR_KILOBYTE_UNIT

public static final String STR_KILOBYTE_UNIT
See Also:
Constant Field Values

STR_MEGABYTE_UNIT

public static final String STR_MEGABYTE_UNIT
See Also:
Constant Field Values

STR_MSG_OVERFLOW

public static final String STR_MSG_OVERFLOW
See Also:
Constant Field Values

EVENT_SETTING_CHANGED

public final ChangeEvent EVENT_SETTING_CHANGED
Constructor Detail

RCSettings

public RCSettings()
Method Detail

isStale

public boolean isStale()

setEliminationHeuristic

public boolean setEliminationHeuristic(EliminationHeuristic h)

getEliminationHeuristic

public EliminationHeuristic getEliminationHeuristic()

setInfo

public void setInfo(RCInfo rcinfo)

getInfo

public RCInfo getInfo()

setPrEOnly

public void setPrEOnly(boolean flag)

getPrEOnly

public boolean getPrEOnly()

setUserMemoryProportion

public boolean setUserMemoryProportion(double d)

setUserMemoryProportion

public boolean setUserMemoryProportion(double d,
                                       boolean makeStale)
Since:
070203

getUserMemoryProportion

public double getUserMemoryProportion()

getActualMemoryProportion

public double getActualMemoryProportion()
Since:
102903

synchronizeMemoryProportion

public double synchronizeMemoryProportion()
Since:
102903

selectBetterRCInfo

public static RCInfo selectBetterRCInfo(RCInfo newRCInfo,
                                        RCInfo oldRCInfo)
Since:
111003

generateInfo

public RCInfo generateInfo(BeliefNetwork bn)
Since:
111003

generateInfoOrDie

public RCInfo generateInfoOrDie(BeliefNetwork bn)
                         throws Throwable
Throws:
Throwable
Since:
042005

setHeuristicAndValidateOrRollback

public boolean setHeuristicAndValidateOrRollback(EliminationHeuristic h,
                                                 BeliefNetwork bn)
                                          throws Throwable
Throws:
Throwable
Since:
041405

validateRC

public boolean validateRC(BeliefNetwork bn)
                   throws Throwable
Throws:
Throwable

validateAllocation

public boolean validateAllocation(BeliefNetwork bn)
                           throws Throwable
Throws:
Throwable

updateUserMemoryDisplay

public String updateUserMemoryDisplay()

updateUserMemoryDisplay

public String updateUserMemoryDisplay(double proportion)

updateOptimalMemoryDisplay

public String[] updateOptimalMemoryDisplay()

updateEstimatedMinutesDisplay

public String[] updateEstimatedMinutesDisplay()

updateEstimatedMillisDisplay

public String[] updateEstimatedMillisDisplay(double millis)

updateEstimatedTimeDisplay

public String[] updateEstimatedTimeDisplay(double calls)

updateEstimatedMinutesDisplay

public String[] updateEstimatedMinutesDisplay(int secs,
                                              int mins,
                                              int hours)

setExpectedNumberOfRCCalls

public void setExpectedNumberOfRCCalls(double l)

setSecondsPerRCCall

public static void setSecondsPerRCCall(double secondsPerRCCall)

describeUserMemoryProportion

public String describeUserMemoryProportion()

setDebugID

public void setDebugID(String id)

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

setMillisPerRCCall

public static void setMillisPerRCCall(double millisPerRCCall)

getSecondsPerRCCall

public static double getSecondsPerRCCall()

onClone

public UserObject onClone()
interface UserObject

Specified by:
onClone in interface UserObject

copy

public void copy(RCSettings toCopy)


Copyright 2010 UCLA Automated Reasoning Group