public class CognitiveModelLite extends AbstractCognitiveModelLite
numModules, state
Constructor and Description |
---|
CognitiveModelLite(CognitiveModuleFactory... moduleFactories)
Creates a new instance of CognitiveModelLite.
|
CognitiveModelLite(java.lang.Iterable<? extends CognitiveModuleFactory> moduleFactories)
Creates a new instance of CognitiveModelLite.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<CognitiveModule> |
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, setSemanticIdentifierMap
addCognitiveModelListener, fireModelStateChangedEvent, fireModelStateChangedEvent, getModelListeners, removeCognitiveModelListener
public CognitiveModelLite(CognitiveModuleFactory... moduleFactories)
moduleFactories
- The CognitiveModuleFactories used to create the
CognitiveModules for this modelpublic CognitiveModelLite(java.lang.Iterable<? extends CognitiveModuleFactory> moduleFactories)
moduleFactories
- The CognitiveModuleFactories used to create the
CognitiveModules for this modelpublic void update(CognitiveModelInput input)
input
- The input to the model.public java.util.List<CognitiveModule> getModules()