Package org.aksw.limes.core.io.parser
Class Parser
- java.lang.Object
-
- org.aksw.limes.core.io.parser.Parser
-
-
Field Summary
Fields Modifier and Type Field Description static StringADDprotected Stringexpressionprotected doubleleftCoefficientprotected StringleftTermstatic org.slf4j.Loggerloggerstatic StringMAXstatic StringMINstatic StringMULTprotected Stringoperatorprotected doublerightCoefficientprotected StringrightTerm
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetLeftCoefficient()StringgetLeftTerm()StringgetOperator()doublegetRightCoefficient()StringgetRightTerm()voidgetTerms()Splits the expression into two termsdoublegetThreshold()doublegetThreshold1()doublegetThreshold2()booleanisAtomic()Tests whether an expression is atomic or notvoidsetThreshold(double threshold)voidsetThreshold1(double threshold1)voidsetThreshold2(double threshold2)
-
-
-
Field Detail
-
logger
public static final org.slf4j.Logger logger
-
MULT
public static final String MULT
- See Also:
- Constant Field Values
-
ADD
public static final String ADD
- See Also:
- Constant Field Values
-
MAX
public static final String MAX
- See Also:
- Constant Field Values
-
MIN
public static final String MIN
- See Also:
- Constant Field Values
-
leftCoefficient
protected double leftCoefficient
-
rightCoefficient
protected double rightCoefficient
-
leftTerm
protected String leftTerm
-
rightTerm
protected String rightTerm
-
operator
protected String operator
-
expression
protected String expression
-
-
Constructor Detail
-
Parser
public Parser(String input, double theta)
-
-
Method Detail
-
isAtomic
public boolean isAtomic()
Tests whether an expression is atomic or not
-
getLeftTerm
public String getLeftTerm()
-
getOperator
public String getOperator()
-
getRightTerm
public String getRightTerm()
-
getLeftCoefficient
public double getLeftCoefficient()
-
getRightCoefficient
public double getRightCoefficient()
- Returns:
- right coefficient
-
getTerms
public void getTerms()
Splits the expression into two terms
-
getThreshold2
public double getThreshold2()
- Returns:
- threshold2
-
setThreshold2
public void setThreshold2(double threshold2)
- Parameters:
threshold2-
-
getThreshold1
public double getThreshold1()
-
setThreshold1
public void setThreshold1(double threshold1)
-
getThreshold
public double getThreshold()
-
setThreshold
public void setThreshold(double threshold)
-
-