|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Word
A Word is an ordered set of Symbol objects. Learning
queries and system responses (amongst potentially other things) are represented
as Word objects.
| Method Summary | |
|---|---|
void |
addSymbol(Symbol symbol)
add Symbol to word |
Symbol[] |
getSymbolArray()
Assemble an array of symbols in this word |
Symbol |
getSymbolByIndex(int i)
Return symbol that is at the supplied position |
List<Symbol> |
getSymbolList()
Assemble a list of symbols in this word |
boolean |
isPrefixOf(Word w)
Checks if this word is a prefix of the supplied word. |
int |
size()
Determine number of symbols in this word |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Method Detail |
|---|
void addSymbol(Symbol symbol)
symbol - Symbol[] getSymbolArray()
List<Symbol> getSymbolList()
boolean isPrefixOf(Word w)
w -
int size()
Symbol getSymbolByIndex(int i)
i -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||