- All Implemented Interfaces:
Indexed
public class DTDecisionRule
extends Object
implements Indexed
8.3.3 Decision Rule metamodel
The class DecisionRule is used to model the rules in a decision table (see 8.2 Notation).
An instance of DecisionRule has an ordered list of inputEntry instances which are instances of UnaryTests,
and an ordered list of outputEntry instances, which are instances of LiteralExpression.
By definition, a DecisionRule element that has no inputEntrys is always applicable. Otherwise, an instance of
DecisionRule is said to be applicable if and only if, at least one of the rule's inputEntrys match their
corresponding inputExpression value.
The inputEntrys are matched in arbitrary order.
The inputEntry elements SHALL be in the same order as the containing DecisionTable's inputs.
The i
th inputExpression must satisfy the i
th inputEntry for all inputEntrys in order for the
DecisionRule to match, as defined in 8.1 Introduction.
The outputEntry elements SHALL be in the same order as the containing DecisionTable's outputs.
The i
th outputEntry SHALL be consistent with the typeRef of the i
th OutputClause.