Class DTDecisionRule

  • 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.
    • Constructor Detail

      • DTDecisionRule

        public DTDecisionRule​(int index)
    • Method Detail

      • getInputEntry

        public List<UnaryTest> getInputEntry()
        The instances of UnaryTests that specify the input conditions that this DecisionRule must match for the corresponding (by index) inputExpression.
      • getOutputEntry

        public List<CompiledExpression> getOutputEntry()
        A list of the instances of LiteralExpression that compose the output components of this DecisionRule.
        Returns:
      • getIndex

        public int getIndex()
        Specified by:
        getIndex in interface Indexed