Class JustificationVisitor
java.lang.Object
com.aquima.interactions.rule.graph.JustificationVisitor
- All Implemented Interfaces:
IJustificationVisitor
This visitor is used during initialization to gather justification information of an inference rule.
- Since:
- 5.1
- Author:
- O. Kerpershoek
-
Constructor Summary
ConstructorsConstructorDescriptionJustificationVisitor
(IExpressionParser parser, String ruleName) Constructs a justification visitor that will gather all the justifications for a rule. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addJustification
(IJustificationDS datasource) This method may be used to add a justification.This method returns an optimized object containing all the justifications of the rule.
-
Constructor Details
-
JustificationVisitor
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
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
Description copied from interface:IJustificationVisitor
This method may be used to add a justification.- Specified by:
addJustification
in interfaceIJustificationVisitor
- Parameters:
datasource
- Required parameter containing the name justification datasource.
-