InputType - Input type of the embedded EvaluatorOutputType - Output type of the embedded Evaluatorpublic class EvaluatorBasedCognitiveModuleSettings<InputType,OutputType> extends java.lang.Object implements CognitiveModuleSettings, java.io.Serializable
| Constructor and Description |
|---|
EvaluatorBasedCognitiveModuleSettings()
Creates a new instance of EvaluatorBasedCognitiveModuleSettings.
|
EvaluatorBasedCognitiveModuleSettings(Evaluator<? super InputType,? extends OutputType> evaluator,
CogxelConverter<InputType> inputConverter,
CogxelConverter<OutputType> outputConverter)
Creates a new instance of EvaluatorBasedCognitiveModuleSettings.
|
EvaluatorBasedCognitiveModuleSettings(EvaluatorBasedCognitiveModuleSettings<InputType,OutputType> other)
Creates a new instance of EvaluatorBasedCognitiveModuleSettings that is
a copy of the given EvaluatorBasedCognitiveModuleSettings.
|
| Modifier and Type | Method and Description |
|---|---|
EvaluatorBasedCognitiveModuleSettings<InputType,OutputType> |
clone()
Creates a clone of this EvaluatorBasedCognitiveModuleSettings.
|
Evaluator<? super InputType,? extends OutputType> |
getEvaluator()
Gets the evaluator to be used by the module.
|
CogxelConverter<InputType> |
getInputConverter()
Gets the CogxelConverter used to convert from a CogxelState to InputType.
|
CogxelConverter<OutputType> |
getOutputConverter()
Gets the CogxelConverter used to convert OutputType to a CogxelState.
|
void |
setEvaluator(Evaluator<? super InputType,? extends OutputType> evaluator)
Sets the evaluator to be used by the module.
|
void |
setInputConverter(CogxelConverter<InputType> inputConverter)
Sets the CogxelConverter used to convert from a CogxelState to InputType.
|
void |
setOutputConverter(CogxelConverter<OutputType> outputConverter)
Sets the CogxelConverter used to convert OutputType to a CogxelState.
|
public EvaluatorBasedCognitiveModuleSettings()
public EvaluatorBasedCognitiveModuleSettings(Evaluator<? super InputType,? extends OutputType> evaluator, CogxelConverter<InputType> inputConverter, CogxelConverter<OutputType> outputConverter)
evaluator - The evaluator to be used by the module.inputConverter - The CogxelConverter used to convert from a
CogxelState to InputType.outputConverter - The CogxelConverter used to convert OutputType to
a CogxelState.public EvaluatorBasedCognitiveModuleSettings(EvaluatorBasedCognitiveModuleSettings<InputType,OutputType> other)
other - The other EvaluatorBasedCognitiveModuleSettings to copy.public EvaluatorBasedCognitiveModuleSettings<InputType,OutputType> clone()
clone in interface CloneableSerializableclone in class java.lang.Objectpublic Evaluator<? super InputType,? extends OutputType> getEvaluator()
public void setEvaluator(Evaluator<? super InputType,? extends OutputType> evaluator)
evaluator - The evaluator to be used by the module.public CogxelConverter<InputType> getInputConverter()
public void setInputConverter(CogxelConverter<InputType> inputConverter)
inputConverter - The CogxelConverter used to convert from a
CogxelState to InputType.public CogxelConverter<OutputType> getOutputConverter()
public void setOutputConverter(CogxelConverter<OutputType> outputConverter)
outputConverter - The CogxelConverter used to convert OutputType to
a CogxelState.