|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object blog.Main
public class Main
Main program for the BLOG (Bayesian Logic) inference engine. Usage:
java blog.Main file1 ... fileNEach file contains a sequence of BLOG statements. These may be declarations (specifying the model itself), evidence statements, or queries. The convention is to use one file for the model (with the "mblog" suffix), one file for the evidence (with the "eblog" suffix), and one file for the queries (with the "qblog" suffix). The files are loaded in the order specified, so the first file must be a model file. Optional flags:
Constructor Summary | |
---|---|
Main()
|
Method Summary | |
---|---|
static java.io.PrintStream |
filePrintStream(java.lang.String s)
Returns a PrintStream representing the newly created file, with given pathname s. |
static java.lang.String |
histOut()
|
static void |
main(java.lang.String[] args)
|
static java.util.List |
makeReaders(java.util.Collection filenames)
|
static int |
numSamples()
|
static int |
numTrials()
|
static int |
outputInterval()
|
static java.lang.String |
outputPath()
|
static void |
printTimes(java.io.PrintStream ps,
java.lang.String s,
int n)
Print to the PrintStream ps the String s exactly n times, followed by a newline. |
static void |
setup(Model model,
Evidence evidence,
java.util.List queries,
java.util.Collection readersAndOrigins,
java.util.Collection setupExtenders,
boolean verbose,
boolean parseFromMessage)
Reads and prepares model, evidence and queries for inference. |
static void |
stringSetup(Model model,
Evidence evidence,
java.util.List queries,
java.lang.String modelString)
A version of setup(Model, Evidence, List, Collection,
Collection, boolean, boolean)
receiving a single string, no setup extenders, and not verbose. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Main()
Method Detail |
---|
public static void main(java.lang.String[] args)
public static java.util.List makeReaders(java.util.Collection filenames)
public static void printTimes(java.io.PrintStream ps, java.lang.String s, int n)
public static java.io.PrintStream filePrintStream(java.lang.String s)
public static void setup(Model model, Evidence evidence, java.util.List queries, java.util.Collection readersAndOrigins, java.util.Collection setupExtenders, boolean verbose, boolean parseFromMessage)
readersAndOrigins
- A list of Object[] of size two, containing
a Reader
with text to be
parsed and origin name (such as file name).setupExtenders
- A collection of SetupExtender
(s) to
be run.verbose
- Whether the procedure is verbose.parseFromMessage
- Whether to print a message indicating
"Parsing from..."public static void stringSetup(Model model, Evidence evidence, java.util.List queries, java.lang.String modelString)
setup(Model, Evidence, List, Collection,
Collection, boolean, boolean)
receiving a single string, no setup extenders, and not verbose.
public static java.lang.String outputPath()
public static int outputInterval()
public static int numSamples()
public static int numTrials()
public static java.lang.String histOut()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |