public abstract class AbstractCognitiveModelFactory extends java.lang.Object implements CognitiveModelFactory
Constructor and Description |
---|
AbstractCognitiveModelFactory()
Creates a new instance of AbstractCognitiveModelFactory.
|
AbstractCognitiveModelFactory(java.util.Collection<CognitiveModuleFactory> moduleFactories)
Creates a new instance of
AbstractCognitiveModelFactory . |
Modifier and Type | Method and Description |
---|---|
void |
addModuleFactory(CognitiveModuleFactory factory)
Adds a CognitiveModuleFactory to be used by this factory when creating
a new CognitiveModel.
|
java.util.ArrayList<CognitiveModuleFactory> |
getModuleFactories()
Gets the CognitiveModuleFactories that are used to create a model.
|
void |
setModuleFactories(java.util.ArrayList<CognitiveModuleFactory> moduleFactories)
Sets the list of module factories to use.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createModel
public AbstractCognitiveModelFactory()
public AbstractCognitiveModelFactory(java.util.Collection<CognitiveModuleFactory> moduleFactories)
AbstractCognitiveModelFactory
.moduleFactories
- The initial set of module factories.public void addModuleFactory(CognitiveModuleFactory factory)
factory
- The CognitiveModuleFactory to addpublic java.util.ArrayList<CognitiveModuleFactory> getModuleFactories()
getModuleFactories
in interface CognitiveModelFactory
public void setModuleFactories(java.util.ArrayList<CognitiveModuleFactory> moduleFactories)
moduleFactories
- The new list of module factories