gov.sandia.cognition.framework
Class AbstractCognitiveModelFactory

java.lang.Object
  extended by gov.sandia.cognition.framework.AbstractCognitiveModelFactory
All Implemented Interfaces:
CognitiveModelFactory, Serializable
Direct Known Subclasses:
CognitiveModelLiteFactory, MultithreadedCognitiveModelFactory

public abstract class AbstractCognitiveModelFactory
extends Object
implements CognitiveModelFactory

The AbstractCognitiveModelFactory class defines common functionality among CognitiveModelFactory implementations. Specifically, it allows CognitiveModuleFactories to be added to the model factory.

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

Constructor Summary
AbstractCognitiveModelFactory()
          Creates a new instance of AbstractCognitiveModelFactory.
AbstractCognitiveModelFactory(Collection<CognitiveModuleFactory> moduleFactories)
          Creates a new instance of AbstractCognitiveModelFactory.
 
Method Summary
 void addModuleFactory(CognitiveModuleFactory factory)
          Adds a CognitiveModuleFactory to be used by this factory when creating a new CognitiveModel.
 ArrayList<CognitiveModuleFactory> getModuleFactories()
          Gets the CognitiveModuleFactories that are used to create a model.
 void setModuleFactories(ArrayList<CognitiveModuleFactory> moduleFactories)
          Sets the list of module factories to use.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface gov.sandia.cognition.framework.CognitiveModelFactory
createModel
 

Constructor Detail

AbstractCognitiveModelFactory

public AbstractCognitiveModelFactory()
Creates a new instance of AbstractCognitiveModelFactory.


AbstractCognitiveModelFactory

public AbstractCognitiveModelFactory(Collection<CognitiveModuleFactory> moduleFactories)
Creates a new instance of AbstractCognitiveModelFactory.

Parameters:
moduleFactories - The initial set of module factories.
Method Detail

addModuleFactory

public void addModuleFactory(CognitiveModuleFactory factory)
Adds a CognitiveModuleFactory to be used by this factory when creating a new CognitiveModel. Specifically, the module factories will be given to the new model to instantiate CognitiveModules from.

Parameters:
factory - The CognitiveModuleFactory to add

getModuleFactories

public ArrayList<CognitiveModuleFactory> getModuleFactories()
Gets the CognitiveModuleFactories that are used to create a model.

Specified by:
getModuleFactories in interface CognitiveModelFactory
Returns:
The Collection of CognitiveModuleFactories used to create a model.

setModuleFactories

public void setModuleFactories(ArrayList<CognitiveModuleFactory> moduleFactories)
Sets the list of module factories to use.

Parameters:
moduleFactories - The new list of module factories