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

java.lang.Object
  extended by edu.cmu.sphinx.linguist.acoustic.tiedstate.HMMManager
All Implemented Interfaces:
java.lang.Iterable<HMM>

public class HMMManager
extends java.lang.Object
implements java.lang.Iterable<HMM>

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<HMM> iterator()
          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

iterator

public java.util.Iterator<HMM> iterator()
Gets an iterator that iterates through all HMMs

Specified by:
iterator in interface java.lang.Iterable<HMM>
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