gov.sandia.cognition.framework.lite
Class CognitiveModelLite

java.lang.Object
  extended by gov.sandia.cognition.framework.AbstractCognitiveModel
      extended by gov.sandia.cognition.framework.lite.AbstractCognitiveModelLite
          extended by gov.sandia.cognition.framework.lite.CognitiveModelLite
All Implemented Interfaces:
CognitiveModel, Serializable

public class CognitiveModelLite
extends AbstractCognitiveModelLite

This class provides a lite implementation of the CognitiveModel interface. This implementation is "lite" in the way that the modules used by the model must be provided in the constructor. They cannot be dynamically added and removed from the model.

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

Field Summary
 
Fields inherited from class gov.sandia.cognition.framework.lite.AbstractCognitiveModelLite
numModules, state
 
Constructor Summary
CognitiveModelLite(CognitiveModuleFactory... moduleFactories)
          Creates a new instance of CognitiveModelLite.
CognitiveModelLite(Iterable<? extends CognitiveModuleFactory> moduleFactories)
          Creates a new instance of CognitiveModelLite.
 
Method Summary
 List<CognitiveModule> getModules()
          Gets the modules in the model.
 void update(CognitiveModelInput input)
          Updates the state of the model from the new input.
 
Methods inherited from class gov.sandia.cognition.framework.lite.AbstractCognitiveModelLite
getCurrentState, getSemanticIdentifierMap, initializeCognitiveState, resetCognitiveState, setCognitiveState, setSemanticIdentifierMap
 
Methods inherited from class gov.sandia.cognition.framework.AbstractCognitiveModel
addCognitiveModelListener, fireModelStateChangedEvent, fireModelStateChangedEvent, getModelListeners, removeCognitiveModelListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CognitiveModelLite

public CognitiveModelLite(CognitiveModuleFactory... moduleFactories)
Creates a new instance of CognitiveModelLite. It instantiates new CognitiveModules from all the given CognitiveModuleFactories

Parameters:
moduleFactories - The CognitiveModuleFactories used to create the CognitiveModules for this model

CognitiveModelLite

public CognitiveModelLite(Iterable<? extends CognitiveModuleFactory> moduleFactories)
Creates a new instance of CognitiveModelLite. It instantiates new CognitiveModules from all the given CognitiveModuleFactories

Parameters:
moduleFactories - The CognitiveModuleFactories used to create the CognitiveModules for this model
Method Detail

update

public void update(CognitiveModelInput input)
Updates the state of the model from the new input.

Parameters:
input - The input to the model.

getModules

public List<CognitiveModule> getModules()
Gets the modules in the model.

Returns:
The modulese that are part of the model.