Class DMNDecisionTree

java.lang.Object
com.aquima.interactions.rule.DMNDecisionTree

public class DMNDecisionTree extends Object
This class holds the justification information for a DMN decision.
Since:
9.3
Author:
T. Middeldorp
  • Constructor Details

    • DMNDecisionTree

      public DMNDecisionTree(ValueReference reference, IValue value, SourceType sourceType, DefaultRuleType defaultRuleType, String ruleName, String justificationTextId)
      Constructs a DMN decision tree for the specified value.
      Parameters:
      reference - The value for which the DMN decision tree is constructed.
      value - the value
      sourceType - the source type
      defaultRuleType - the default rule type
      ruleName - the rule name
      justificationTextId - The justificationTextId that was used.
    • DMNDecisionTree

      public DMNDecisionTree(IExpression expression, IValue value, String description)
      Constructs a DMN decision tree for the specified expression
      Parameters:
      expression - the expression for which the DMN decision tree is constructed
      value - the value
      description - the description
  • Method Details

    • getValue

      public IValue getValue()
      This method returns the value for this decision tree
      Returns:
      the value for this decision tree, may not be null
    • getExpression

      public IExpression getExpression()
      This method returns the expression for which the DMN decision tree was created
      Returns:
      the expression for which the DMN decision tree was created, may be null only if the DMN decision tree was created for a value reference
    • getDescription

      public String getDescription()
      This method return the description of the expression for which the DMN decision tree was created
      Returns:
      the description of the expression, may be null only if the DMN decision tree was created for a value reference
    • getValueReference

      public ValueReference getValueReference()
      This method returns the value reference for which the DMN decision tree was created.
      Returns:
      the value reference for which the DMN decision tree was created, may be null only if the DMN decision tree was created for an expression
    • getSourceType

      public SourceType getSourceType()
      Returns the source type of the value.
      Returns:
      The source type, may be null only if the DMN decision tree was created for an expression
    • getDefaultRuleType

      public DefaultRuleType getDefaultRuleType()
      Returns the default rule type of the value.
      Returns:
      The default rule type, may not be null
    • getRuleName

      public String getRuleName()
      This method returns the name of the rule that was used to source the value.
      Returns:
      the name of the rule which source the value, may be null
    • getJustificationTextId

      public String getJustificationTextId()
      This method returns the justification text id of the inferred value. The text id may be used to expand/lookup a text element (usually an asset or content item).
      Returns:
      the justification text of the inferred value, may be null
    • setUsedValues

      public void setUsedValues(DMNDecisionTree[] usedValues)
      This method may be used to set the DMN decision trees of the values that were used to inference the value of this tree.
      Parameters:
      usedValues - The array of DMN decision trees that were used to inference the value of this tree.
    • getUsedValues

      public DMNDecisionTree[] getUsedValues()
      This method returns an array with justification information for the values that were used to determine the value belonging to this DMN decision tree.
      Returns:
      an array with justification information for the values that were used to determine the value belonging to this DMN decision tree.
    • toString

      public String toString()
      Overrides:
      toString in class Object