Class ReportingSourceVisitor
java.lang.Object
com.aquima.interactions.foundation.report.ReportingVisitorDS
com.aquima.interactions.rule.report.ReportingSourceVisitor
- All Implemented Interfaces:
IRuleVisitor
,ISourceVisitor
ISourceVisitor implementation that adds error reporting.
- Since:
- 5.0
- Author:
- O. Kerpershoek
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ReportingSourceVisitor
(IInitializationReport report, ISourceVisitor visitor) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addDataRule
(IDataRuleDS dataRule) This method may be used to add a data rule to the rule engine.void
addDefaultRule
(IDefaultRuleDS defaultDS) This method may be used to add a default rule to the rule graph.void
addExternalSource
(IExternalRuleDS ruleDS) The data layer may invoke this method to add an external inference rule.void
addRule
(IBusinessRuleDS source) This method may be used to add a business rule (IF-THEN rule) to the rule engine.void
addSource
(IInferenceRule source) This method may be used to add a custom inference rule to the rule engine.void
addTable
(IDecisionTableDS source) This method may be used to add a decision table to the rule engine.This method returns the meta model of the rule engine.This method returns the expression parser of the rule engine which may be used to parse expressions and dynamic texts.Methods inherited from class com.aquima.interactions.foundation.report.ReportingVisitorDS
addError, addMessage, beginScope, endScope, getCategory, getReport
-
Constructor Details
-
ReportingSourceVisitor
-
-
Method Details
-
addSource
Description copied from interface:ISourceVisitor
This method may be used to add a custom inference rule to the rule engine.- Specified by:
addSource
in interfaceISourceVisitor
- Parameters:
source
- The custom implementation of the inference rule interface.
-
addExternalSource
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 interfaceISourceVisitor
- Parameters:
ruleDS
- Data source providing information about the external inference rule.
-
addTable
Description copied from interface:ISourceVisitor
This method may be used to add a decision table to the rule engine.- Specified by:
addTable
in interfaceISourceVisitor
- Parameters:
source
- Data source capable of providing the data needed to initialize a decision table.
-
addRule
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 interfaceISourceVisitor
- Parameters:
source
- Data source capable of providing the data needed to initialize a business rule.
-
getMetaModel
Description copied from interface:IRuleVisitor
This method returns the meta model of the rule engine.- Specified by:
getMetaModel
in interfaceIRuleVisitor
- Returns:
- the meta model of the rule engine.
-
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 interfaceIRuleVisitor
- Returns:
- the expression parser of the rule engine.
-
addDefaultRule
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 interfaceISourceVisitor
- Parameters:
defaultDS
- Data source providing the information for the default rule.
-
addDataRule
Description copied from interface:ISourceVisitor
This method may be used to add a data rule to the rule engine.- Specified by:
addDataRule
in interfaceISourceVisitor
- Parameters:
dataRule
- Data source capable of providing the data needed to initialize a data rule.
-