pt.tumba.ngram.bayes
Class BayesInterchangeFormat

java.lang.Object
  extended by pt.tumba.ngram.bayes.InterchangeFormat
      extended by pt.tumba.ngram.bayes.BayesInterchangeFormat

public class BayesInterchangeFormat
extends InterchangeFormat


Field Summary
protected  char curChar
           
(package private)  int curLexState
           
(package private)  int DEFAULT
           
(package private)  int defaultLexState
           
(package private)  int DEFAULTVALUE
           
(package private)  int DISCRETE
           
(package private)  int EOF
           
(package private)  int EXPONENT
           
(package private)  int FORMAL_COMMENT
           
(package private)  IFBayesNet ifbn
           
private  ASCII_CharStream input_stream
           
private  java.util.Vector jj_expentries
           
private  int[] jj_expentry
           
private  int jj_gen
           
(package private)  ASCII_CharStream jj_input_stream
           
private  int jj_kind
           
private  int[] jj_la1
           
private  int[] jj_la1_0
           
 Token jj_nt
           
private  int jj_ntk
           
(package private) static long[] jjbitVec0
           
(package private)  int jjmatchedKind
           
(package private)  int jjmatchedPos
           
(package private)  int jjnewStateCnt
           
(package private) static int[] jjnextStates
           
(package private)  int jjround
           
private  int[] jjrounds
           
private  int[] jjstateSet
           
static java.lang.String[] jjstrLiteralImages
           
(package private) static long[] jjtoSkip
           
(package private) static long[] jjtoSpecial
           
(package private) static long[] jjtoToken
           
static java.lang.String[] lexStateNames
           
(package private)  int MULTI_LINE_COMMENT
           
(package private)  int NETWORK
           
(package private)  int NON_NEGATIVE_NUMBER
           
(package private)  int PROBABILITY
           
(package private)  int PROPERTY
           
(package private)  int SINGLE_LINE_COMMENT
           
(package private)  int STRING
           
(package private)  int TABLEVALUES
           
 Token token
           
(package private)  java.lang.String[] tokenImage
           
(package private)  int VARIABLE
           
(package private)  int VARIABLETYPE
           
 
Fields inherited from class pt.tumba.ngram.bayes.InterchangeFormat
bif015, istream, xml_bif03
 
Constructor Summary
BayesInterchangeFormat(java.io.InputStream stream)
           
 
Method Summary
 void CompilationUnit()
           
 int ConditionalMark(java.util.Vector v)
           
 void disable_tracing()
           
 void enable_tracing()
           
 double[] FloatingPointList()
           
 java.lang.Double FloatingPointNumber()
           
 ParseException generateParseException()
           
 IFBayesNet get_ifbn()
           
 Token getNextToken()
           
 java.lang.String getString()
           
 Token getToken(int index)
           
(package private)  void glob_undefined_text()
           
private  Token jj_consume_token(int kind)
           
private  int jj_ntk()
           
private  void jjAddStates(int start, int end)
           
private  void jjCheckNAdd(int state)
           
private  void jjCheckNAddStates(int start)
           
private  void jjCheckNAddStates(int start, int end)
           
private  void jjCheckNAddTwoStates(int state1, int state2)
           
private  Token jjFillToken()
           
private  int jjMoveNfa_0(int startState, int curPos)
           
private  int jjMoveStringLiteralDfa0_0()
           
private  int jjMoveStringLiteralDfa1_0(long active0)
           
private  int jjMoveStringLiteralDfa10_0(long old0, long active0)
           
private  int jjMoveStringLiteralDfa2_0(long old0, long active0)
           
private  int jjMoveStringLiteralDfa3_0(long old0, long active0)
           
private  int jjMoveStringLiteralDfa4_0(long old0, long active0)
           
private  int jjMoveStringLiteralDfa5_0(long old0, long active0)
           
private  int jjMoveStringLiteralDfa6_0(long old0, long active0)
           
private  int jjMoveStringLiteralDfa7_0(long old0, long active0)
           
private  int jjMoveStringLiteralDfa8_0(long old0, long active0)
           
private  int jjMoveStringLiteralDfa9_0(long old0, long active0)
           
private  int jjStartNfa_0(int pos, long active0)
           
private  int jjStartNfaWithStates_0(int pos, int kind, int state)
           
private  int jjStopAtPos(int pos, int kind)
           
