|
||||||||||
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
Used to pool shared objects in the acoustic model
Constructor Summary | |
Pool(java.lang.String name)
Creates a new pool |
Method Summary | |
java.lang.Object |
get(int id)
returns the object with the given ID from the pool |
int |
getFeature(java.lang.String name,
int defaultValue)
Retrieves a feature from this pool |
java.lang.String |
getName()
returns the pool's name. |
int |
indexOf(java.lang.Object 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,
java.lang.Object o)
Places the given object in the pool |
void |
setFeature(java.lang.String name,
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 poolMethod Detail |
public java.lang.String getName()
public java.lang.Object get(int id)
id
- the id of the object
java.lang.IndexOutOfBoundsException
- if the ID is out of rangepublic int indexOf(java.lang.Object object)
object
- the object
public void put(int id, java.lang.Object 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 topublic void setFeature(java.lang.String name, int value)
name
- the name of the featurevalue
- the value for the featurepublic int getFeature(java.lang.String name, int defaultValue)
name
- the name of the featuredefaultValue
- the defaultValue for the pool
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |