|
||||||||||
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,
org.robokind.api.messaging.MessageSender<org.robokind.api.messaging.services.ServiceCommand> commandSender,
org.robokind.api.messaging.MessageSender<Conf> configSender,
org.robokind.api.messaging.MessageAsyncReceiver<org.robokind.api.messaging.services.ServiceError> errorReceiver,
org.robokind.api.messaging.services.ServiceCommandFactory commandFactory,
org.robokind.api.messaging.MessageAsyncReceiver<SpeechRecEventList> speechRecReceiver)
Creates a new RemoteSpeechRecServiceClients. |
Method Summary | |
---|---|
void |
addSpeechRecListener(org.jflux.api.core.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.Listener<SpeechRecEventList> listener)
Removes a Listener from being notified when an image is received. |
void |
setSpeechRecReceiver(org.robokind.api.messaging.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, org.robokind.api.messaging.MessageSender<org.robokind.api.messaging.services.ServiceCommand> commandSender, org.robokind.api.messaging.MessageSender<Conf> configSender, org.robokind.api.messaging.MessageAsyncReceiver<org.robokind.api.messaging.services.ServiceError> errorReceiver, org.robokind.api.messaging.services.ServiceCommandFactory commandFactory, org.robokind.api.messaging.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 SpeechRecService
public void start()
SpeechRecService
start
in interface SpeechRecService
public void stop()
SpeechRecService
stop
in interface SpeechRecService
public boolean onComplete(long time)
onComplete
in class org.robokind.api.messaging.services.DefaultServiceClient<Conf>
public boolean onPause(long time)
onPause
in class org.robokind.api.messaging.services.DefaultServiceClient<Conf>
public boolean onResume(long time)
onResume
in class org.robokind.api.messaging.services.DefaultServiceClient<Conf>
public boolean onStart(long time)
onStart
in class org.robokind.api.messaging.services.DefaultServiceClient<Conf>
public boolean onStop(long time)
onStop
in class org.robokind.api.messaging.services.DefaultServiceClient<Conf>
public void setSpeechRecReceiver(org.robokind.api.messaging.MessageAsyncReceiver<SpeechRecEventList> receiver)
public void addSpeechRecListener(org.jflux.api.core.Listener<SpeechRecEventList> listener)
SpeechRecService
addSpeechRecListener
in interface SpeechRecService
listener
- the Listener to be notifiedpublic void removeSpeechRecListener(org.jflux.api.core.Listener<SpeechRecEventList> listener)
SpeechRecService
removeSpeechRecListener
in interface SpeechRecService
listener
- the Listener to remove
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |