gov.sandia.cognition.framework
Interface CognitiveModuleFactory

All Superinterfaces:
Serializable
All Known Implementing Classes:
ArrayBasedPerceptionModuleFactory, EvaluatorBasedCognitiveModuleFactory, MutableSemanticMemoryLiteFactory, SharedSemanticMemoryLiteFactory, VectorBasedPerceptionModuleFactory

public interface CognitiveModuleFactory
extends Serializable

The CognitiveModuleFactory interface defines the functionality required by something that creates new CognitiveModules for a CognitiveModel. A CognitiveModel does not accept CognitiveModule objects to be given to it, instead it only will accept a CognitiveModuleFactory to be given to it from which it can create a new CognitiveModule for itself. The reason that this is used is so that CognitiveModules can contain information about the CognitiveModels that they belong to and to ensure that the same CognitiveModule is not being shared between models. Note, however, that a factory can provide modules that share some model-independent components of their state in order to conserve memory.

Since:
1.0
Author:
Justin Basilico, Kevin R. Dixon, Zachary Benz
See Also:
CognitiveModule

Method Summary
 CognitiveModule createModule(CognitiveModel model)
          Creates a new CognitiveModule for the given CognitiveModel.
 

Method Detail

createModule

CognitiveModule createModule(CognitiveModel model)
Creates a new CognitiveModule for the given CognitiveModel.

Parameters:
model - The model to create a new module for
Returns:
A new CognitiveModule for the given model