|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.robokind.api.common.playable.AbstractPlayable
org.robokind.api.messaging.services.DefaultServiceClient<Conf>
org.robokind.api.speechrec.messaging.RemoteSpeechRecServiceClient<Conf>
public class RemoteSpeechRecServiceClient<Conf>
Connects to a remote SpeechRecService through Messaging components.
| Field Summary |
|---|
| Fields inherited from class org.robokind.api.common.playable.AbstractPlayable |
|---|
myElapsedPauseTime, myPauseTime, myPlayableListeners, myPlayState, myResumeTime, myStartTime, myStopTime |
| Fields inherited from interface org.robokind.api.speechrec.SpeechRecService |
|---|
PROP_ID |
| Constructor Summary | |
|---|---|
RemoteSpeechRecServiceClient(Class<Conf> configClass,
String speechRecServiceId,
String remoteId,
MessageSender<ServiceCommand> commandSender,
MessageSender<Conf> configSender,
MessageAsyncReceiver<ServiceError> errorReceiver,
ServiceCommandFactory commandFactory,
MessageAsyncReceiver<SpeechRecEventList> speechRecReceiver)
Creates a new RemoteSpeechRecServiceClients. |
|
| Method Summary | |
|---|---|
void |
addSpeechRecListener(org.jflux.api.core.util.Listener<SpeechRecEventList> listener)
Adds a Listener to be notified when an image is received. |
String |
getSpeechRecServiceId()
Returns the ImageService Id. |
boolean |
onComplete(long time)
|
boolean |
onPause(long time)
|
boolean |
onResume(long time)
|
boolean |
onStart(long time)
|
boolean |
onStop(long time)
|
void |
removeSpeechRecListener(org.jflux.api.core.util.Listener<SpeechRecEventList> listener)
Removes a Listener from being notified when an image is received. |
void |
setSpeechRecReceiver(MessageAsyncReceiver<SpeechRecEventList> receiver)
|
void |
start()
Starts the ImageService. |
void |
stop()
Stops the ImageService. |
| Methods inherited from class org.robokind.api.messaging.services.DefaultServiceClient |
|---|
getClientId, getHostId, initialize, send, setCommandFactory, setCommandSender, setConfigSender, setErrorReceiver |
| Methods inherited from class org.robokind.api.common.playable.AbstractPlayable |
|---|
addPlayableListener, afterComplete, complete, firePlayStateChanged, getElapsedPauseTime, getElapsedPlayTime, getPauseTime, getPlayState, getResumeTime, getStartTime, getStopTime, pause, removePlayableListener, resume, start, stop |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.robokind.api.common.playable.Playable |
|---|
addPlayableListener, complete, getElapsedPauseTime, getElapsedPlayTime, getPauseTime, getPlayState, getResumeTime, getStartTime, getStopTime, pause, removePlayableListener, resume, start, stop |
| Constructor Detail |
|---|
public RemoteSpeechRecServiceClient(Class<Conf> configClass,
String speechRecServiceId,
String remoteId,
MessageSender<ServiceCommand> commandSender,
MessageSender<Conf> configSender,
MessageAsyncReceiver<ServiceError> errorReceiver,
ServiceCommandFactory commandFactory,
MessageAsyncReceiver<SpeechRecEventList> speechRecReceiver)
start() to start the service.
configClass - speechRecServiceId - remoteId - commandSender - configSender - errorReceiver - commandFactory - speechRecReceiver - | Method Detail |
|---|
public String getSpeechRecServiceId()
SpeechRecService
getSpeechRecServiceId in interface SpeechRecServicepublic void start()
SpeechRecService
start in interface SpeechRecServicepublic void stop()
SpeechRecService
stop in interface SpeechRecServicepublic boolean onComplete(long time)
onComplete in class DefaultServiceClient<Conf>public boolean onPause(long time)
onPause in class DefaultServiceClient<Conf>public boolean onResume(long time)
onResume in class DefaultServiceClient<Conf>public boolean onStart(long time)
onStart in class DefaultServiceClient<Conf>public boolean onStop(long time)
onStop in class DefaultServiceClient<Conf>public void setSpeechRecReceiver(MessageAsyncReceiver<SpeechRecEventList> receiver)
public void addSpeechRecListener(org.jflux.api.core.util.Listener<SpeechRecEventList> listener)
SpeechRecService
addSpeechRecListener in interface SpeechRecServicelistener - the Listener to be notifiedpublic void removeSpeechRecListener(org.jflux.api.core.util.Listener<SpeechRecEventList> listener)
SpeechRecService
removeSpeechRecListener in interface SpeechRecServicelistener - the Listener to remove
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||