InputType - Input type of the embedded EvaluatorOutputType - Output type of the embedded Evaluatorpublic class StatefulEvaluatorBasedCognitiveModule<InputType,OutputType> extends EvaluatorBasedCognitiveModule<InputType,OutputType>
DEFAULT_NAME, input, output| Constructor and Description |
|---|
StatefulEvaluatorBasedCognitiveModule(CognitiveModel model,
EvaluatorBasedCognitiveModuleSettings<InputType,OutputType> settings,
String name)
Creates a new instance of StatefulEvaluatorBasedCognitiveModule.
|
| Modifier and Type | Method and Description |
|---|---|
gov.sandia.cognition.evaluator.StatefulEvaluator<InputType,OutputType,gov.sandia.cognition.util.CloneableSerializable> |
getStatefulEvaluator()
Gets the StatefulEvaluator used by the module.
|
CognitiveModuleState |
initializeState(CognitiveModelState modelState) |
void |
readState(CognitiveModelState modelState,
CognitiveModuleState previousModuleState) |
CognitiveModuleState |
writeState(CognitiveModelState modelState) |
evaluate, getEvaluator, getInputConverter, getName, getOutputConverter, getSettings, setName, setSettingsupdatepublic StatefulEvaluatorBasedCognitiveModule(CognitiveModel model, EvaluatorBasedCognitiveModuleSettings<InputType,OutputType> settings, String name)
model - The model to create the module for.settings - The settings of the module.name - High-level descriptive name of the modulepublic CognitiveModuleState initializeState(CognitiveModelState modelState)
initializeState in interface CognitiveModuleinitializeState in class EvaluatorBasedCognitiveModule<InputType,OutputType>modelState - public void readState(CognitiveModelState modelState, CognitiveModuleState previousModuleState)
readState in interface ConcurrentCognitiveModulereadState in class EvaluatorBasedCognitiveModule<InputType,OutputType>modelState - previousModuleState - public CognitiveModuleState writeState(CognitiveModelState modelState)
writeState in interface ConcurrentCognitiveModulewriteState in class EvaluatorBasedCognitiveModule<InputType,OutputType>modelState - public gov.sandia.cognition.evaluator.StatefulEvaluator<InputType,OutputType,gov.sandia.cognition.util.CloneableSerializable> getStatefulEvaluator()
Copyright © 2006–2017 Sandia National Laboratories. All rights reserved.