gov.sandia.cognition.framework.concurrent
Class MultithreadedCognitiveModelFactory

java.lang.Object
  extended by gov.sandia.cognition.framework.AbstractCognitiveModelFactory
      extended by gov.sandia.cognition.framework.concurrent.MultithreadedCognitiveModelFactory
All Implemented Interfaces:
CognitiveModelFactory, Serializable

public class MultithreadedCognitiveModelFactory
extends AbstractCognitiveModelFactory

This class defines a CognitiveModelFactory for creating MultithreadedCognitiveModel objects.

Since:
2.0
Author:
Zachary Benz
See Also:
Serialized Form

Constructor Summary
MultithreadedCognitiveModelFactory(int numThreadsInPool)
          Creates a new instance of MultithreadedCognitiveModelFactory.
 
Method Summary
 MultithreadedCognitiveModel createModel()
          Creates a MultithreadedCognitiveModel using the CognitiveModuleFactories that are part of the model factory.
 
Methods inherited from class gov.sandia.cognition.framework.AbstractCognitiveModelFactory
addModuleFactory, getModuleFactories, setModuleFactories
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultithreadedCognitiveModelFactory

public MultithreadedCognitiveModelFactory(int numThreadsInPool)
Creates a new instance of MultithreadedCognitiveModelFactory.

Parameters:
numThreadsInPool - Number of threads to use in the thread pool
Method Detail

createModel

public MultithreadedCognitiveModel createModel()
Creates a MultithreadedCognitiveModel using the CognitiveModuleFactories that are part of the model factory.

Returns:
A new MultithreadedCognitiveModel using the module factories on this factory