gr.teicrete.mta.synthesizer
Class AbstractSensorSynthesizer

java.lang.Object
  extended by gr.teicrete.mta.synthesizer.AbstractSensorSynthesizer
All Implemented Interfaces:
Mappable
Direct Known Subclasses:
AMSynthesizer, FMSynthesizer

public abstract class AbstractSensorSynthesizer
extends java.lang.Object
implements Mappable

Abstract class for defining the base SensorSynthesizer class, the superclass of all the types of Synthesizers.

Author:
zavi

Constructor Summary
AbstractSensorSynthesizer(int synthNumber)
          The AbstractSensorSynthesizer constructor
 
Method Summary
 int getNumber()
          Method to obtain the Synthesizer number
 SynthParameter getParameter(int parNum)
          Returns the specified parameter
abstract  SynthParameter getParameter(java.lang.String parName)
          Returns the specified parameter
abstract  void setParameter(java.lang.String parName, double value)
          Sets a value to the specified synthesizer parameter
abstract  void start()
          Starts the synthesizer
abstract  void stop()
          Stops the synthesizer
 boolean synthOn()
          Method that checks if the Synthesizer is enabled
abstract  java.lang.String toString()
          Returns a String representation of the Synthesizer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractSensorSynthesizer

public AbstractSensorSynthesizer(int synthNumber)
The AbstractSensorSynthesizer constructor

Parameters:
synthNumber -
Method Detail

start

public abstract void start()
Starts the synthesizer


stop

public abstract void stop()
Stops the synthesizer


setParameter

public abstract void setParameter(java.lang.String parName,
                                  double value)
                           throws BadSynthValueException,
                                  BadSynthParameterException
Sets a value to the specified synthesizer parameter

Parameters:
parName - The parameter name
value - The value to assign to the parameter
Throws:
BadSynthException - if the value is not valid
BadSynthValueException
BadSynthParameterException

getParameter

public abstract SynthParameter getParameter(java.lang.String parName)
                                     throws BadSynthParameterException
Returns the specified parameter

Parameters:
parName - The parameter name
Returns:
The synthesizer parameter object
Throws:
BadSynthParameterException

getParameter

public SynthParameter getParameter(int parNum)
                            throws BadSynthParameterException
Returns the specified parameter

Parameters:
parNum - The parameter's number
Returns:
The SynthParameter object
Throws:
BadSynthParameterException

synthOn

public boolean synthOn()
Method that checks if the Synthesizer is enabled

Returns:
A boolean value indicating whether the synthesizer is on

getNumber

public int getNumber()
Method to obtain the Synthesizer number

Returns:
An integer used as an exclusive number in presets file

toString

public abstract java.lang.String toString()
Returns a String representation of the Synthesizer

Overrides:
toString in class java.lang.Object