edu.ucla.belief.io.hugin
Class HuginLogReader

Object
  extended by HuginLogReader
All Implemented Interfaces:
HuginLogReaderConstants

public class HuginLogReader
extends Object
implements HuginLogReaderConstants

HuginLogReader - a class that parses Hugin ".hlg" files and returns a String representation of a dtree.

Since:
20021206
Author:
keith cascio

Field Summary
static boolean FLAG_DEBUG
           
 Token jj_nt
           
static String STR_DELIMITER
           
static String STR_PAREN_LEFT
           
static String STR_PAREN_RIGHT
           
 Token token
           
 HuginLogReaderTokenManager token_source
           
 
Fields inherited from interface HuginLogReaderConstants
AND_LIT, ASSIGNMENTS_DECL_LIT1, ASSIGNMENTS_DECL_LIT2, ASSIGNMENTS_LIT, CLIQUE_DECL_LIT1, CLIQUE_DECL_LIT2, CLIQUE_DECL_LIT3, CLIQUES_LIT1, CLIQUES_LIT2, COMMENT, DEFAULT, ELIMINATION_LIT, EOF, ID, JUNCTION_FOREST_LIT, JUNCTION_TREE_DECL_LIT1, JUNCTION_TREE_DECL_LIT2, LINK_DECL_LIT1, LINK_DECL_LIT2, LINK_DECL_LIT3, MORAL_LIT1, MORAL_LIT2, NUM, tokenImage, TRIAGULATE_LIT1, TRIAGULATE_LIT2, TRIAGULATE_LIT3, TRIAGULATE_LIT4, TRIANGULATE_LIT5, TRIANGULATE_LIT6, TRIANGULATE_LIT7, TRIANGULATE_LIT8
 
Constructor Summary
HuginLogReader(HuginLogReaderTokenManager tm)
           
HuginLogReader(InputStream stream)
           
HuginLogReader(Reader stream)
           
 
Method Summary
 List[] assignmentsBlock(int numcliques)
           
 int cliquesBlock()
           
 int dateBlock()
           
 void disable_tracing()
           
 String dtree()
           
 String dtree(boolean balanced)
           
 List eliminationBlock()
           
 void enable_tracing()
           
 void forestBlock(int numcliques)
           
 ParseException generateParseException()
           
 List[] getAssignments()
           
 int[] getChildCounts()
           
 List getCliques()
           
 List getEliminationOrder()
           
 boolean[][] getJoinForest()
           
 Token getNextToken()
           
 List getRoots()
           
 Token getToken(int index)
           
 long getTotalCliqueTableSize()
           
 long getTotalSeparatorTableSize()
           
 List idList()
           
static void main(String[] args)
           
 int moralBlock()
           
 void parse()
           
 void ReInit(HuginLogReaderTokenManager tm)
           
 void ReInit(InputStream stream)
           
 void ReInit(Reader stream)
           
 int triangulateBlock()
           
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FLAG_DEBUG

public static boolean FLAG_DEBUG

STR_PAREN_LEFT

public static final String STR_PAREN_LEFT
See Also:
Constant Field Values

STR_DELIMITER

public static final String STR_DELIMITER
See Also:
Constant Field Values

STR_PAREN_RIGHT

public static final String STR_PAREN_RIGHT
See Also:
Constant Field Values

token_source

public HuginLogReaderTokenManager token_source

token

public Token token

jj_nt

public Token jj_nt
Constructor Detail

HuginLogReader

public HuginLogReader(InputStream stream)

HuginLogReader

public HuginLogReader(Reader stream)

HuginLogReader

public HuginLogReader(HuginLogReaderTokenManager tm)
Method Detail

main

public static void main(String[] args)

getJoinForest

public boolean[][] getJoinForest()

getChildCounts

public int[] getChildCounts()

getRoots

public List getRoots()

getEliminationOrder

public List getEliminationOrder()

getCliques

public List getCliques()

getAssignments

public List[] getAssignments()

dtree

public String dtree()
             throws ParseException
Throws:
ParseException

dtree

public String dtree(boolean balanced)
             throws ParseException
Throws:
ParseException

getTotalCliqueTableSize

public long getTotalCliqueTableSize()
Since:
121702

getTotalSeparatorTableSize

public long getTotalSeparatorTableSize()
Since:
121702

parse

public final void parse()
                 throws ParseException
Throws:
ParseException
Since:
121302

dateBlock

public final int dateBlock()
                    throws ParseException
Throws:
ParseException

moralBlock

public final int moralBlock()
                     throws ParseException
Throws:
ParseException

triangulateBlock

public final int triangulateBlock()
                           throws ParseException
Throws:
ParseException

idList

public final List idList()
                  throws ParseException
Throws:
ParseException

eliminationBlock

public final List eliminationBlock()
                            throws ParseException
Throws:
ParseException

cliquesBlock

public final int cliquesBlock()
                       throws ParseException
Throws:
ParseException

forestBlock

public final void forestBlock(int numcliques)
                       throws ParseException
Throws:
ParseException

assignmentsBlock

public final List[] assignmentsBlock(int numcliques)
                              throws ParseException
Throws:
ParseException

ReInit

public void ReInit(InputStream stream)

ReInit

public void ReInit(Reader stream)

ReInit

public void ReInit(HuginLogReaderTokenManager tm)

getNextToken

public final Token getNextToken()

getToken

public final Token getToken(int index)

generateParseException

public final ParseException generateParseException()

enable_tracing

public final void enable_tracing()

disable_tracing

public final void disable_tracing()


Copyright 2010 UCLA Automated Reasoning Group