Interface IDecisionTableDS
- All Superinterfaces:
IReportingDS
,IRuleDS
- All Known Implementing Classes:
ReportingDecisionTableDS
,XmlDecisionTableDS
,XmlDecisionTableDS
Interface for objects capable of providing the data to construct a decision table.
This interface is defined in such a way that a decision-table can be viewed as a balanced tree.
For example a table:
Would result in the following tree.+----+-------+-------------+ | A | >10 | <= 10 | +----+-------+-------+-----+ | B | * | false | [] | +----+-------+-------------+ | C | 'y' | 'y' | 'n' | +----+-------+-------------+
Condition A>10 Condition B=* Action C := 'y' Condition A<=10 Condition B=false Action C := 'y' Action C := 'n'
- Since:
- 5.0
- Author:
- F. van der Meer, O. Kerpershoek
-
Method Summary
Modifier and TypeMethodDescriptiongetName()
This method returns the (unique) name of the decision table.void
iterateConditions
(IConditionVisitor visitor) This method will be invoked to gather all the conditions of the decision table.void
This method should iterate all the justification texts that are available for this rule, and add them to the supplied visitor.Methods inherited from interface com.aquima.interactions.foundation.report.IReportingDS
addMessage
Methods inherited from interface com.aquima.interactions.rule.ds.IRuleDS
getRuleGroupNames
-
Method Details
-
getName
String getName()This method returns the (unique) name of the decision table.- Returns:
- The name of the decision table.
-
iterateConditions
This method will be invoked to gather all the conditions of the decision table. The implementation of this interface should invoke the visitor for each condition that should be added to the table.- Parameters:
visitor
- The visitor that should be used to add the conditions to.
-
iterateJustifications
This method should iterate all the justification texts that are available for this rule, and add them to the supplied visitor.- Parameters:
visitor
- The visitor to which the justifications of this rule should be added.- Throws:
InitializationException
- This exception is thrown when an invalid justification is added.
-