X
- the class of the elements in the left input sequence.Y
- the class of the elements in the right input sequence.R
- the result class that represents the alignment in some way.public interface AlignmentAlgorithm<X,Y,R>
Modifier and Type | Method and Description |
---|---|
R |
calculateAlignment(List<X> x,
List<Y> y)
This calculates the alignment dissimilarity D between the Sequences x ∈ X* and y ∈
Y* and returns it as an instance of the result class for this algorithm.
|
Comparator<X,Y> |
getComparator()
This should return the Comparator used to compute local distances for this algorithm.
|
Class<R> |
getResultClass()
This method shall return the class of the alignment result.
|
boolean |
requires(OperationType type)
This method should return true if and only if this AlignmentAlgorithm uses the given
operation.
|
void |
setComparator(Comparator<X,Y> comparator)
This should set the Comparator used to compute local distances for this algorithm.
|
Comparator<X,Y> getComparator()
void setComparator(@NonNull Comparator<X,Y> comparator)
comparator
- the comparator that is used to compute local distances for this Algorithm.R calculateAlignment(@NonNull List<X> x, @NonNull List<Y> y)
x
- The left input sequence.y
- The right input sequence.Class<R> getResultClass()
boolean requires(@NonNull OperationType type)
type
- an OperationType.Copyright (C) 2016 Benjamin Paaßen, AG Theoretical Computer Science, Centre of Excellence Cognitive Interaction Technology (CITEC), University of Bielefeld, licensed under the AGPL v. 3: http://openresearch.cit-ec.de/projects/tcs . This documentation is licensed under the conditions of CC-BY-SA 4.0: https://creativecommons.org/licenses/by-sa/4.0/