|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jflux.api.core.util.DefaultNotifier<org.jflux.api.core.playable.Playable.PlayState>
org.robokind.api.speech.utils.DefaultSpeechJob
public class DefaultSpeechJob
Field Summary | |
---|---|
static int |
CANCELED
The speech job has been canceled. |
static int |
COMPLETE
The robot has finished speaking. |
static int |
PENDING
Waiting for robot to begin speaking. |
static int |
RUNNING
The robot is speaking. |
Fields inherited from class org.jflux.api.core.util.DefaultNotifier |
---|
myListeners |
Method Summary | |
---|---|
void |
cancel()
Stops the speech. |
long |
getSpeechJobId()
Returns a unique id for this SpeechJob. |
String |
getSpeechText()
Returns the text being spoken. |
long |
getStartTime()
Returns the time the speech was queued. |
int |
getStatus()
Returns the current status of the speech job. |
void |
setStatus(int status)
|
void |
waitForSpeech()
Halts execution until the speech is complete. |
Methods inherited from class org.jflux.api.core.util.DefaultNotifier |
---|
addListener, notifyListeners, removeListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jflux.api.core.Notifier |
---|
addListener, notifyListeners, removeListener |
Field Detail |
---|
public static final int PENDING
public static final int RUNNING
public static final int COMPLETE
public static final int CANCELED
Method Detail |
---|
public long getSpeechJobId()
getSpeechJobId
in interface SpeechJob
public String getSpeechText()
getSpeechText
in interface SpeechJob
public long getStartTime()
getStartTime
in interface SpeechJob
public int getStatus()
getStatus
in interface SpeechJob
public void setStatus(int status)
setStatus
in interface SpeechJob
public void cancel()
public void waitForSpeech()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |