InputType
- Type of input to convert into the inputs of the
InputOutputPairsOutputType
- Type of outputs to convert into the outputs of the
InputOutputPairspublic class CogxelInputOutputPairConverter<InputType,OutputType> extends AbstractCogxelPairConverter<InputType,OutputType,InputOutputPair<InputType,OutputType>> implements CogxelConverter<InputOutputPair<InputType,OutputType>>
semanticIdentifierMap
Constructor and Description |
---|
CogxelInputOutputPairConverter()
Default constructor
|
CogxelInputOutputPairConverter(CogxelConverter<InputType> inputConverter,
CogxelConverter<OutputType> outputConverter)
Creates a new instance of InputOutputCogxelConverter.
|
CogxelInputOutputPairConverter(CogxelConverter<InputType> inputConverter,
CogxelConverter<OutputType> outputConverter,
SemanticIdentifierMap semanticIdentifierMap)
Creates a new instance of InputOutputCogxelConverter.
|
Modifier and Type | Method and Description |
---|---|
InputOutputPair<InputType,OutputType> |
createPair(InputType first,
OutputType second)
Creates a Pair from the needed data
|
boolean |
equals(java.lang.Object other) |
CogxelConverter<InputType> |
getInputConverter()
Gets the input converter
|
CogxelConverter<OutputType> |
getOutputConverter()
Gets the output converter
|
int |
hashCode() |
void |
setInputConverter(CogxelConverter<InputType> inputConverter)
Sets the input converter
|
void |
setOutputConverter(CogxelConverter<OutputType> outputConverter)
Sets the output converter
|
clone, equals, fromCogxels, getFirstConverter, getSecondConverter, setFirstConverter, setSecondConverter, setSemanticIdentifierMap, toCogxels
buildIdentifierCache, getSemanticIdentifierMap
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
clone, fromCogxels, getSemanticIdentifierMap, setSemanticIdentifierMap, toCogxels
public CogxelInputOutputPairConverter()
public CogxelInputOutputPairConverter(CogxelConverter<InputType> inputConverter, CogxelConverter<OutputType> outputConverter)
inputConverter
- The CogxelConverter for the input element of the
pair.outputConverter
- The CogxelConverter for the output element of the
pair.public CogxelInputOutputPairConverter(CogxelConverter<InputType> inputConverter, CogxelConverter<OutputType> outputConverter, SemanticIdentifierMap semanticIdentifierMap)
inputConverter
- The CogxelConverter for the input element of the
pair.outputConverter
- The CogxelConverter for the output element of the
pair.semanticIdentifierMap
- The SemanticIdentifierMap used by the
converter.public boolean equals(java.lang.Object other)
equals
in class AbstractCogxelPairConverter<InputType,OutputType,InputOutputPair<InputType,OutputType>>
public int hashCode()
hashCode
in class AbstractCogxelPairConverter<InputType,OutputType,InputOutputPair<InputType,OutputType>>
public InputOutputPair<InputType,OutputType> createPair(InputType first, OutputType second)
AbstractCogxelPairConverter
createPair
in class AbstractCogxelPairConverter<InputType,OutputType,InputOutputPair<InputType,OutputType>>
first
- First element of the Pairsecond
- Second element of the Pairpublic CogxelConverter<InputType> getInputConverter()
public CogxelConverter<OutputType> getOutputConverter()
public void setInputConverter(CogxelConverter<InputType> inputConverter)
inputConverter
- Input converterpublic void setOutputConverter(CogxelConverter<OutputType> outputConverter)
outputConverter
- Output converter