Class DecisionTree
- java.lang.Object
-
- com.aquima.interactions.dtree.impl.DecisionTree
-
- All Implemented Interfaces:
IDecisionTree
,Serializable
public class DecisionTree extends Object implements IDecisionTree
This class represents a single decision tree definition.- Since:
- 5.0
- Author:
- F. van der Meer
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
DecisionTree(InitializationLookup lookup, IDecisionTreeDS ds)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AbstractNode[]
getConditions()
Retrieves the start questions of the decision tree.IMultilingualText
getDisplayText()
This method returns the description of the decision tree that should be shown for the decision tree when it is selected.String
getName()
This method returns the name of the decision tree.ISymptom[]
getSymptoms()
This method returns an array of symptoms describing the contents of the decision tree.boolean
isExposedAsWebservice()
This method returns if the decision tree will be exposed as a webservice.
-
-
-
Constructor Detail
-
DecisionTree
protected DecisionTree(InitializationLookup lookup, IDecisionTreeDS ds) throws InitializationException
- Throws:
InitializationException
-
-
Method Detail
-
getName
public String 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
public AbstractNode[] 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
public IMultilingualText 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
public ISymptom[] 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.
-
-