Class FormulaAST

java.lang.Object
com.articulate.sigma.Formula
com.articulate.sigma.parsing.FormulaAST
All Implemented Interfaces:
Serializable, Comparable

public class FormulaAST extends Formula
See Also:
  • Field Details

    • argMap

      public Map<String,Map<Integer,Set<com.articulate.sigma.parsing.SuokifParser.ArgumentContext>>> argMap
    • eqList

      public List<List<com.articulate.sigma.parsing.SuokifParser.TermContext>> eqList
    • explicitTypes

      public Map<String,Set<String>> explicitTypes
    • varTypes

      public Map<String,Set<String>> varTypes
    • rowvarLiterals

      public Set<org.antlr.v4.runtime.ParserRuleContext> rowvarLiterals
    • constants

      public Map<String,FormulaAST.ArgStruct> constants
    • rowVarStructs

      public Map<String,Set<FormulaAST.RowStruct>> rowVarStructs
    • parsedFormula

      public com.articulate.sigma.parsing.SuokifParser.SentenceContext parsedFormula
    • isDoc

      public boolean isDoc
    • isRule

      public boolean isRule
    • containsNumber

      public boolean containsNumber
    • antecedentTerms

      public Set<String> antecedentTerms
    • consequentTerms

      public Set<String> consequentTerms
    • strForm

      public String strForm
  • Constructor Details

    • FormulaAST

      public FormulaAST()
    • FormulaAST

      public FormulaAST(FormulaAST f)
  • Method Details

    • mergeFormulaAST

      public FormulaAST mergeFormulaAST(FormulaAST f2)
      Merge arguments to a predicate, which may themselves be complex formulas, with an existing formula.
    • mergeFormulaAST

      public FormulaAST mergeFormulaAST(List<FormulaAST> ar)
      Merge arguments to a predicate, which may themselves be complex formulas, with an existing formula.
    • addRowVarStruct

      public void addRowVarStruct(String var, FormulaAST.RowStruct rs)
    • createComment

      public static FormulaAST createComment(String input)
      the textual version of the formula
    • printCaches

      public void printCaches()
      the textual version of the formula
      Overrides:
      printCaches in class Formula