private  int jjStopStringLiteralDfa_0(int pos, long active0)
           
 java.util.Vector NetworkContent()
           
 void NetworkDeclaration()
           
 Token nextToken()
           
 void ProbabilityContent(IFProbabilityFunction upf)
           
 IFProbabilityFunction ProbabilityDeclaration()
           
 double[] ProbabilityDefaultEntry()
           
 IFProbabilityEntry ProbabilityEntry()
           
 double[] ProbabilityTable()
           
 java.lang.String[] ProbabilityValuesList()
           
 java.lang.String ProbabilityVariableName()
           
 void ProbabilityVariablesList(IFProbabilityFunction upf)
           
 java.lang.String ProbabilityVariableValue()
           
 java.lang.String Property()
           
 void ReInit(ASCII_CharStream stream)
           
 void ReInit(ASCII_CharStream stream, int lexState)
           
private  void ReInitRounds()
           
 void SwitchTo(int lexState)
           
 IFProbabilityVariable VariableContent(java.lang.String name)
           
 IFProbabilityVariable VariableDeclaration()
           
 java.lang.String[] VariableDiscrete()
           
 java.lang.String[] VariableValuesList()
           
 
Methods inherited from class pt.tumba.ngram.bayes.InterchangeFormat
set_stream, set_stream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EOF

final int EOF
See Also:
Constant Field Values

SINGLE_LINE_COMMENT

final int SINGLE_LINE_COMMENT
See Also:
Constant Field Values

FORMAL_COMMENT

final int FORMAL_COMMENT
See Also:
Constant Field Values

MULTI_LINE_COMMENT

final int MULTI_LINE_COMMENT
See Also:
Constant Field Values

NETWORK

final int NETWORK
See Also:
Constant Field Values

VARIABLE

final int VARIABLE
See Also:
Constant Field Values

PROBABILITY

final int PROBABILITY
See Also:
Constant Field Values

PROPERTY

final int PROPERTY
See Also:
Constant Field Values

VARIABLETYPE

final int VARIABLETYPE
See Also:
Constant Field Values

DISCRETE

final int DISCRETE
See Also:
Constant Field Values

DEFAULTVALUE

final int DEFAULTVALUE
See Also:
Constant Field Values

TABLEVALUES

final int TABLEVALUES
See Also:
Constant Field Values

NON_NEGATIVE_NUMBER

final int NON_NEGATIVE_NUMBER
See Also:
Constant Field Values

EXPONENT

final int EXPONENT
See Also:
Constant Field Values

STRING

final int STRING
See Also:
Constant Field Values

DEFAULT

int DEFAULT

tokenImage

java.lang.String[] tokenImage

jjbitVec0

static final long[] jjbitVec0

jjnextStates

static final int[] jjnextStates

jjstrLiteralImages

public static final java.lang.String[] jjstrLiteralImages

lexStateNames

public static final java.lang.String[] lexStateNames

jjtoToken

static final long[] jjtoToken

jjtoSkip

static final long[] jjtoSkip

jjtoSpecial

static final long[] jjtoSpecial

input_stream

private ASCII_CharStream input_stream

jjrounds

private final int[] jjrounds

jjstateSet

private final int[] jjstateSet

curChar

protected char curChar

curLexState

int curLexState

defaultLexState

int defaultLexState

jjnewStateCnt

int jjnewStateCnt

jjround

int jjround

jjmatchedPos

int jjmatchedPos

jjmatchedKind

int jjmatchedKind

ifbn

IFBayesNet ifbn

jj_input_stream

ASCII_CharStream jj_input_stream

token

public Token token

jj_nt

public Token jj_nt

jj_ntk

private int jj_ntk

jj_gen

private int jj_gen

jj_la1

private final int[] jj_la1

jj_la1_0

private final int[] jj_la1_0

jj_expentries

private java.util.Vector jj_expentries

jj_expentry

private int[] jj_expentry

jj_kind

private int jj_kind
Constructor Detail

BayesInterchangeFormat

public BayesInterchangeFormat(java.io.InputStream stream)
Method Detail

jjStopStringLiteralDfa_0

private final int jjStopStringLiteralDfa_0(int pos,
                                           long active0)

jjStartNfa_0

private final int jjStartNfa_0(int pos,
                               long active0)

jjStopAtPos

private final int jjStopAtPos(int pos,
                              int kind)

jjStartNfaWithStates_0

private final int jjStartNfaWithStates_0(int pos,
                                         int kind,
                                         int state)

jjMoveStringLiteralDfa0_0

private final int jjMoveStringLiteralDfa0_0()

jjMoveStringLiteralDfa1_0

private final int jjMoveStringLiteralDfa1_0(long active0)

jjMoveStringLiteralDfa2_0

private final int jjMoveStringLiteralDfa2_0(long old0,
                                            long active0)

jjMoveStringLiteralDfa3_0

private final int jjMoveStringLiteralDfa3_0(long old0,
                                            long active0)

jjMoveStringLiteralDfa4_0

private final int jjMoveStringLiteralDfa4_0(long old0,
                                            long active0)

jjMoveStringLiteralDfa5_0

