org.mobicents.media.server.impl.resource.test
Class SineGenerator

java.lang.Object
  extended by org.mobicents.media.server.impl.BaseComponent
      extended by org.mobicents.media.server.impl.AbstractSource
          extended by org.mobicents.media.server.impl.resource.test.SineGenerator
All Implemented Interfaces:
java.io.Serializable, java.lang.Runnable, org.mobicents.media.Component, org.mobicents.media.MediaSource

public class SineGenerator
extends AbstractSource
implements java.lang.Runnable

Author:
Oleg Kulikov
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.mobicents.media.server.impl.AbstractSource
otherParty
 
Fields inherited from interface org.mobicents.media.Component
AUDIO_PLAYER, AUDIO_RECORDER, DTMF_DETECTOR, DTMF_GENERATOR
 
Constructor Summary
SineGenerator(org.mobicents.media.server.spi.Endpoint endpoint, java.lang.String name)
          Creates a new instance of Generator
 
Method Summary
 void ended()
           
 short getAmplitude()
           
 org.mobicents.media.Format[] getFormats()
           
 int getFrequency()
           
 void run()
           
 void setAmplitude(short A)
           
 void setFrequency(int f)
           
 void start()
           
 void started()
           
 void stop()
           
 
Methods inherited from class org.mobicents.media.server.impl.AbstractSource
connect, disconnect, isConnected
 
Methods inherited from class org.mobicents.media.server.impl.BaseComponent
addListener, getConnection, getEndpoint, getId, getName, getResourceType, removeListener, sendEvent, setConnection, setEndpoint, setResourceType, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.mobicents.media.Component
addListener, getConnection, getEndpoint, getId, getName, getResourceType, removeListener, setConnection, setEndpoint, setResourceType
 

Constructor Detail

SineGenerator

public SineGenerator(org.mobicents.media.server.spi.Endpoint endpoint,
                     java.lang.String name)
Creates a new instance of Generator

Method Detail

setAmplitude

public void setAmplitude(short A)

getAmplitude

public short getAmplitude()

setFrequency

public void setFrequency(int f)

getFrequency

public int getFrequency()

start

public void start()
Specified by:
start in interface org.mobicents.media.MediaSource

stop

public void stop()
Specified by:
stop in interface org.mobicents.media.MediaSource

run

public void run()
Specified by:
run in interface java.lang.Runnable

getFormats

public org.mobicents.media.Format[] getFormats()
Specified by:
getFormats in interface org.mobicents.media.MediaSource

started

public void started()

ended

public void ended()


Copyright © 2009. All Rights Reserved.