public abstract class AbstractCompoundTranslator<F extends Compound,T extends Compound> extends Object implements CompoundTranslator<F,T>
Constructor and Description |
---|
AbstractCompoundTranslator(SequenceCreatorInterface<T> creator,
CompoundSet<F> fromCompoundSet,
CompoundSet<T> toCompoundSet) |
Modifier and Type | Method and Description |
---|---|
protected void |
addCompounds(F source,
T... targets) |
protected void |
addCompoundsToList(List<T> compounds,
List<List<T>> workingList) |
protected void |
addCompoundToLists(List<List<T>> list,
T compound) |
protected void |
addStrings(String source,
String... targets) |
Sequence<T> |
createSequence(Sequence<F> originalSequence) |
List<Sequence<T>> |
createSequences(Sequence<F> originalSequence) |
SequenceCreatorInterface<T> |
getCreator() |
CompoundSet<F> |
getFromCompoundSet() |
CompoundSet<T> |
getToCompoundSet() |
protected abstract void |
postProcessCompoundLists(List<List<T>> compoundLists) |
T |
translate(F fromCompound) |
List<T> |
translateMany(F fromCompound) |
protected List<Sequence<T>> |
workingListToSequences(List<List<T>> workingList) |
public AbstractCompoundTranslator(SequenceCreatorInterface<T> creator, CompoundSet<F> fromCompoundSet, CompoundSet<T> toCompoundSet)
public SequenceCreatorInterface<T> getCreator()
public CompoundSet<F> getFromCompoundSet()
public CompoundSet<T> getToCompoundSet()
protected void addStrings(String source, String... targets)
protected void addCompounds(F source, T... targets)
public List<T> translateMany(F fromCompound)
translateMany
in interface CompoundTranslator<F extends Compound,T extends Compound>
public List<Sequence<T>> createSequences(Sequence<F> originalSequence)
createSequences
in interface CompoundTranslator<F extends Compound,T extends Compound>
protected abstract void postProcessCompoundLists(List<List<T>> compoundLists)
protected List<Sequence<T>> workingListToSequences(List<List<T>> workingList)
protected void addCompoundToLists(List<List<T>> list, T compound)
public Sequence<T> createSequence(Sequence<F> originalSequence)
createSequence
in interface CompoundTranslator<F extends Compound,T extends Compound>
Copyright © 2000–2018 BioJava. All rights reserved.