gov.sandia.cognition.framework.lite
Class SharedSemanticMemoryLite

java.lang.Object
  extended by gov.sandia.cognition.framework.lite.AbstractSemanticMemoryLite
      extended by gov.sandia.cognition.framework.lite.SharedSemanticMemoryLite
All Implemented Interfaces:
CognitiveModule, SemanticMemory, Serializable

public class SharedSemanticMemoryLite
extends AbstractSemanticMemoryLite

The SharedSemanticMemoryLite class implements a semantic memory that uses a shared piece of memory to store the settings.

Since:
1.0
Author:
Justin Basilico, Kevin R. Dixon
See Also:
Serialized Form

Constructor Summary
SharedSemanticMemoryLite(SemanticIdentifierMap semanticIdentifierMap, SharedSemanticMemoryLiteSettings sharedSettings)
          Creates a new instance of SharedSemanticMemoryLite.
 
Method Summary
 int findInputIndexForIdentifier(SemanticIdentifier semanticIdentifier)
          Finds the input vector index for a given identifier.
 String getName()
          Gets the human-readable name of module.
 SharedSemanticMemoryLiteSettings getSettings()
          Gets the settings for the module, which can be used to create another instantation of a module.
 
Methods inherited from class gov.sandia.cognition.framework.lite.AbstractSemanticMemoryLite
buildOutputMapping, getNetwork, getOutputIdentifiers, getRecognizer, getSemanticIdentifierMap, initializeState, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SharedSemanticMemoryLite

public SharedSemanticMemoryLite(SemanticIdentifierMap semanticIdentifierMap,
                                SharedSemanticMemoryLiteSettings sharedSettings)
Creates a new instance of SharedSemanticMemoryLite.

Parameters:
semanticIdentifierMap - The SemanticIdentifierMap to use.
sharedSettings - The shared settings to use.
Method Detail

findInputIndexForIdentifier

public int findInputIndexForIdentifier(SemanticIdentifier semanticIdentifier)
Finds the input vector index for a given identifier. If the identifier is not in the index, -1 is returned.

Specified by:
findInputIndexForIdentifier in class AbstractSemanticMemoryLite
Parameters:
semanticIdentifier - The identifier to find the input index of.
Returns:
The input vector index for the given identifier, if it is part of the input vector. -1 otherwise.

getSettings

public SharedSemanticMemoryLiteSettings getSettings()
Gets the settings for the module, which can be used to create another instantation of a module.

Returns:
The settings for the module

getName

public String getName()
Gets the human-readable name of module.

Returns:
The human-readable name of the module.