public abstract class AbstractCognitiveModel extends java.lang.Object implements CognitiveModel
Constructor and Description |
---|
AbstractCognitiveModel()
Creates a new instance of AbstractCognitiveModel.
|
Modifier and Type | Method and Description |
---|---|
void |
addCognitiveModelListener(CognitiveModelListener listener)
Adds a CognitiveModelListener to this model.
|
protected void |
fireModelStateChangedEvent()
Triggers the CognitiveModelStateChangeEvent on all the registered
CognitiveModelListners.
|
protected void |
fireModelStateChangedEvent(CognitiveModelStateChangeEvent evt)
Triggers the CognitiveModelStateChangeEvent on all the registered
CognitiveModelListners.
|
java.util.LinkedList<CognitiveModelListener> |
getModelListeners()
Getter for the model listeners.
|
void |
removeCognitiveModelListener(CognitiveModelListener listener)
Removes a CognitiveModelListener from this model.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCurrentState, getModules, getSemanticIdentifierMap, resetCognitiveState, update
public AbstractCognitiveModel()
public void addCognitiveModelListener(CognitiveModelListener listener)
addCognitiveModelListener
in interface CognitiveModel
listener
- The listener to addpublic void removeCognitiveModelListener(CognitiveModelListener listener)
removeCognitiveModelListener
in interface CognitiveModel
listener
- The listener to removeprotected void fireModelStateChangedEvent()
protected void fireModelStateChangedEvent(CognitiveModelStateChangeEvent evt)
evt
- The event to pass to the listnerspublic java.util.LinkedList<CognitiveModelListener> getModelListeners()