Sautrela

edu.gtts.sautrela.wfsa
Class Decoder

java.lang.Object
  extended by edu.gtts.sautrela.engine.AbstractDataProcessor
      extended by edu.gtts.sautrela.wfsa.Decoder
All Implemented Interfaces:
DataProcessor, java.beans.BeanInfo, java.io.Serializable

public class Decoder
extends AbstractDataProcessor

Author:
mpenagar
See Also:
Serialized Form

Nested Class Summary
static class Decoder.TargetType
           
 
Field Summary
 
Fields inherited from interface java.beans.BeanInfo
ICON_COLOR_16x16, ICON_COLOR_32x32, ICON_MONO_16x16, ICON_MONO_32x32
 
Constructor Summary
Decoder()
           
 
Method Summary
 void editBeanInfo(java.beans.BeanInfo info)
           
 double getBeam()
          Getter for property beam.
static
<S extends State,Y extends Symbol,T extends Transition<S,Y>>
Path<S,T>
getPath(WFSA<S,Y,T> wfa, java.util.List<Y> symbolList, double beam, int verbose)
          Returns the state path or most probable state path for a given symbol list
 Decoder.TargetType getTargetType()
          Getter for property targetType.
 java.net.URL getTargetURL()
          Getter for property targetURL.
 int getVerbose()
          Getter for property verbose.
 boolean isFullGCPerformed()
          Getter for property GCWaited.
static void main(java.lang.String[] args)
           
 void process(Buffer in, Buffer out)
          Processes the input Data.
 void setBeam(double beam)
          Setter for property beam.
 void setFullGCPerformed(boolean fullGCPerformed)
          Setter for property fullGCPerformed.
 void setTargetType(Decoder.TargetType targetType)
          Setter for property targetType.
 void setTargetURL(java.net.URL targetURL)
          Setter for property targetURL.
 void setVerbose(int verbose)
          Setter for property verbose.
 
Methods inherited from class edu.gtts.sautrela.engine.AbstractDataProcessor
getAdditionalBeanInfo, getBeanDescriptor, getDefaultEventIndex, getDefaultPropertyIndex, getEventSetDescriptors, getIcon, getMethodDescriptors, getName, getPropertyDescriptors, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Decoder

public Decoder()
Method Detail

isFullGCPerformed

public boolean isFullGCPerformed()
Getter for property GCWaited.

Returns:
Value of property GCWaited.

setFullGCPerformed

public void setFullGCPerformed(boolean fullGCPerformed)
Setter for property fullGCPerformed.

Parameters:
fullGCPerformed - value of property fullGCPerformed.

getBeam

public double getBeam()
Getter for property beam.

Returns:
Value of property beam.

setBeam

public void setBeam(double beam)
Setter for property beam.

Parameters:
beam - New value of property beam.

getTargetURL

public java.net.URL getTargetURL()
Getter for property targetURL.

Returns:
Value of property targetURL.

setTargetURL

public void setTargetURL(java.net.URL targetURL)
Setter for property targetURL.

Parameters:
targetURL - New value of property targetURL.

getTargetType

public Decoder.TargetType getTargetType()
Getter for property targetType.

Returns:
Value of property targetType.

setTargetType

public void setTargetType(Decoder.TargetType targetType)
Setter for property targetType.

Parameters:
targetType - New value of property targetType.

getVerbose

public int getVerbose()
Getter for property verbose.

Returns:
Value of property verbose.

setVerbose

public void setVerbose(int verbose)
Setter for property verbose.

Parameters:
verbose - New value of property verbose.

process

public void process(Buffer in,
                    Buffer out)
             throws DataProcessorException
Processes the input Data. Multidimensional input data is treated as multidimensional symbol. Thus WFSAs with single dimmension symbols must receive scalar Data sequencially, whereas multidimensional ones (like CHMM) must receive multidimensional data.

Parameters:
in - Input Buffer
out - Output Buffer
Throws:
DataProcessorException

getPath

public static <S extends State,Y extends Symbol,T extends Transition<S,Y>> Path<S,T> getPath(WFSA<S,Y,T> wfa,
                                                                                             java.util.List<Y> symbolList,
                                                                                             double beam,
                                                                                             int verbose)
Returns the state path or most probable state path for a given symbol list

Parameters:
wfa - the WFSA to be used
symbolList - the symbol list
Returns:
the Path or null if it doesn't exist

editBeanInfo

public void editBeanInfo(java.beans.BeanInfo info)
Overrides:
editBeanInfo in class AbstractDataProcessor

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception

Sautrela