Class JustificationVisitor

java.lang.Object
com.aquima.interactions.rule.graph.JustificationVisitor
All Implemented Interfaces:
IJustificationVisitor

public class JustificationVisitor extends Object implements IJustificationVisitor
This visitor is used during initialization to gather justification information of an inference rule.
Since:
5.1
Author:
O. Kerpershoek
  • Constructor Details

    • JustificationVisitor

      public JustificationVisitor(IExpressionParser parser, String ruleName)
      Constructs a justification visitor that will gather all the justifications for a rule.
      Parameters:
      parser - The expression parser that should be used to parse the justification texts.
      ruleName - The name of the rule for which the justifications are gathered.
  • Method Details

    • getJustifications

      public JustificationInfo getJustifications()
      This method returns an optimized object containing all the justifications of the rule.
      Returns:
      an optimized object containing all the justifications of the rule.
    • addJustification

      public void addJustification(IJustificationDS datasource)
      Description copied from interface: IJustificationVisitor
      This method may be used to add a justification.
      Specified by:
      addJustification in interface IJustificationVisitor
      Parameters:
      datasource - Required parameter containing the name justification datasource.