public abstract class AbstractSemanticMemoryLite extends java.lang.Object implements SemanticMemory, java.io.Serializable
Constructor and Description |
---|
AbstractSemanticMemoryLite(SemanticIdentifierMap semanticIdentifierMap,
PatternRecognizerLite recognizer)
Creates a new instance of AbstractSemanticMemoryLite.
|
Modifier and Type | Method and Description |
---|---|
protected void |
buildOutputMapping()
Builds the mapping of output identifiers to their labels.
|
abstract int |
findInputIndexForIdentifier(SemanticIdentifier semanticIdentifier)
Finds the input vector index for a given identifier.
|
SemanticNetwork |
getNetwork()
Gets the semantic network underlying the semantic memory.
|
protected java.util.ArrayList<SemanticIdentifier> |
getOutputIdentifiers()
Gets the ordered list of output identifiers.
|
PatternRecognizerLite |
getRecognizer()
Gets the pattern recognizer lite for the semantic memory lite.
|
SemanticIdentifierMap |
getSemanticIdentifierMap()
Gets the semantic identifier map being used.
|
CognitiveModuleState |
initializeState(CognitiveModelState modelState)
This method initializes the state object for the CognitiveModule by
calling the initialState function on the underlying pattern recognizer.
|
CognitiveModuleState |
update(CognitiveModelState modelState,
CognitiveModuleState previousModuleState)
Updates the state of the cognitive model by modifying the given
CognitiveModelState object.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getName, getSettings
public AbstractSemanticMemoryLite(SemanticIdentifierMap semanticIdentifierMap, PatternRecognizerLite recognizer)
semanticIdentifierMap
- The SemanticIdentifierMap to use for mapping
SemanticLabels to SemanticIdentifiers.recognizer
- The PatternRecognizerLite used by this.protected void buildOutputMapping()
public CognitiveModuleState initializeState(CognitiveModelState modelState)
initializeState
in interface CognitiveModule
modelState
- The CognitiveModelState to initalizepublic CognitiveModuleState update(CognitiveModelState modelState, CognitiveModuleState previousModuleState)
update
in interface CognitiveModule
modelState
- The CognitiveModelState to update.previousModuleState
- The previous CognitiveModuleState returned
by this module.public abstract int findInputIndexForIdentifier(SemanticIdentifier semanticIdentifier)
semanticIdentifier
- The identifier to find the input index of.public SemanticNetwork getNetwork()
getNetwork
in interface SemanticMemory
public SemanticIdentifierMap getSemanticIdentifierMap()
public PatternRecognizerLite getRecognizer()
protected java.util.ArrayList<SemanticIdentifier> getOutputIdentifiers()