org.robokind.impl.speech
Class JMSSpeechRequestSender

java.lang.Object
  extended by org.robokind.api.messaging.DefaultMessageSender<Msg,Rec,L>
      extended by org.robokind.impl.messaging.JMSMessageSender<org.robokind.api.speech.SpeechRequest,org.robokind.avrogen.speech.SpeechRequestRecord,org.robokind.api.common.utils.Listener<org.robokind.api.speech.SpeechRequest>>
          extended by org.robokind.impl.speech.JMSSpeechRequestSender
All Implemented Interfaces:
org.robokind.api.messaging.MessageSender<org.robokind.api.speech.SpeechRequest,org.robokind.avrogen.speech.SpeechRequestRecord,org.robokind.api.common.utils.Listener<org.robokind.api.speech.SpeechRequest>>

public class JMSSpeechRequestSender
extends org.robokind.impl.messaging.JMSMessageSender<org.robokind.api.speech.SpeechRequest,org.robokind.avrogen.speech.SpeechRequestRecord,org.robokind.api.common.utils.Listener<org.robokind.api.speech.SpeechRequest>>

JMSMessageSender for sending SpeechRequests.

Author:
Matthew Stevenson

Nested Class Summary
static class JMSSpeechRequestSender.SpeechRequestAdapter
          Converts a SpeechRequest to a SpeechRequestRecord to be sent.
 
Field Summary
 
Fields inherited from class org.robokind.api.messaging.DefaultMessageSender
myRecordSender
 
Constructor Summary
JMSSpeechRequestSender(javax.jms.Session session, javax.jms.Destination destination)
           
 
Method Summary
 void sendSpeechRequest(String text)
          Creates and sends a SpeechRequest from the given text.
 void setDestinationId(String destId)
           
 void setSourceId(String sourceId)
           
 
Methods inherited from class org.robokind.impl.messaging.JMSMessageSender
start, stop
 
Methods inherited from class org.robokind.api.messaging.DefaultMessageSender
addMessageListener, fireMessageEvent, removeMessageListener, sendMessage, setAdapter, setRecordSender
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JMSSpeechRequestSender

public JMSSpeechRequestSender(javax.jms.Session session,
                              javax.jms.Destination destination)
Method Detail

setSourceId

public void setSourceId(String sourceId)

setDestinationId

public void setDestinationId(String destId)

sendSpeechRequest

public void sendSpeechRequest(String text)
Creates and sends a SpeechRequest from the given text.

Parameters:
text - the text to speak


Copyright © 2011. All Rights Reserved.