T
- the token type of the created alignment modelpublic interface AlignmentModelFactory<T>
AlignmentModel
.
Alignment model factories are e.g. needed in combination with AlignmentDataReader
to read
alignments from files.Modifier and Type | Method and Description |
---|---|
AlignmentModel<T> |
createNewModel(NewAlignmentModelParameterMap parameterMap)
Creates a new instance of an alignment model according to the specified parameters.
|
T |
createToken(AlignmentModel<T> alignmentModel,
java.lang.String tokenRepresentation)
Creates a token object associated with the specified string representation.
|
AlignmentModel<T> createNewModel(NewAlignmentModelParameterMap parameterMap)
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 requirementsT createToken(AlignmentModel<T> alignmentModel, java.lang.String tokenRepresentation)
TokenSet.tokenByRepresentation(String)
of the token set associated with the specified alignment
model to determine the return value, but could also implement a different or extended behavior.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)null
if no according token could be generated by this
factory