edu.cmu.sphinx.frontend
Class DataEndSignal

java.lang.Object
  extended byedu.cmu.sphinx.frontend.Signal
      extended byedu.cmu.sphinx.frontend.DataEndSignal
All Implemented Interfaces:
Data

public class DataEndSignal
extends Signal

A signal that indicates the end of data.

See Also:
Data, DataProcessor, Signal

Constructor Summary
DataEndSignal(long duration)
          Constructs a DataEndSignal.
DataEndSignal(long duration, long time)
          Constructs a DataEndSignal with the given creation time.
 
Method Summary
 long getDuration()
          Returns the duration of the entire data stream in milliseconds
 java.lang.String toString()
          Returns the string "DataEndSignal".
 
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

DataEndSignal

public DataEndSignal(long duration)
Constructs a DataEndSignal.

Parameters:
duration - the duration of the entire data stream in milliseconds

DataEndSignal

public DataEndSignal(long duration,
                     long time)
Constructs a DataEndSignal with the given creation time.

Parameters:
duration - the duration of the entire data stream in milliseconds
time - the creation time of the DataEndSignal
Method Detail

getDuration

public long getDuration()
Returns the duration of the entire data stream in milliseconds

Returns:
the duration of the entire data stream in milliseconds

toString

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

Returns:
the string "DataEndSignal"