public class MSD2.Alignment
extends java.lang.Object
Constructor and Description |
---|
Alignment() |
Alignment(ca.yorku.cse.mack.softkeyboard.MSD2.PlaceHolder ph) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAlignedPresentedItem(int index)
Returns an element from the aligned presented text.
|
int |
getAlignedPresentedSize()
This function returns the size of the aligned presented text.
|
java.lang.String |
getAlignedTranscribedItem(int index)
Returns a element from the aligned transcribed text.
|
int |
getAlignedTranscribedSize()
This function returns the size of the aligned transcribed text.
|
java.lang.String |
getExplanation()
Returns the whole alignment explanation string.
|
java.lang.String |
getExplanation(int index)
Returns an explanation character from the alignment
explanation string.
|
int |
getExplanationLength()
Returns the length of the alignment string.
|
void |
printAlignmentMatrix()
This function prints the contents of the MSD matrix to standard out.
|
java.lang.String |
toString() |
public Alignment()
public Alignment(ca.yorku.cse.mack.softkeyboard.MSD2.PlaceHolder ph)
public java.lang.String toString()
toString
in class java.lang.Object
public int getAlignedPresentedSize()
public java.lang.String getAlignedPresentedItem(int index)
index
- indicates the desired element of the aligned presented
textpublic int getAlignedTranscribedSize()
public java.lang.String getAlignedTranscribedItem(int index)
index
- indicates the desired element of the aligned transcribed
textpublic int getExplanationLength()
public java.lang.String getExplanation()
c = correct i = insertion d = deletion x = substitution t = transposition
public java.lang.String getExplanation(int index)
Valid characters in the alignment explanation string include:
c = correct i = insertion d = deletion x = substitution t = transposition
index
- indicates which element of the transcribed text is desiredpublic void printAlignmentMatrix()