org.thdl.tib.scanner
Class MemorySyllableListTree

java.lang.Object
  |
  +--org.thdl.tib.scanner.LinkedList
        |
        +--org.thdl.tib.scanner.MemorySyllableListTree
All Implemented Interfaces:
SyllableListTree

public class MemorySyllableListTree
extends LinkedList
implements SyllableListTree

Loads the whole dictionary into memory; not the preferred implementation. Provides the fastest search, but takes up to much resources. The preferred implementation is the CachedSyllableListTree.

The words must be stored in a binary file tree structure format. This can be done using the BinaryFileGenerator.

Author:
Andrés Montano Pellegrini
See Also:
TibetanScanner, CachedSyllableListTree, BinaryFileGenerator

Field Summary
protected  String def
           
protected  String sil
           
 
Fields inherited from class org.thdl.tib.scanner.LinkedList
cabeza
 
Constructor Summary
MemorySyllableListTree(String archivo)
           
MemorySyllableListTree(String sil, String def)
           
 
Method Summary
 boolean equals(Object o)
           
 String getDef()
           
 org.thdl.tib.scanner.Definitions getDefs()
           
 org.thdl.tib.scanner.DictionarySource getDictionarySource()
          Null because it does not support multiple dictionaries.
 boolean hasDef()
           
 org.thdl.tib.scanner.SyllableListTree lookUp(String silStr)
           
static void main(String[] args)
           
 String toString()
           
 
Methods inherited from class org.thdl.tib.scanner.LinkedList
addLast, contains, getLast, isEmpty, listIterator, listIterator, size, sort, toArray, toStringArray
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

sil

protected String sil

def

protected String def
Constructor Detail

MemorySyllableListTree

public MemorySyllableListTree(String sil,
                              String def)

MemorySyllableListTree

public MemorySyllableListTree(String archivo)
                       throws Exception
Method Detail

toString

public String toString()
Overrides:
toString in class Object

getDictionarySource

public org.thdl.tib.scanner.DictionarySource getDictionarySource()
Null because it does not support multiple dictionaries.

Specified by:
getDictionarySource in interface SyllableListTree

equals

public boolean equals(Object o)
Overrides:
equals in class Object

getDef

public String getDef()
Specified by:
getDef in interface SyllableListTree

getDefs

public org.thdl.tib.scanner.Definitions getDefs()
Specified by:
getDefs in interface SyllableListTree

hasDef

public boolean hasDef()
Specified by:
hasDef in interface SyllableListTree

lookUp

public org.thdl.tib.scanner.SyllableListTree lookUp(String silStr)
Specified by:
lookUp in interface SyllableListTree

main

public static void main(String[] args)
                 throws Exception
Exception


These API docs were created 02/02/2003 08:19 PM.
Copyright © 2001-2002 Tibetan and Himalayan Digital Library. All Rights Reserved.
Hosted by SourceForge_Logo