Class DecisionTree
java.lang.Object
com.aquima.interactions.dtree.impl.DecisionTree
- All Implemented Interfaces:
IDecisionTree
,Serializable
This class represents a single decision tree definition.
- Since:
- 5.0
- Author:
- F. van der Meer
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
DecisionTree
(InitializationLookup lookup, IDecisionTreeDS ds) -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the start questions of the decision tree.This method returns the description of the decision tree that should be shown for the decision tree when it is selected.getName()
This method returns the name of the decision tree.ISymptom[]
This method returns an array of symptoms describing the contents of the decision tree.boolean
This method returns if the decision tree will be exposed as a webservice.
-
Constructor Details
-
DecisionTree
protected DecisionTree(InitializationLookup lookup, IDecisionTreeDS ds) throws InitializationException - Throws:
InitializationException
-
-
Method Details
-
getName
Description copied from interface:IDecisionTree
This method returns the name of the decision tree.- Specified by:
getName
in interfaceIDecisionTree
- Returns:
- the name of the decision tree.
-
isExposedAsWebservice
public boolean isExposedAsWebservice()Description copied from interface:IDecisionTree
This method returns if the decision tree will be exposed as a webservice.- Specified by:
isExposedAsWebservice
in interfaceIDecisionTree
- Returns:
- the boolean indicating if the decision tree will be exposed.
-
getConditions
Retrieves the start questions of the decision tree.
Note: This method is public to allow test-case access.
- Returns:
- Array containing the start questions of the decision tree.
-
getDisplayText
Description copied from interface:IDecisionTree
This method returns the description of the decision tree that should be shown for the decision tree when it is selected.- Specified by:
getDisplayText
in interfaceIDecisionTree
- Returns:
- The text that should be shown when selecting a decision tree.
-
getSymptoms
Description copied from interface:IDecisionTree
This method returns an array of symptoms describing the contents of the decision tree.- Specified by:
getSymptoms
in interfaceIDecisionTree
- Returns:
- An array of symptoms describing the contents of the decision tree.
-