Class TreeEngineTemplate


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

      • 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 Detail

      • 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.
      • 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.