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

public class DecisionTreeDelegateDS extends ReportingDelegateDS implements IDecisionTreeDS
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 Details

    • DecisionTreeDelegateDS

      public DecisionTreeDelegateDS(IDecisionTreeDS datasource)
      Construct a datasource that delegates all method calls to the provided datasource.
      Parameters:
      datasource - The delegate datasource, may not be null
  • Method Details

    • getName

      public String getName()
      Description copied from interface: IDecisionTreeDS
      This method should return the name of the decision tree.
      Specified by:
      getName in interface IDecisionTreeDS
      Returns:
      the name of the decision tree.
    • getDisplayText

      public IMultilingualText 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 interface IDecisionTreeDS
      Returns:
      the description of text used for display of the decision tree.
    • getRoles

      public String[] getRoles()
      Description copied from interface: IDecisionTreeDS
      This method should return the roles required to access the decision tree.
      Specified by:
      getRoles in interface IDecisionTreeDS
      Returns:
      the roles required to access 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 interface IDecisionTreeDS
      Returns:
      true if exposed otherwise false
    • iterateNodes

      public void iterateNodes(ITreeNodeVisitor visitor)
      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 interface IDecisionTreeDS
      Parameters:
      visitor - The visitor that should be used to add the nodes to.
    • iterateSymptoms

      public void iterateSymptoms(ITreeSymptomVisitor visitor)
      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 interface IDecisionTreeDS
      Parameters:
      visitor - The visitor that should be used to add the symptoms to.