|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--StringProb
A string with a probability attached.
Probability
,
String
Constructor Summary | |
StringProb(java.lang.String text,
double tProb,
boolean c)
Create a StringProb word 'text' with probability 'tProb' and correctness 'c'. |
|
StringProb(java.lang.String text,
Probability p)
Create a StringProb word 'text' with Probability (which includes correctness) 'p'. |
Method Summary | |
boolean |
correct()
Return the "correctness" of a StringProb. |
java.awt.Color |
getColor()
Return the color of the StringProb. |
Probability |
prob()
Return the StringProb (t) probability. |
void |
setColor(java.awt.Color c)
Set the color of this StringProb for when it is displayed in a table. |
java.lang.String |
token()
Return the StringProb token (word). |
java.lang.String |
toString()
Return the StringProb token (word). |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public StringProb(java.lang.String text, double tProb, boolean c)
public StringProb(java.lang.String text, Probability p)
Method Detail |
public boolean correct()
public java.lang.String token()
public Probability prob()
public java.lang.String toString()
public void setColor(java.awt.Color c)
public java.awt.Color getColor()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |