org.mobicents.media.server.impl.resource.dtmf
Class DtmfBuffer

java.lang.Object
  extended by org.mobicents.media.server.impl.resource.dtmf.DtmfBuffer
All Implemented Interfaces:
Serializable

public class DtmfBuffer
extends Object
implements Serializable

Implements digit buffer.

Author:
Oifa Yulian
See Also:
Serialized Form

Field Summary
 int interdigitInterval
           
 
Constructor Summary
DtmfBuffer(DetectorImpl detector)
          Constructs new instance of this buffer.
 
Method Summary
 void clear()
          Clears buffer content
 void flush()
          Flushes the buffer content.
 int getInterdigitInterval()
          Gets the current inter digit interval
 void push(String symbol)
          Handles inter digit intervals.
protected  void queue(DtmfEventImpl evt)
          Queues specified event.
 void setInterdigitInterval(int silence)
          Modifies the inter digit interval.
 void updateTime()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

interdigitInterval

public int interdigitInterval
Constructor Detail

DtmfBuffer

public DtmfBuffer(DetectorImpl detector)
Constructs new instance of this buffer.

Parameters:
detector - tone detector
Method Detail

setInterdigitInterval

public void setInterdigitInterval(int silence)
Modifies the inter digit interval.

Parameters:
silence - the interval measured in milliseconds

getInterdigitInterval

public int getInterdigitInterval()
Gets the current inter digit interval

Returns:
the time measured in milliseconds.

push

public void push(String symbol)
Handles inter digit intervals.

Parameters:
symbol - received digit.

updateTime

public void updateTime()

queue

protected void queue(DtmfEventImpl evt)
Queues specified event.

Parameters:
evt - the event to be queued.

flush

public void flush()
Flushes the buffer content.


clear

public void clear()
Clears buffer content



Copyright © 2012 TeleStax, Inc.. All Rights Reserved.