edu.ucla.belief.io.hugin
Class HuginReader

Object
  extended by HuginReader
All Implemented Interfaces:
HuginReaderConstants, ProgressMonitorable

public class HuginReader
extends Object
implements ProgressMonitorable, HuginReaderConstants

Since:
20020226, 20060518
Author:
James Park, keith cascio

Field Summary
 Token jj_nt
           
 boolean lookingAhead
           
static String STR_MAP_TOKEN
           
 Token token
           
 HuginReaderTokenManager token_source
           
 
Fields inherited from interface HuginReaderConstants
CLASS, COMMENT, CONTINUOUS, DECISION, DEFAULT, DISCRETE, EOF, ID, MAP_LIT, NET, NODE, NUM, POTENTIAL, STRING, tokenImage, UTILITY, VALSTRING
 
Constructor Summary
HuginReader(HuginReaderTokenManager tm)
           
HuginReader(InputStream stream)
           
HuginReader(InputStream stream, String encoding)
           
HuginReader(Reader stream)
           
 
Method Summary
 BeliefNetwork beliefNetwork()
           
 Map classBlock(Map nodeNamesToFiniteVariables, Collection potentials)
           
 ProgressMonitorable[] decompose()
          interface ProgressMonitorable
 void disable_tracing()
           
 BeliefNetwork doBeliefNetwork()
           
 void enable_tracing()
           
 HuginFunction function()
           
 ParseException generateParseException()
           
 String getDescription()
          interface ProgressMonitorable
 Token getNextToken()
           
 String getNote()
          interface ProgressMonitorable
 int getProgress()
          interface ProgressMonitorable
 int getProgressMax()
          interface ProgressMonitorable
 Token getToken(int index)
           
 List idList()
           
 boolean isFinished()
          interface ProgressMonitorable
static void main(String[] args)
           
 Map netBlock()
           
 HuginNode nodeBlock()
           
 HuginPotential potentialBlock()
           
 void ReInit(HuginReaderTokenManager tm)
           
 void ReInit(InputStream stream)
           
 void ReInit(InputStream stream, String encoding)
           
 void ReInit(Reader stream)
           
 void setConstructionTask(NodeLinearTask task)
           
 void setEstimator(SkimmerEstimator huginworkestimator)
           
 void setRelaxed(boolean flag)
           
 Object value(boolean asInteger)
           
 Map valueList()
           
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

HuginReader

public HuginReader(InputStream stream)

HuginReader

public HuginReader(InputStream stream,
                   String encoding)

HuginReader

public HuginReader(Reader stream)

HuginReader

public HuginReader(HuginReaderTokenManager tm)
Method Detail

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