org.jvoicexml.jndi
Class CharacterInputSkeleton

java.lang.Object
  extended by java.rmi.server.RemoteObject
      extended by java.rmi.server.RemoteServer
          extended by java.rmi.server.UnicastRemoteObject
              extended by org.jvoicexml.jndi.CharacterInputSkeleton
All Implemented Interfaces:
Serializable, Remote, RemoteCharacterInput, Skeleton

public final class CharacterInputSkeleton
extends UnicastRemoteObject
implements RemoteCharacterInput, Skeleton

Skeleton for the CharacterInput.

Since:
0.5
Version:
$Revision: 216 $

Copyright © 2006-2007 JVoiceXML group - http://jvoicexml.sourceforge.net/

Author:
Dirk Schnelle
See Also:
CharacterInput, Serialized Form

Field Summary
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
CharacterInputSkeleton()
          Constructs a new object.
CharacterInputSkeleton(String id, CharacterInput characterInput)
          Constructs a new object.
 
Method Summary
 void addCharacter(char dtmf)
          The user entered a DTMF.
 String getSkeletonName()
          Retrieves the name to which the skeleton is bound.
 void startRecognition()
          Detects and reports character and/or spoken input simultaneously.
 void stopRecognition()
          Stops a previously started recognition.
 
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, unexportObject
 
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
 
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStub
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CharacterInputSkeleton

public CharacterInputSkeleton()
                       throws RemoteException
Constructs a new object.

Throws:
RemoteException - Error creating the skeleton.

CharacterInputSkeleton

public CharacterInputSkeleton(String id,
                              CharacterInput characterInput)
                       throws RemoteException
Constructs a new object.

Parameters:
id - The session ID.
characterInput - The character input device.
Throws:
RemoteException - Error creating the skeleton.
Method Detail

addCharacter

public void addCharacter(char dtmf)
                  throws RemoteException
The user entered a DTMF.

Specified by:
addCharacter in interface RemoteCharacterInput
Parameters:
dtmf - Entered DTMF.
Throws:
RemoteException - Error in remote procedure call.

startRecognition

public void startRecognition()
                      throws RemoteException
Detects and reports character and/or spoken input simultaneously.

Specified by:
startRecognition in interface RemoteCharacterInput
Throws:
RemoteException - Error in remote procedure call.

stopRecognition

public void stopRecognition()
                     throws RemoteException
Stops a previously started recognition.

Specified by:
stopRecognition in interface RemoteCharacterInput
Throws:
RemoteException - Error in remote procedure call.
See Also:
RemoteCharacterInput.startRecognition()

getSkeletonName

public String getSkeletonName()
                       throws RemoteException
Retrieves the name to which the skeleton is bound.

Specified by:
getSkeletonName in interface Skeleton
Returns:
Name of the skeleton.
Throws:
RemoteException - Error calling the remote method.


Copyright © 2005-2007 JVoiceXML group.