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:
  • Constructor Details

  • Method Details

    • getName

      public String getName()
      Description copied from interface: IDecisionTree
      This method returns the name of the decision tree.
      Specified by:
      getName in interface IDecisionTree
      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 interface IDecisionTree
      Returns:
      the boolean indicating if the decision tree will be exposed.
    • getRoles

      public String[] getRoles()
      Description copied from interface: IDecisionTree
      This method returns the roles required to access the decision tree.
      Specified by:
      getRoles in interface IDecisionTree
      Returns:
      the roles required to access the decision tree.
    • 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 interface IDecisionTree
      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 interface IDecisionTree
      Returns:
      An array of symptoms describing the contents of the decision tree.