de.dfki.lt.mary.unitselection.featureprocessors
Class MaryGenericFeatureProcessors.TobiEndtone

java.lang.Object
  extended by de.dfki.lt.mary.unitselection.featureprocessors.MaryGenericFeatureProcessors.TobiEndtone
All Implemented Interfaces:
ByteValuedFeatureProcessor, MaryFeatureProcessor
Direct Known Subclasses:
MaryGenericFeatureProcessors.PhraseEndtone, MaryGenericFeatureProcessors.PrevPhraseEndtone
Enclosing class:
MaryGenericFeatureProcessors

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

The ToBI endtone associated with the current syllable.


Field Summary
protected  java.lang.String name
           
protected  MaryGenericFeatureProcessors.TargetItemNavigator navigator
           
protected  ByteStringTranslator values
           
 
Constructor Summary
MaryGenericFeatureProcessors.TobiEndtone(java.lang.String name, MaryGenericFeatureProcessors.TargetItemNavigator syllableNavigator)
           
 
Method Summary
 java.lang.String getName()
          Performs some processing on the given item.
 java.lang.String[] getValues()
          List the possible values of the feature processor, as clear-text values.
 byte process(Target target)
          For the given syllable item, return its tobi end tone, or 0 if there is none.
 
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.TargetItemNavigator navigator

values

protected ByteStringTranslator values
Constructor Detail

MaryGenericFeatureProcessors.TobiEndtone

public MaryGenericFeatureProcessors.TobiEndtone(java.lang.String name,
                                                MaryGenericFeatureProcessors.TargetItemNavigator syllableNavigator)
Method Detail

getName

public java.lang.String getName()
Description copied from interface: MaryFeatureProcessor
Performs some processing on the given item. TODO: remove? see ByteValuedFeatureProcessor etc.

Specified by:
getName in interface MaryFeatureProcessor

getValues

public java.lang.String[] getValues()
Description copied from interface: ByteValuedFeatureProcessor
List the possible values of the feature processor, as clear-text values. Byte values as returned by process() can be translated into their string equivalent by using the byte value as an index in the String[] returned.

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)
For the given syllable item, return its tobi end tone, or 0 if there is none.

Specified by:
process in interface ByteValuedFeatureProcessor