Package com.aquima.interactions.rule
Class DMNDecisionTree
java.lang.Object
com.aquima.interactions.rule.DMNDecisionTree
This class holds the justification information for a DMN decision.
- Since:
- 9.3
- Author:
- T. Middeldorp
-
Constructor Summary
ConstructorsConstructorDescriptionDMNDecisionTree
(ValueReference reference, IValue value, SourceType sourceType, DefaultRuleType defaultRuleType, String ruleName, String justificationTextId) Constructs a DMN decision tree for the specified value.DMNDecisionTree
(IExpression expression, IValue value, String description) Constructs a DMN decision tree for the specified expression -
Method Summary
Modifier and TypeMethodDescriptionReturns the default rule type of the value.This method return the description of the expression for which the DMN decision tree was createdThis method returns the expression for which the DMN decision tree was createdThis method returns the justification text id of the inferred value.This method returns the name of the rule that was used to source the value.Returns the source type of the value.This method returns an array with justification information for the values that were used to determine the value belonging to this DMN decision tree.getValue()
This method returns the value for this decision treeThis method returns the value reference for which the DMN decision tree was created.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.toString()
-
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 valuesourceType
- the source typedefaultRuleType
- the default rule typeruleName
- the rule namejustificationTextId
- The justificationTextId that was used.
-
DMNDecisionTree
Constructs a DMN decision tree for the specified expression- Parameters:
expression
- the expression for which the DMN decision tree is constructedvalue
- the valuedescription
- the description
-
-
Method Details
-
getValue
This method returns the value for this decision tree- Returns:
- the value for this decision tree, may not be null
-
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
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
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
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
Returns the default rule type of the value.- Returns:
- The default rule type, may not be null
-
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
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
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
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
-