public abstract class AbstractCognitiveModelLite extends AbstractCognitiveModel
| Modifier and Type | Field and Description |
|---|---|
protected int |
numModules
The number of modules.
|
protected CognitiveModelLiteState |
state
The current state of the model.
|
| Constructor and Description |
|---|
AbstractCognitiveModelLite()
Creates a new instance of AbstractCognitiveModelLite.
|
| Modifier and Type | Method and Description |
|---|---|
CognitiveModelLiteState |
getCurrentState()
Gets the current state of the model.
|
SemanticIdentifierMap |
getSemanticIdentifierMap()
Gets teh semantic identifier database used by the model.
|
void |
initializeCognitiveState(CognitiveModelLiteState state)
This method takes a cognitive state and initializes it by initializing
all the module states on it.
|
void |
resetCognitiveState()
Resets the current state of the model.
|
void |
setCognitiveState(CognitiveModelLiteState state)
Sets the cognitive state to the given state.
|
protected void |
setSemanticIdentifierMap(DefaultSemanticIdentifierMap semanticIdentifierMap)
Sets the semantic identifier map.
|
addCognitiveModelListener, fireModelStateChangedEvent, fireModelStateChangedEvent, getModelListeners, removeCognitiveModelListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetModules, updateprotected int numModules
protected CognitiveModelLiteState state
public AbstractCognitiveModelLite()
public void resetCognitiveState()
public void setCognitiveState(CognitiveModelLiteState state)
state - The state to initialize.java.lang.IllegalArgumentException - If the given state does not have the
proper module states.public void initializeCognitiveState(CognitiveModelLiteState state)
state - The CognitiveModelLiteState to initialize.java.lang.IllegalArgumentException - If the given state does not have the
proper number of module states.public CognitiveModelLiteState getCurrentState()
public SemanticIdentifierMap getSemanticIdentifierMap()
protected void setSemanticIdentifierMap(DefaultSemanticIdentifierMap semanticIdentifierMap)
semanticIdentifierMap - The new map.