Sautrela

edu.gtts.sautrela.sp
Class Windowing

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

public class Windowing
extends AbstractDataProcessor

Does a windowing of the input data

See Also:
Serialized Form

Nested Class Summary
static class Windowing.Function
          Window-function types
 
Field Summary
static boolean DEFAULT_CUTDC
          default cutDC value == false
static Windowing.Function DEFAULT_FUNCTION
          default window function == Hamming
static int DEFAULT_SHIFT
          default window shift == 160
static int DEFAULT_SIZE
          default window size == 400
 
Fields inherited from interface java.beans.BeanInfo
ICON_COLOR_16x16, ICON_COLOR_32x32, ICON_MONO_16x16, ICON_MONO_32x32
 
Constructor Summary
Windowing()
          Creates a new Windowing
 
Method Summary
 void editBeanInfo(java.beans.BeanInfo info)
           
 Windowing.Function getFunction()
          Gets the function of the window
 int getShift()
          Gets the shift of the window
 int getSize()
          Gets the size of the window
 boolean isCutDC()
          Getter for property cutDC.
static void main(java.lang.String[] args)
           
 void process(Buffer in, Buffer out)
          Processes the input Data.
 void setCutDC(boolean cutDC)
          Setter for property cutDC.
 void setFunction(Windowing.Function function)
          Sets the function of the window.
 void setShift(int shift)
          Sets the shift of the window.
 void setSize(int size)
          Sets the size of the window.
 
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
 

Field Detail

DEFAULT_SIZE

public static final int DEFAULT_SIZE
default window size == 400

See Also:
Constant Field Values

DEFAULT_SHIFT

public static final int DEFAULT_SHIFT
default window shift == 160

See Also:
Constant Field Values

DEFAULT_FUNCTION

public static final Windowing.Function DEFAULT_FUNCTION
default window function == Hamming


DEFAULT_CUTDC

public static final boolean DEFAULT_CUTDC
default cutDC value == false

See Also:
Constant Field Values
Constructor Detail

Windowing

public Windowing()
Creates a new Windowing

Method Detail

getSize

public int getSize()
Gets the size of the window

Returns:
The size of the window

setSize

public void setSize(int size)
Sets the size of the window.

Parameters:
size - The size of the window

getShift

public int getShift()
Gets the shift of the window

Returns:
The shift of the window

setShift

public void setShift(int shift)
Sets the shift of the window.

Parameters:
shift - The shift of the window

getFunction

public Windowing.Function getFunction()
Gets the function of the window

Returns:
The function of the window

setFunction

public void setFunction(Windowing.Function function)
Sets the function of the window.

Parameters:
function - The function of the window

isCutDC

public boolean isCutDC()
Getter for property cutDC.

Returns:
Value of property cutDC.

setCutDC

public void setCutDC(boolean cutDC)
Setter for property cutDC.

Parameters:
cutDC - New value of property cutDC.

process

public void process(Buffer in,
                    Buffer out)
             throws DataProcessorException
Processes the input Data.

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

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