Package com.aquima.interactions.rule.ds
Interface IConstraintVisitor
- All Superinterfaces:
IRuleVisitor
- All Known Implementing Classes:
ConstraintDelegateVisitor
,ConstraintVisitor
,ReportingConstraintVisitor
This visitor is used during initialization to allow the data layer to add constrains to attributes.
- Since:
- 5.0
- Author:
- O. Kerpershoek
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addConstraint
(IConstraint constraint) The data layer implementation should invoke this addConstraint method for each constraint that should be added to the rule engine.void
addExternalConstraint
(IExternalRuleDS ruleDS) The data layer may invoke this method to add an external constraint rule.void
addTable
(String targetAttribute, IDecisionTableDS tableDS) This method can be used to add a decision table to a specific attribute as constraint.Methods inherited from interface com.aquima.interactions.rule.ds.IRuleVisitor
getMetaModel, getParser
-
Method Details
-
addConstraint
The data layer implementation should invoke this addConstraint method for each constraint that should be added to the rule engine.- Parameters:
constraint
- The constraint that should be added to the rule engine.- Throws:
InitializationException
- This exception is raised when the rule could not be added due to errors.
-
addExternalConstraint
The data layer may invoke this method to add an external constraint rule. The rule factory will be used to locate the implementation for the constraint.- Parameters:
ruleDS
- Data source providing information about the external constraint rule.- Throws:
InitializationException
- This exception is raised when the rule could not be added due to errors.
-
addTable
This method can be used to add a decision table to a specific attribute as constraint. The decision table should evaluate to a set of values that are valid for the attribute.- Parameters:
targetAttribute
- The attribute for which the decision table applies.tableDS
- Data source containing the definition of the decision table.- Throws:
InitializationException
- This exception is raised when the rule could not be added due to errors.
-