Class SourceDelegateVisitor

java.lang.Object
com.aquima.interactions.rule.ds.delegate.RuleDelegateVisitor
com.aquima.interactions.rule.ds.delegate.SourceDelegateVisitor
All Implemented Interfaces:
IRuleVisitor, ISourceVisitor

public class SourceDelegateVisitor extends RuleDelegateVisitor implements ISourceVisitor
Delegate datasource for easy datasource extension. All method calls are delegated to the delegate visitor without adding any functionality.
Since:
8.4.3
Author:
Jon van Leuven
  • Constructor Details

    • SourceDelegateVisitor

      public SourceDelegateVisitor(ISourceVisitor visitor)
  • 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 businessRule)
      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:
      businessRule - Data source capable of providing the data needed to initialize a business rule.
    • 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.