private final int jjMoveStringLiteralDfa5_0(long old0,
                                            long active0)

jjMoveStringLiteralDfa6_0

private final int jjMoveStringLiteralDfa6_0(long old0,
                                            long active0)

jjMoveStringLiteralDfa7_0

private final int jjMoveStringLiteralDfa7_0(long old0,
                                            long active0)

jjMoveStringLiteralDfa8_0

private final int jjMoveStringLiteralDfa8_0(long old0,
                                            long active0)

jjMoveStringLiteralDfa9_0

private final int jjMoveStringLiteralDfa9_0(long old0,
                                            long active0)

jjMoveStringLiteralDfa10_0

private final int jjMoveStringLiteralDfa10_0(long old0,
                                             long active0)

jjCheckNAdd

private final void jjCheckNAdd(int state)

jjAddStates

private final void jjAddStates(int start,
                               int end)

jjCheckNAddTwoStates

private final void jjCheckNAddTwoStates(int state1,
                                        int state2)

jjCheckNAddStates

private final void jjCheckNAddStates(int start,
                                     int end)

jjCheckNAddStates

private final void jjCheckNAddStates(int start)

jjMoveNfa_0

private final int jjMoveNfa_0(int startState,
                              int curPos)

ReInit

public void ReInit(ASCII_CharStream stream)

ReInitRounds

private final void ReInitRounds()

ReInit

public void ReInit(ASCII_CharStream stream,
                   int lexState)

SwitchTo

public void SwitchTo(int lexState)

jjFillToken

private final Token jjFillToken()

nextToken

public final Token nextToken()

get_ifbn

public IFBayesNet get_ifbn()
Overrides:
get_ifbn in class InterchangeFormat

glob_undefined_text

void glob_undefined_text()
                   throws ParseException
Throws:
ParseException

CompilationUnit

public final void CompilationUnit()
                           throws ParseException
Overrides:
CompilationUnit in class InterchangeFormat
Throws:
ParseException

NetworkDeclaration

public final void NetworkDeclaration()
                              throws ParseException
Throws:
ParseException

NetworkContent

public final java.util.Vector NetworkContent()
                                      throws ParseException
Throws:
ParseException

VariableDeclaration

public final IFProbabilityVariable VariableDeclaration()
                                                throws ParseException
Throws:
ParseException

VariableContent

public final IFProbabilityVariable VariableContent(java.lang.String name)
                                            throws ParseException
Throws:
ParseException

VariableDiscrete

public final java.lang.String[] VariableDiscrete()
                                          throws ParseException
Throws:
ParseException

VariableValuesList

public final java.lang.String[] VariableValuesList()
                                            throws ParseException
Throws:
ParseException

ProbabilityVariableValue

public final java.lang.String ProbabilityVariableValue()
                                                throws ParseException
Throws:
ParseException

ProbabilityDeclaration

public final IFProbabilityFunction ProbabilityDeclaration()
                                                   throws ParseException
Throws:
ParseException

ProbabilityVariablesList

public final void ProbabilityVariablesList(IFProbabilityFunction upf)
                                    throws ParseException
Throws:
ParseException

ConditionalMark

public final int ConditionalMark(java.util.Vector v)
                          throws ParseException
Throws:
ParseException

ProbabilityVariableName

public final java.lang.String ProbabilityVariableName()
                                               throws ParseException
Throws:
ParseException

ProbabilityContent

public final void ProbabilityContent(IFProbabilityFunction upf)
                              throws ParseException
Throws:
ParseException

ProbabilityEntry

public final IFProbabilityEntry ProbabilityEntry()
                                          throws ParseException
Throws:
ParseException

ProbabilityValuesList

public final java.lang.String[] ProbabilityValuesList()
                                               throws ParseException
Throws:
ParseException

ProbabilityDefaultEntry

public final double[] ProbabilityDefaultEntry()
                                       throws ParseException
Throws:
ParseException

ProbabilityTable

public final double[] ProbabilityTable()
                                throws ParseException
Throws:
ParseException

FloatingPointList

public final double[] FloatingPointList()
                                 throws ParseException
Throws:
ParseException

FloatingPointNumber

public final java.lang.Double FloatingPointNumber()
                                           throws ParseException
Throws:
ParseException

Property

public final java.lang.String Property()
                                throws ParseException
Throws:
ParseException

getString

public final java.lang.String getString()
                                 throws ParseException
Throws:
ParseException

jj_consume_token

private final Token jj_consume_token(int kind)
                              throws ParseException
Throws:
ParseException

getNextToken

public final Token getNextToken()

getToken

public final Token getToken(int index)

jj_ntk

private final int jj_ntk()

generateParseException

public final ParseException generateParseException()

enable_tracing

public final void enable_tracing()

disable_tracing

public final void disable_tracing()