public class MultithreadedCognitiveModel extends AbstractCognitiveModelLite
| Modifier and Type | Class and Description |
|---|---|
protected static class |
MultithreadedCognitiveModel.ModuleEvaluator
Implements a Callable class for executing the evaluation of a
CognitiveModule on a thread
|
numModules, state| Constructor and Description |
|---|
MultithreadedCognitiveModel(int numThreadsInPool,
CognitiveModuleFactory... moduleFactories)
Creates a new instance of MultithreadedCognitiveModel.
|
MultithreadedCognitiveModel(int numThreadsInPool,
java.lang.Iterable<? extends CognitiveModuleFactory> moduleFactories)
Creates a new instance of MultithreadedCognitiveModel.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<ConcurrentCognitiveModule> |
getModules()
Gets the modules in the model.
|
void |
update(CognitiveModelInput input)
Updates the state of the model from the new input.
|
getCurrentState, getSemanticIdentifierMap, initializeCognitiveState, resetCognitiveState, setCognitiveState, setSemanticIdentifierMapaddCognitiveModelListener, fireModelStateChangedEvent, fireModelStateChangedEvent, getModelListeners, removeCognitiveModelListenerpublic MultithreadedCognitiveModel(int numThreadsInPool,
CognitiveModuleFactory... moduleFactories)
numThreadsInPool - Number of threads to use in thread poolmoduleFactories - The CognitiveModuleFactories used to create the
CognitiveModules for this modelpublic MultithreadedCognitiveModel(int numThreadsInPool,
java.lang.Iterable<? extends CognitiveModuleFactory> moduleFactories)
numThreadsInPool - Number of threads to use in thread poolmoduleFactories - The CognitiveModuleFactories used to create the
CognitiveModules for this modelpublic void update(CognitiveModelInput input)
input - The input to the model.public java.util.List<ConcurrentCognitiveModule> getModules()