Interface DecisionNode
public interface DecisionNode
Represents the information contained in a decision node.
-
Method Summary
Modifier and TypeMethodDescriptionGets the comparison function.Gets all parameters configured in the decision node comparison function.Gets the list of all fields configured in the decision node.Gets the result of the decision tree execution.getName()
Gets the name of decision node.
-
Method Details
-
getName
String getName()Gets the name of decision node.- Returns:
- String The decision node's name.
-
getComparisonFunction
DecisionNodeComparisonType getComparisonFunction()Gets the comparison function.- Returns:
- DecisionNodeComparisonFunction The function used to compare fields.
- Throws:
IllegalStateException
- when this node is the last node in a decision tree.- See Also:
-
getComparisonFunctionParameters
Collection<ParameterValue> getComparisonFunctionParameters()Gets all parameters configured in the decision node comparison function.-
For
DecisionNodeComparisonType.ALL_FIELD_MATCH
, no parameter is used -
For
DecisionNodeComparisonType.AT_LEAST_N_FIELD_MATCH
, a parameter namedminimumNumberOfMatches
is used -
For
DecisionNodeComparisonType.AVERAGE
, a parameter namedminimumScore
is used
- Returns:
- Collection
All parameters used to execute a comparison function.
-
For
-
getDecisionFields
Collection<DecisionField> getDecisionFields()Gets the list of all fields configured in the decision node.- Returns:
- Collection
All fields configured in the decision node. - Throws:
IllegalStateException
- when this node is the last node in a decision tree.- See Also:
-
getMatchingResult
MatchingResultType getMatchingResult()Gets the result of the decision tree execution.- Returns:
- MatchingResultType The decision tree execution result.
- Throws:
IllegalStateException
- when this node is not the last node in a decision tree.- See Also:
-
isLastNode
Boolean isLastNode()- Returns:
true
if this node is the last node in a decision tree. (result of the decision tree execution)
-