org.mobicents.media
Interface Component

All Superinterfaces:
Serializable
All Known Subinterfaces:
DtmfDetector, DtmfDetector, DtmfGenerator, MediaSink, MediaSource, MultimediaResourceGroup, Player, Player, Recorder, ResourceGroup, TTSEngine

public interface Component
extends Serializable

Component is an Object that is responsible for any media data processing. Examples of components are the audio player, recoder, DTMF detector, etc. The Component is a supper class for all media processing components.

Author:
kulikov

Method Summary
 String getId()
          Gets the unique identifier of this component.
<T> T
getInterface(Class<T> interfaceType)
          This method returns proper interface.
 String getName()
          Gets the name of the component.
 void reset()
          Resets component to its original state.
 

Method Detail

getId

String getId()
Gets the unique identifier of this component.

Returns:

getName

String getName()
Gets the name of the component. The component of same type can share same name.

Returns:
name of this component;

reset

void reset()
Resets component to its original state. This methods cleans transmission statistics and any assigned formats


getInterface

<T> T getInterface(Class<T> interfaceType)
This method returns proper interface. Returns concrete object if implementing this interface if this sink supports interface contract. In general case it may return this

Type Parameters:
T -
Parameters:
interfaceType -
Returns:


Copyright © 2011. All Rights Reserved.