Class TreeEngineTemplate

java.lang.Object
com.aquima.interactions.test.templates.AbstractReportingTemplate
com.aquima.interactions.test.templates.tree.TreeEngineTemplate

public class TreeEngineTemplate extends AbstractReportingTemplate
Template that can be used to initialize a tree engine.
Since:
6.0
Author:
O. Kerpershoek
  • Constructor Details

    • TreeEngineTemplate

      public TreeEngineTemplate(com.aquima.interactions.foundation.report.IInitializationReport report)
      Constructs the template with the required parameters.
      Parameters:
      report - the report to add errors and warnings during initialization.
  • Method Details

    • addTree

      public DecisionTreeTemplate addTree(String name)
      This method may be used to add a tree definition.
      Parameters:
      name - The name of the tree that should be added.
      Returns:
      Decision tree template representing the added tree.
    • addTree

      public DecisionTreeTemplate addTree(String name, boolean exposedAsWebservice)
      This method may be used to add a tree definition.
      Parameters:
      name - The name of the tree that should be added.
      Returns:
      Decision tree template representing the added tree.
    • getTreeByName

      protected DecisionTreeTemplate getTreeByName(String name)
    • getDecisionTrees

      protected List<DecisionTreeTemplate> getDecisionTrees()
    • toDataSource

      public com.aquima.interactions.dtree.ds.ITreeEngineDS toDataSource()
      This method converts the template to a data source that can be used to initialize a tree engine.
      Returns:
      a data source that can be used to initialize a tree engine.