|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.cmu.sphinx.linguist.acoustic.tiedstate.Pool<T>
public class Pool<T>
Used to pool shared objects in the acoustic model
| Nested Class Summary | |
|---|---|
static class |
Pool.Feature
|
| Constructor Summary | |
|---|---|
Pool(java.lang.String name)
Creates a new pool. |
|
| Method Summary | |
|---|---|
T |
get(int id)
Returns the object with the given ID from the pool. |
int |
getFeature(Pool.Feature feature,
int defaultValue)
Retrieves a feature from this pool. |
java.lang.String |
getName()
Returns the pool's name. |
int |
indexOf(T object)
Returns the ID of a given object from the pool. |
void |
logInfo(java.util.logging.Logger logger)
Dump information on this pool to the given logger. |
void |
put(int id,
T o)
Places the given object in the pool. |
void |
setFeature(Pool.Feature feature,
int value)
Sets a feature for this pool. |
int |
size()
Retrieves the size of the pool. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Pool(java.lang.String name)
name - the name of the pool| Method Detail |
|---|
public java.lang.String getName()
public T get(int id)
id - the id of the object
java.lang.IndexOutOfBoundsException - if the ID is out of rangepublic int indexOf(T object)
object - the object
public void put(int id,
T o)
id - a unique ID for this objecto - the object to add to the poolpublic int size()
public void logInfo(java.util.logging.Logger logger)
logger - the logger to send the info to
public void setFeature(Pool.Feature feature,
int value)
feature - feature to setvalue - the value for the feature
public int getFeature(Pool.Feature feature,
int defaultValue)
feature - feature to getdefaultValue - the defaultValue for the pool
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||