|
Parsing Engine | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdanbikel.parser.Constants
public class Constants
Contains static constants for use by this package.
Field Summary | |
---|---|
static int |
defaultFileBufsize
The default file buffer size, which may be passed as an argument to BufferedReader and BufferedWriter constructors. |
static Symbol |
falseSym
A symbol constant to represent falsity. |
static Symbol |
firstSym
The symbol constant indicating to match the first child node in the natural walk of a parent's children in a syntax tree (left-to-right, in English). |
static Symbol |
kleeneStarSym
A symbol constant to represent Kleene star. |
static Symbol |
lastSym
The symbol constant indicating to match the last child node in the reverse of the natural walk of a parent's children in a syntax tree (right-to-left, in English). |
static boolean |
LEFT
The constant representing the left side or the left-to-right direction. |
static Symbol |
leftSym
The symbol constant representing the left side or the left-to-right direction. |
static double |
logOfZero
A constant to represent the logarithm of zero, equal to Double#NEGATIVE_INFINITY . |
static double |
logProbCertain
A constant to represent the logarithm of a probability of 1.0 (equal to 0.0). |
static double |
logProbSmall
The constant to represent the logarithm of 10E-19, which is a very small probability. |
static Symbol |
notSym
A symbol constant to represent negation. |
static double |
probCertain
A constant to represent the probability of 1.0 (equal to 1.0). |
static double |
probImpossible
A constant to represent the probability of an impossible event (equal to 0.0). |
static boolean |
RIGHT
The constant representing the right side or the right-to-left direction. |
static Symbol |
rightSym
The symbol constant representing the right side or the right-to-left direction. |
static Symbol |
trueSym
A symbol constant to represent truth. |
Method Summary | |
---|---|
static Symbol |
booleanToSym(boolean value)
Converts a boolean value into a symbol representation. |
static Symbol |
sideToSym(boolean side)
Converts the boolean value of LEFT into leftSym
and converts the boolean value of RIGHT into rightSym . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final boolean LEFT
public static final boolean RIGHT
public static final Symbol leftSym
public static final Symbol rightSym
public static final Symbol firstSym
public static final Symbol lastSym
public static final Symbol trueSym
public static final Symbol falseSym
public static final Symbol notSym
public static final Symbol kleeneStarSym
public static final double logOfZero
Double#NEGATIVE_INFINITY
.
public static final double logProbSmall
public static final double logProbCertain
public static final double probImpossible
public static final double probCertain
public static final int defaultFileBufsize
BufferedReader
and BufferedWriter
constructors.
Method Detail |
---|
public static final Symbol booleanToSym(boolean value)
public static final Symbol sideToSym(boolean side)
LEFT
into leftSym
and converts the boolean value of RIGHT
into rightSym
.
|
Parsing Engine | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |