Sautrela

edu.gtts.sautrela.sp
Class Gain

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

public class Gain
extends AbstractDataProcessor

Applies a gain to the input data.

See Also:
Serialized Form

Field Summary
static double DEFAULT_GAIN
          The default gain value is 1.0
 
Fields inherited from interface java.beans.BeanInfo
ICON_COLOR_16x16, ICON_COLOR_32x32, ICON_MONO_16x16, ICON_MONO_32x32
 
Constructor Summary
Gain()
          Creates a default Gain DataProcessor
 
Method Summary
 void editBeanInfo(java.beans.BeanInfo info)
           
 double getGain()
          Gets the gain value of this Gain
static void main(java.lang.String[] args)
           
 void process(Buffer in, Buffer out)
          Processes the input Data.
 void setGain(double gain)
          Sets the gain value of this Gain
 
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_GAIN

public static final double DEFAULT_GAIN
The default gain value is 1.0

See Also:
Constant Field Values
Constructor Detail

Gain

public Gain()
Creates a default Gain DataProcessor

Method Detail

getGain

public double getGain()
Gets the gain value of this Gain

Returns:
The gain value

setGain

public void setGain(double gain)
Sets the gain value of this Gain

Parameters:
gain - The gain value

process

public void process(Buffer in,
                    Buffer out)
             throws DataProcessorException
Processes the input Data. Both IntData and DoubleData are supported.

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