edu.cmu.sphinx.frontend
Class DataStartSignal

java.lang.Object
  extended by edu.cmu.sphinx.frontend.Signal
      extended by edu.cmu.sphinx.frontend.DataStartSignal
All Implemented Interfaces:
Data, java.io.Serializable

public class DataStartSignal
extends Signal

A signal that indicates the start of data.

See Also:
Data, DataProcessor, Signal, Serialized Form

Constructor Summary
DataStartSignal(int sampleRate)
          Constructs a DataStartSignal.
DataStartSignal(int sampleRate, long time)
          Constructs a DataStartSignal at the given time.
 
Method Summary
 int getSampleRate()
           
 java.lang.String toString()
          Returns the string "DataStartSignal".
 
Methods inherited from class edu.cmu.sphinx.frontend.Signal
getTime
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DataStartSignal

public DataStartSignal(int sampleRate)
Constructs a DataStartSignal.

Parameters:
sampleRate - The sampling rate of the started data stream.

DataStartSignal

public DataStartSignal(int sampleRate,
                       long time)
Constructs a DataStartSignal at the given time.

Parameters:
sampleRate - the sampling rate of the started data stream.
time - the time this DataStartSignal is created
Method Detail

toString

public java.lang.String toString()
Returns the string "DataStartSignal".

Overrides:
toString in class java.lang.Object
Returns:
the string "DataStartSignal"

getSampleRate

public int getSampleRate()
Returns:
the sampling rate of the started data stream.