Class DecisionTreeDelegateDS
java.lang.Object
com.aquima.interactions.foundation.report.ReportingDelegateDS
com.aquima.interactions.dtree.ds.delegate.DecisionTreeDelegateDS
- All Implemented Interfaces:
IDecisionTreeDS
,IReportingDS
- Direct Known Subclasses:
DecisionTreeDS
Delegate datasource for easy datasource extension. All method calls are delegated to the delegate datasource without
adding any functionality.
- Since:
- 8.4
- Author:
- Jon van Leuven
-
Constructor Summary
ConstructorsConstructorDescriptionDecisionTreeDelegateDS
(IDecisionTreeDS datasource) Construct a datasource that delegates all method calls to the provided datasource. -
Method Summary
Modifier and TypeMethodDescriptionThis method should return the description of text used for display of the decision tree.getName()
This method should return the name of the decision tree.boolean
This method should indicate whether the decision tree will be exposed as a webservice.void
iterateNodes
(ITreeNodeVisitor visitor) This method should iterate over the top node(s) of the tree, and add them to the provided visitor.void
iterateSymptoms
(ITreeSymptomVisitor visitor) This method should iterate over the symptoms of the tree and add them to the visitor.Methods inherited from class com.aquima.interactions.foundation.report.ReportingDelegateDS
addMessage
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.aquima.interactions.foundation.report.IReportingDS
addMessage
-
Constructor Details
-
DecisionTreeDelegateDS
Construct a datasource that delegates all method calls to the provided datasource.- Parameters:
datasource
- The delegate datasource, may not be null
-
-
Method Details
-
getName
Description copied from interface:IDecisionTreeDS
This method should return the name of the decision tree.- Specified by:
getName
in interfaceIDecisionTreeDS
- Returns:
- the name of the decision tree.
-
getDisplayText
Description copied from interface:IDecisionTreeDS
This method should return the description of text used for display of the decision tree.- Specified by:
getDisplayText
in interfaceIDecisionTreeDS
- Returns:
- the description of text used for display of the decision tree.
-
isExposedAsWebservice
public boolean isExposedAsWebservice()Description copied from interface:IDecisionTreeDS
This method should indicate whether the decision tree will be exposed as a webservice.- Specified by:
isExposedAsWebservice
in interfaceIDecisionTreeDS
- Returns:
true
if exposed otherwisefalse
-
iterateNodes
Description copied from interface:IDecisionTreeDS
This method should iterate over the top node(s) of the tree, and add them to the provided visitor.- Specified by:
iterateNodes
in interfaceIDecisionTreeDS
- Parameters:
visitor
- The visitor that should be used to add the nodes to.- Throws:
InitializationException
- This exception is thrown when the nodes could not be initialized.
-
iterateSymptoms
Description copied from interface:IDecisionTreeDS
This method should iterate over the symptoms of the tree and add them to the visitor.- Specified by:
iterateSymptoms
in interfaceIDecisionTreeDS
- Parameters:
visitor
- The visitor that should be used to add the symptoms to.- Throws:
InitializationException
- This exception is thrown when the symptoms could not be initialized.
-