edu.ucla.belief.io.hugin
Class HuginReader
Object
HuginReader
- All Implemented Interfaces:
- HuginReaderConstants, ProgressMonitorable
public class HuginReader
- extends Object
- implements ProgressMonitorable, HuginReaderConstants
- Since:
- 20020226, 20060518
- Author:
- James Park, keith cascio
Fields inherited from interface HuginReaderConstants |
CLASS, COMMENT, CONTINUOUS, DECISION, DEFAULT, DISCRETE, EOF, ID, MAP_LIT, NET, NODE, NUM, POTENTIAL, STRING, tokenImage, UTILITY, VALSTRING |
STR_MAP_TOKEN
public static final String STR_MAP_TOKEN
- See Also:
- Constant Field Values
token_source
public HuginReaderTokenManager token_source
token
public Token token
jj_nt
public Token jj_nt
lookingAhead
public boolean lookingAhead
HuginReader
public HuginReader(InputStream stream)
HuginReader
public HuginReader(InputStream stream,
String encoding)
HuginReader
public HuginReader(Reader stream)
HuginReader
public HuginReader(HuginReaderTokenManager tm)
setRelaxed
public void setRelaxed(boolean flag)
- Since:
- 20060804
setEstimator
public void setEstimator(SkimmerEstimator huginworkestimator)
setConstructionTask
public void setConstructionTask(NodeLinearTask task)
beliefNetwork
public BeliefNetwork beliefNetwork()
throws ParseException
- Throws:
ParseException
getProgress
public int getProgress()
- interface ProgressMonitorable
- Specified by:
getProgress
in interface ProgressMonitorable
- Since:
- 20060518
getProgressMax
public int getProgressMax()
- interface ProgressMonitorable
- Specified by:
getProgressMax
in interface ProgressMonitorable
- Since:
- 20060518
isFinished
public boolean isFinished()
- interface ProgressMonitorable
- Specified by:
isFinished
in interface ProgressMonitorable
- Since:
- 20060519
getNote
public String getNote()
- interface ProgressMonitorable
- Specified by:
getNote
in interface ProgressMonitorable
- Since:
- 20060519
decompose
public ProgressMonitorable[] decompose()
- interface ProgressMonitorable
- Specified by:
decompose
in interface ProgressMonitorable
- Since:
- 20060519
getDescription
public String getDescription()
- interface ProgressMonitorable
- Specified by:
getDescription
in interface ProgressMonitorable
- Since:
- 20060519
main
public static void main(String[] args)
doBeliefNetwork
public final BeliefNetwork doBeliefNetwork()
throws ParseException
- Throws:
ParseException
netBlock
public final Map netBlock()
throws ParseException
- Throws:
ParseException
classBlock
public final Map classBlock(Map nodeNamesToFiniteVariables,
Collection potentials)
throws ParseException
- Throws:
ParseException
potentialBlock
public final HuginPotential potentialBlock()
throws ParseException
- Throws:
ParseException
idList
public final List idList()
throws ParseException
- Throws:
ParseException
nodeBlock
public final HuginNode nodeBlock()
throws ParseException
- Throws:
ParseException
valueList
public final Map valueList()
throws ParseException
- Throws:
ParseException
value
public final Object value(boolean asInteger)
throws ParseException
- Throws:
ParseException
function
public final HuginFunction function()
throws ParseException
- Throws:
ParseException
ReInit
public void ReInit(InputStream stream)
ReInit
public void ReInit(InputStream stream,
String encoding)
ReInit
public void ReInit(Reader stream)
ReInit
public void ReInit(HuginReaderTokenManager tm)
getNextToken
public final Token getNextToken()
getToken
public final Token getToken(int index)
generateParseException
public ParseException generateParseException()
enable_tracing
public final void enable_tracing()
disable_tracing
public final void disable_tracing()
Copyright 2010 UCLA Automated Reasoning Group