edu.ucla.belief.io.hugin
Class HuginLogReader
Object
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
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 |
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
HuginLogReader
public HuginLogReader(InputStream stream)
HuginLogReader
public HuginLogReader(Reader stream)
HuginLogReader
public HuginLogReader(HuginLogReaderTokenManager tm)
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