edu.cmu.sphinx.linguist.acoustic.tiedstate
Class HMMManager

java.lang.Object
  extended byedu.cmu.sphinx.linguist.acoustic.tiedstate.HMMManager

public class HMMManager
extends java.lang.Object

Manages HMMs. This HMMManager groups HMMs together by their position with the word.


Constructor Summary
HMMManager()
           
 
Method Summary
 HMM get(HMMPosition position, Unit unit)
          Retrieves an HMM by position and unit
 java.util.Iterator getIterator()
          Gets an iterator that iterates through all HMMs
 void logInfo(java.util.logging.Logger logger)
          Log information about this manager
 void put(HMM hmm)
          Put an HMM into this manager
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HMMManager

public HMMManager()
Method Detail

put

public void put(HMM hmm)
Put an HMM into this manager

Parameters:
hmm - the hmm to manage

get

public HMM get(HMMPosition position,
               Unit unit)
Retrieves an HMM by position and unit

Parameters:
position - the position of the HMM
unit - the unit that this HMM represents
Returns:
the HMM for the unit at the given position or null if no HMM at the position could be found

getIterator

public java.util.Iterator getIterator()
Gets an iterator that iterates through all HMMs

Returns:
an iterator that iterates through all HMMs

logInfo

public void logInfo(java.util.logging.Logger logger)
Log information about this manager

Parameters:
logger - logger to use for this logInfo