marytts.features
Class MaryGenericFeatureProcessors.SylBreak

java.lang.Object
  extended by marytts.features.MaryGenericFeatureProcessors.SylBreak
All Implemented Interfaces:
ByteValuedFeatureProcessor, MaryFeatureProcessor
Enclosing class:
MaryGenericFeatureProcessors

public static class MaryGenericFeatureProcessors.SylBreak
extends java.lang.Object
implements ByteValuedFeatureProcessor

Determines the break level after this syllable.


Field Summary
protected  java.lang.String name
           
protected  MaryGenericFeatureProcessors.TargetElementNavigator navigator
           
 
Constructor Summary
MaryGenericFeatureProcessors.SylBreak(java.lang.String name, MaryGenericFeatureProcessors.TargetElementNavigator syllableNavigator)
           
 
Method Summary
 java.lang.String getName()
           
 java.lang.String[] getValues()
          "4" for a big break, "3" for a break; "1" = word-final; "0" = within-word
 byte process(Target target)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

protected java.lang.String name

navigator

protected MaryGenericFeatureProcessors.TargetElementNavigator navigator
Constructor Detail

MaryGenericFeatureProcessors.SylBreak

public MaryGenericFeatureProcessors.SylBreak(java.lang.String name,
                                             MaryGenericFeatureProcessors.TargetElementNavigator syllableNavigator)
Method Detail

getName

public java.lang.String getName()
Specified by:
getName in interface MaryFeatureProcessor

getValues

public java.lang.String[] getValues()
"4" for a big break, "3" for a break; "1" = word-final; "0" = within-word

Specified by:
getValues in interface ByteValuedFeatureProcessor
Returns:
an array containing the possible return values of this feature processor, in String representation.

process

public byte process(Target target)
Specified by:
process in interface ByteValuedFeatureProcessor
Parameters:
target - the target to process
Returns:
the break level after the syllable returned by syllableNavigator