Class ReportingSourceVisitor

java.lang.Object
com.aquima.interactions.foundation.report.ReportingVisitorDS
com.aquima.interactions.rule.report.ReportingSourceVisitor
All Implemented Interfaces:
IRuleVisitor, ISourceVisitor

public class ReportingSourceVisitor extends ReportingVisitorDS implements ISourceVisitor
ISourceVisitor implementation that adds error reporting.
Since:
5.0
Author:
O. Kerpershoek
  • Constructor Details

  • Method Details

    • addSource

      public void addSource(IInferenceRule source)
      Description copied from interface: ISourceVisitor
      This method may be used to add a custom inference rule to the rule engine.
      Specified by:
      addSource in interface ISourceVisitor
      Parameters:
      source - The custom implementation of the inference rule interface.
    • addExternalSource

      public void addExternalSource(IExternalRuleDS ruleDS)
      Description copied from interface: ISourceVisitor
      The data layer may invoke this method to add an external inference rule. The rule factory will be used to locate the implementation for the inference rule.
      Specified by:
      addExternalSource in interface ISourceVisitor
      Parameters:
      ruleDS - Data source providing information about the external inference rule.
    • addTable

      public void addTable(IDecisionTableDS source)
      Description copied from interface: ISourceVisitor
      This method may be used to add a decision table to the rule engine.
      Specified by:
      addTable in interface ISourceVisitor
      Parameters:
      source - Data source capable of providing the data needed to initialize a decision table.
    • addRule

      public void addRule(IBusinessRuleDS source)
      Description copied from interface: ISourceVisitor
      This method may be used to add a business rule (IF-THEN rule) to the rule engine.
      Specified by:
      addRule in interface ISourceVisitor
      Parameters:
      source - Data source capable of providing the data needed to initialize a business rule.
    • getMetaModel

      public IMetaModel getMetaModel()
      Description copied from interface: IRuleVisitor
      This method returns the meta model of the rule engine.
      Specified by:
      getMetaModel in interface IRuleVisitor
      Returns:
      the meta model of the rule engine.
    • getParser

      public IParserFactory getParser()
      Description copied from interface: IRuleVisitor
      This method returns the expression parser of the rule engine which may be used to parse expressions and dynamic texts.
      Specified by:
      getParser in interface IRuleVisitor
      Returns:
      the expression parser of the rule engine.
    • addDefaultRule

      public void addDefaultRule(IDefaultRuleDS defaultDS)
      Description copied from interface: ISourceVisitor
      This method may be used to add a default rule to the rule graph. Default rules are different from normal inference rules as they may source a value for only a single attribute, and will be executed after all the other rules have been evaluated.
      Specified by:
      addDefaultRule in interface ISourceVisitor
      Parameters:
      defaultDS - Data source providing the information for the default rule.
    • addDataRule

      public void addDataRule(IDataRuleDS dataRule)
      Description copied from interface: ISourceVisitor
      This method may be used to add a data rule to the rule engine.
      Specified by:
      addDataRule in interface ISourceVisitor
      Parameters:
      dataRule - Data source capable of providing the data needed to initialize a data rule.