edu.ucla.belief.uai2006
Class UaiMain

Object
  extended by UaiMain
Direct Known Subclasses:
UaiMpeMain, UaiPeMain

public abstract class UaiMain
extends Object

UAI-06 Evaluation : Main Program todo: load evidence todo: load MAP variables

Author:
Arthur Choi

Field Summary
static boolean aceMode
           
 BeliefNetwork bn
           
static boolean bnbMode
           
 Map<FiniteVariable,Object> evidence
           
static double LOG10
           
 Set<FiniteVariable> mapVars
           
static boolean normalize
           
static boolean rclink2Mode
           
static boolean rclinkMode
           
static boolean rcMode
           
 long startTime1
           
 long startTime2
           
static String STR_ARG_ACE
           
static String STR_ARG_BNB
           
static String STR_ARG_HELP
           
static String STR_ARG_NETWORK
           
static String STR_ARG_NORMALIZE
           
static String STR_ARG_RC
           
static String STR_ARG_RCLINK
           
static String STR_ARG_RCLINK2
           
static String STR_ARG_TEST
           
static String STR_ARG_VERBOSE
           
static String STR_ARG_VERBOSE1
           
static String STR_XBIF
           
static boolean testMode
           
static boolean verbose
           
static boolean verboseEngine
           
 
Constructor Summary
UaiMain(String filename)
           
UaiMain(String[] args)
           
 
Method Summary
static double bigDecimalLog(BigDecimal bd)
           
abstract  UaiMapSolution computeQuery()
           
static double ensureCPTProperty(BeliefNetwork bn)
           
static double ensureCPTProperty(FiniteVariable var)
           
 void loadBeliefNetwork(String filename)
           
static String loadCommandLineOptions(String[] args)
          Load methods
 void loadEvidence()
           
 void loadMapVariables()
           
 void outputSolution(UaiMapSolution sol)
           
 void printInfo(UaiPreprocessResult pr, UaiMapSolution sol)
          Query methods
static void verboseEnginePrintln(String s)
           
static void verbosePrint(String s)
          Helper methods
static void verbosePrintln(String s)
           
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

normalize

public static boolean normalize

verbose

public static boolean verbose

verboseEngine

public static boolean verboseEngine

testMode

public static boolean testMode

aceMode

public static boolean aceMode

rcMode

public static boolean rcMode

rclinkMode

public static boolean rclinkMode

rclink2Mode

public static boolean rclink2Mode

bnbMode

public static boolean bnbMode

bn

public BeliefNetwork bn

evidence

public Map<FiniteVariable,Object> evidence

mapVars

public Set<FiniteVariable> mapVars

startTime1

public long startTime1

startTime2

public long startTime2

STR_ARG_HELP

public static final String STR_ARG_HELP
See Also:
Constant Field Values

STR_ARG_NETWORK

public static final String STR_ARG_NETWORK
See Also:
Constant Field Values

STR_ARG_NORMALIZE

public static final String STR_ARG_NORMALIZE
See Also:
Constant Field Values

STR_ARG_VERBOSE

public static final String STR_ARG_VERBOSE
See Also:
Constant Field Values

STR_ARG_VERBOSE1

public static final String STR_ARG_VERBOSE1
See Also:
Constant Field Values

STR_ARG_TEST

public static final String STR_ARG_TEST
See Also:
Constant Field Values

STR_ARG_ACE

public static final String STR_ARG_ACE
See Also:
Constant Field Values

STR_ARG_RC

public static final String STR_ARG_RC
See Also:
Constant Field Values

STR_ARG_RCLINK

public static final String STR_ARG_RCLINK
See Also:
Constant Field Values

STR_ARG_RCLINK2

public static final String STR_ARG_RCLINK2
See Also:
Constant Field Values

STR_ARG_BNB

public static final String STR_ARG_BNB
See Also:
Constant Field Values

STR_XBIF

public static final String STR_XBIF
See Also:
Constant Field Values

LOG10

public static final double LOG10
Constructor Detail

UaiMain

public UaiMain(String[] args)

UaiMain

public UaiMain(String filename)
Method Detail

verbosePrint

public static void verbosePrint(String s)
Helper methods


verbosePrintln

public static void verbosePrintln(String s)

verboseEnginePrintln

public static void verboseEnginePrintln(String s)

loadCommandLineOptions

public static String loadCommandLineOptions(String[] args)
Load methods


loadBeliefNetwork

public void loadBeliefNetwork(String filename)

ensureCPTProperty

public static double ensureCPTProperty(BeliefNetwork bn)

ensureCPTProperty

public static double ensureCPTProperty(FiniteVariable var)

loadEvidence

public void loadEvidence()

loadMapVariables

public void loadMapVariables()

printInfo

public void printInfo(UaiPreprocessResult pr,
                      UaiMapSolution sol)
Query methods


computeQuery

public abstract UaiMapSolution computeQuery()

outputSolution

public void outputSolution(UaiMapSolution sol)

bigDecimalLog

public static double bigDecimalLog(BigDecimal bd)


Copyright 2010 UCLA Automated Reasoning Group