|
Fido Alpha 3.2 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--fido.frontend.GrammarSession
This class represents one user connection to the server for testing the link grammar subsystem. The GrammarSession inserts words into a Grammar object, then can return a graphical picture of the current state of the Grammar object.
The Grammar module is designed to allow words to be inserted one at a time. This class takes advantage of this by allowing the user to enter one word at a time and visually see the current valid grammars for the words entered.
To use the graphical grammar tool, select the dictionary table from the main page. Select the action Test Grammar Strings.
Grammar
Constructor Summary | |
GrammarSession()
Creates a new GrammarSession. |
Method Summary | |
void |
addWord(java.lang.String word)
Adds a new word to the grammar. |
void |
clearWords()
Clears all words in the Grammar object. |
java.awt.image.BufferedImage |
drawThreads()
Creates a Java BufferedImage with an image of current state of the Grammar object. |
java.util.Iterator |
listWords()
Returns a list of words currently already inserted into the Grammar object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public GrammarSession()
Method Detail |
public void addWord(java.lang.String word) throws FidoDatabaseException, GrammarParseException, GrammarLinkNotFoundException, LookupWordFailedException
word
- String to add to the Grammar object
FidoDatabaseException
- Thrown if there is an error contacting or
processing a database request.
GrammarParseException
- Thrown if the word in the Dictionary has
a grammar string that cannot be parsed.
GrammarLinkNotFoundException
- Thrown if the word in the Dictionary
has a grammar link type that is not
found in the GrammarLinkTypes table
LookupWordFailedException
- Thrown if the word cannot be resolved and
the special word UNKNOWN_WORD is not found
either.WordLookup
,
Grammar.insertWord(WordPackage)
public java.util.Iterator listWords()
WordLookup
public void clearWords()
public java.awt.image.BufferedImage drawThreads()
|
Fido Alpha 3.2 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |