org.jvoicexml.implementation.mrcpv2
Class Mrcpv2SynthesizedOutputFactory

java.lang.Object
  extended by org.jvoicexml.implementation.mrcpv2.Mrcpv2SynthesizedOutputFactory
All Implemented Interfaces:
ResourceFactory<SynthesizedOutput>

public final class Mrcpv2SynthesizedOutputFactory
extends Object
implements ResourceFactory<SynthesizedOutput>

Implementation of a ResourceFactory for the SynthesizedOuput based on MRCPv2.

Since:
0.7
Version:
$Revision: 2355 $
Author:
Spencer Lord, Dirk Schnelle-Walka

Constructor Summary
Mrcpv2SynthesizedOutputFactory()
          Constructs a new object.
 
Method Summary
 SynthesizedOutput createResource()
          
 int getBasePort()
           
 int getInstances()
          
 Class<SynthesizedOutput> getResourceType()
          
 org.speechforge.cairo.client.SessionManager getSessionManager()
          Retrieves the session manager.
 String getType()
          
 void setBasePort(int port)
          Sets the base port.
 void setInstances(int number)
          Sets the number of instances that this factory will create.
 void setSessionManager(org.speechforge.cairo.client.SessionManager manager)
          Sets the session manager.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Mrcpv2SynthesizedOutputFactory

public Mrcpv2SynthesizedOutputFactory()
Constructs a new object.

Method Detail

createResource

public SynthesizedOutput createResource()
                                 throws NoresourceError

Specified by:
createResource in interface ResourceFactory<SynthesizedOutput>
Throws:
NoresourceError

setInstances

public void setInstances(int number)
Sets the number of instances that this factory will create.

Parameters:
number - Number of instances to create.

getInstances

public int getInstances()

Specified by:
getInstances in interface ResourceFactory<SynthesizedOutput>

getType

public String getType()

Specified by:
getType in interface ResourceFactory<SynthesizedOutput>

getResourceType

public Class<SynthesizedOutput> getResourceType()

Specified by:
getResourceType in interface ResourceFactory<SynthesizedOutput>

getBasePort

public int getBasePort()
Returns:
the basePort

setBasePort

public void setBasePort(int port)
Sets the base port.

Parameters:
port - the base port to set

getSessionManager

public org.speechforge.cairo.client.SessionManager getSessionManager()
Retrieves the session manager.

Returns:
the session manager

setSessionManager

public void setSessionManager(org.speechforge.cairo.client.SessionManager manager)
Sets the session manager.

Parameters:
manager - the session manager


Copyright © 2008-2010JVoiceXML group.