Class Parser

  • All Implemented Interfaces:
    IParser

    public class Parser
    extends Object
    implements IParser
    Parse Link Specifications
    Version:
    Aug 23, 2016
    Author:
    Mohamed Sherif (sherif@informatik.uni-leipzig.de)
    • Constructor Detail

      • Parser

        public Parser​(String input,
                      double theta)
    • Method Detail

      • isAtomic

        public boolean isAtomic()
        Tests whether an expression is atomic or not
        Specified by:
        isAtomic in interface IParser
        Returns:
        True if atomic, else false
      • 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)