public class BioJava3AminoAcidAligmentModelFactory extends java.lang.Object implements AlignmentModelFactory<org.biojava3.core.sequence.compound.AminoAcidCompound>
AminoAcidCompound
objects.Constructor and Description |
---|
BioJava3AminoAcidAligmentModelFactory() |
Modifier and Type | Method and Description |
---|---|
AlignmentModel<org.biojava3.core.sequence.compound.AminoAcidCompound> |
createNewModel(NewAlignmentModelParameterMap parameterMap)
Creates a new instance of an alignment model according to the specified parameters.
|
org.biojava3.core.sequence.compound.AminoAcidCompound |
createToken(AlignmentModel<org.biojava3.core.sequence.compound.AminoAcidCompound> alignmentModel,
java.lang.String tokenRepresentation)
Creates the token using the token set of the specified alignment model.
|
public BioJava3AminoAcidAligmentModelFactory()
public AlignmentModel<org.biojava3.core.sequence.compound.AminoAcidCompound> createNewModel(NewAlignmentModelParameterMap parameterMap)
AlignmentModelFactory
createNewModel
in interface AlignmentModelFactory<org.biojava3.core.sequence.compound.AminoAcidCompound>
parameterMap
- a map with parameters describing the requirements to be met by the returned instancenull
if this factory is not able to create an
object that meets the specified requirementspublic org.biojava3.core.sequence.compound.AminoAcidCompound createToken(AlignmentModel<org.biojava3.core.sequence.compound.AminoAcidCompound> alignmentModel, java.lang.String tokenRepresentation)
createToken
in interface AlignmentModelFactory<org.biojava3.core.sequence.compound.AminoAcidCompound>
alignmentModel
- the alignment model which will hold the returned tokentokenRepresentation
- the string representation of the token to be returned (e.g. read from
an alignment file)InvalidTokenException
- if no token for the specified representation could be found in the token set
of the specified alignment model