|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.itc.irst.tcc.ties.data.patterns.PatternMatches
An Affix object (the parent of Prefix and
Suffix) stores both Pattern and places in
the corpus where the pattern does match and doesn't,
matchOk and matchWrong respectively.
The class implements the Serializable interface so that instances may be saved to disk if desired.
IndexList,
Serialized Form| Field Summary | |
(package private) static org.apache.log4j.Logger |
logger
Define a static logger variable so that it references the Logger instance named PatternMatches. |
private IndexList |
matchOk
The list of correct matches for this pattern. |
private IndexList |
matchWrong
The list of wrong matches for this pattern. |
static int |
MAX_INDEX_TO_STRING
The max number of indexes printed. |
private int |
ok
|
private int |
wrong
|
| Constructor Summary | |
PatternMatches()
Constructs an empty PatternMatches. |
|
PatternMatches(IndexList matchOk,
IndexList matchWrong)
Constructs an empty PatternMatches. |
|
| Method Summary | |
void |
addMatchOk(int index)
Adds the index to the correct match. |
void |
addMatchWrong(int index)
Adds the index to the wrong match. |
PatternMatches |
getIntersection(PatternMatches pm)
Returns the intersection between this object and the specified index list. |
IndexList |
getMatchOk()
Gets the list of correct matches into the text. |
IndexList |
getMatchWrong()
Gets the list of wrong matches into the text. |
int |
getOk()
|
int |
getWrong()
|
static void |
main(java.lang.String[] args)
|
void |
setOk(int ok)
|
void |
setWrong(int wrong)
|
java.lang.String |
toString()
Returns a String object representing this PatternMatches. |
java.lang.String |
toXml()
Returns a String object representing this PatternMatches in XML. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
static org.apache.log4j.Logger logger
PatternMatches.
private IndexList matchOk
private IndexList matchWrong
public static final int MAX_INDEX_TO_STRING
private int ok
private int wrong
| Constructor Detail |
public PatternMatches()
PatternMatches.
public PatternMatches(IndexList matchOk,
IndexList matchWrong)
PatternMatches.
| Method Detail |
public void addMatchOk(int index)
index - the index into the chart list.public void addMatchWrong(int index)
index - the index into the chart list.public IndexList getMatchOk()
public IndexList getMatchWrong()
public PatternMatches getIntersection(PatternMatches pm)
public java.lang.String toString()
public java.lang.String toXml()
public void setOk(int ok)
public void setWrong(int wrong)
public int getOk()
public int getWrong()
public static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||