Package com.aquima.interactions.dtree
Class TreeEngineFactory
- java.lang.Object
-
- com.aquima.interactions.dtree.TreeEngineFactory
-
- All Implemented Interfaces:
ITreeEngineFactory
public class TreeEngineFactory extends Object implements ITreeEngineFactory
Factory class that may be used to create an instance of ITreeEngine.- Since:
- 5.0
- Author:
- Jon van Leuven
-
-
Constructor Summary
Constructors Constructor Description TreeEngineFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ITreeEngine
create(IMetaModel metamodel, IParserFactory parserFactory, IComposer composer, ITreeEngineDS datasource)
Constructs the tree engine with the required arguments.static ITreeEngineFactory
getInstance()
Get an instance of ITreeEngineFactory.
-
-
-
Method Detail
-
getInstance
public static ITreeEngineFactory getInstance()
Get an instance of ITreeEngineFactory. If there is an implementation register via the ClassFactory (with key 'treeengine-factory'), an instance of this class is returned. Note: keep in mind that the instance returned is kept in a static member, so once this class is loaded always the same instance is returned.- Returns:
- ITreeEngineFactory implementation
-
create
public ITreeEngine create(IMetaModel metamodel, IParserFactory parserFactory, IComposer composer, ITreeEngineDS datasource) throws InitializationException
Description copied from interface:ITreeEngineFactory
Constructs the tree engine with the required arguments.- Specified by:
create
in interfaceITreeEngineFactory
- Parameters:
metamodel
- The meta model definitions.parserFactory
- Parser factory that should be used to create expression parsers.composer
- The composer containing asset and container definitions.datasource
- The data-source containing the information of the decision trees that need to be added.- Returns:
- Implementation of the tree engine interface.
- Throws:
InitializationException
- This exception is thrown when the tree engine could not be initialized due to a fatal exception.
-
-