public class PairwiseStringAlignment extends StringAlignment
Strings. It
contains the two Strings that were aligned and expanded by
gap-symbols, and the edit-costs according to the employed
Costs instance.| Modifier | Constructor and Description |
|---|---|
|
PairwiseStringAlignment(StringBuffer xml)
The standard constructor for the interface
Storable. |
protected |
PairwiseStringAlignment(String r1,
String r2,
double cost,
int startPos,
int endPos,
int numMatches)
Creates the instance for the two (extended)
Strings and the
edit-costs. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
fromXML(StringBuffer xml)
Parses the XML representation.
|
int |
getEndIndexOfAlignmentForFirst()
This method returns the end index of the alignment in the first sequence.
|
int |
getNumberOfMatches()
Returns the number of matches in this alignment.
|
int |
getStartIndexOfAlignmentForFirst()
This method returns the start index of the alignment in the first sequence.
|
StringBuffer |
toXML()
This method returns an XML representation as
StringBuffer of an
instance of the implementing class. |
compareTo, getAlignedString, getAnnotationResult, getCost, getLength, getNumberOfAlignedSequences, toString, toStringprotected PairwiseStringAlignment(String r1, String r2, double cost, int startPos, int endPos, int numMatches)
Strings and the
edit-costs.public PairwiseStringAlignment(StringBuffer xml) throws NonParsableException
Storable.
Creates a new PairwiseStringAlignment out of its XML representation.xml - the XML representation as StringBufferNonParsableException - if the PairwiseStringAlignment could not be reconstructed
out of the XML representation (the StringBuffer could
not be parsed)Storablepublic int getNumberOfMatches()
public int getStartIndexOfAlignmentForFirst()
public int getEndIndexOfAlignmentForFirst()
protected void fromXML(StringBuffer xml) throws NonParsableException
StringAlignmentfromXML in class StringAlignmentxml - the XML representationNonParsableException - if XML could not be parsedpublic StringBuffer toXML()
StorableStringBuffer of an
instance of the implementing class.toXML in interface StorabletoXML in class StringAlignment