edu.cmu.sphinx.linguist.acoustic
Enum HMMPosition

java.lang.Object
  extended by java.lang.Enum<HMMPosition>
      extended by edu.cmu.sphinx.linguist.acoustic.HMMPosition
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<HMMPosition>

public enum HMMPosition
extends java.lang.Enum<HMMPosition>

Defines possible positions of HMMs. Note that even though the positions are defined to be within words, some recognizers may classify positions in terms of other elements besides words.


Enum Constant Summary
BEGIN
           
END
           
INTERNAL
           
SINGLE
           
UNDEFINED
           
 
Method Summary
 boolean isWordBeginning()
          Determines if this position is word beginning position
 boolean isWordEnd()
          Determines if this position is an end word position
static HMMPosition lookup(java.lang.String rep)
          Looks up an HMMPosition baed upon its representation
 java.lang.String toString()
          Returns a string representation of this object
static HMMPosition valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static HMMPosition[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

BEGIN

public static final HMMPosition BEGIN

END

public static final HMMPosition END

SINGLE

public static final HMMPosition SINGLE

INTERNAL

public static final HMMPosition INTERNAL

UNDEFINED

public static final HMMPosition UNDEFINED
Method Detail

values

public static HMMPosition[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (HMMPosition c : HMMPosition.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static HMMPosition valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

lookup

public static HMMPosition lookup(java.lang.String rep)
Looks up an HMMPosition baed upon its representation

Parameters:
rep - the string representation
Returns:
the HMMPosition represented by rep or null if not found

isWordEnd

public boolean isWordEnd()
Determines if this position is an end word position

Returns:
true if this is an end of word position

isWordBeginning

public boolean isWordBeginning()
Determines if this position is word beginning position

Returns:
true if this is a word beginning position

toString

public java.lang.String toString()
Returns a string representation of this object

Overrides:
toString in class java.lang.Enum<HMMPosition>
Returns:
the string representation