|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgov.sandia.cognition.framework.learning.EvaluatorBasedCognitiveModuleFactory<InputType,OutputType>
InputType - Input type of the embedded EvaluatorOutputType - Output type of the embedded Evaluatorpublic class EvaluatorBasedCognitiveModuleFactory<InputType,OutputType>
The EvaluatorBasedCognitiveModuleFactory class implements a factory for the EvaluatorBasedCognitiveModule. When a module is created the factory checks to see if the underlying evaluator is a StatefulEvaluator to determine if a normal EvaluatorBasedCognitiveModule should be created (non-stateful) or a StatefulEvaluatorBasedCognitiveModule should be created (stateful).
| Constructor Summary | |
|---|---|
EvaluatorBasedCognitiveModuleFactory()
Creates a new instance of EvaluatorBasedCognitiveModuleFactory. |
|
EvaluatorBasedCognitiveModuleFactory(EvaluatorBasedCognitiveModuleFactory<InputType,OutputType> other)
Creates a new copy of a EvaluatorBasedCognitiveModuleFactory. |
|
EvaluatorBasedCognitiveModuleFactory(EvaluatorBasedCognitiveModuleSettings<InputType,OutputType> settings,
String name)
Creates a new instance of EvaluatorBasedCognitiveModuleFactory. |
|
| Method Summary | |
|---|---|
EvaluatorBasedCognitiveModuleFactory<InputType,OutputType> |
clone()
Creates a clone of this EvaluatorBasedCognitiveModuleFactory. |
CognitiveModule |
createModule(CognitiveModel model)
|
String |
getName()
Getter for name |
EvaluatorBasedCognitiveModuleSettings<InputType,OutputType> |
getSettings()
Gets the settings of the module created by the factory. |
void |
setName(String name)
Setter for name |
void |
setSettings(EvaluatorBasedCognitiveModuleSettings<InputType,OutputType> settings)
Sets the settings of the module created by the factory. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EvaluatorBasedCognitiveModuleFactory()
public EvaluatorBasedCognitiveModuleFactory(EvaluatorBasedCognitiveModuleSettings<InputType,OutputType> settings,
String name)
name - Human-readable name of the modulesettings - The settings for the module.public EvaluatorBasedCognitiveModuleFactory(EvaluatorBasedCognitiveModuleFactory<InputType,OutputType> other)
other - The other EvaluatorBasedCognitiveModuleFactory to copy.| Method Detail |
|---|
public EvaluatorBasedCognitiveModuleFactory<InputType,OutputType> clone()
clone in interface gov.sandia.cognition.util.CloneableSerializableclone in class Objectpublic CognitiveModule createModule(CognitiveModel model)
createModule in interface CognitiveModuleFactorymodel -
public EvaluatorBasedCognitiveModuleSettings<InputType,OutputType> getSettings()
public void setSettings(EvaluatorBasedCognitiveModuleSettings<InputType,OutputType> settings)
settings - The settings of the module created by the factory.public String getName()
public void setName(String name)
name - Human-readable name of the module
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||