|
sdr 0.7 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.cscott.sdr.CommandInput.PossibleCommand
public abstract static class CommandInput.PossibleCommand
A CommandInput.PossibleCommand
is an Apply
corresponding to
the most likely interpretation of the user's input. If this
Apply
is inapplicable to the given formation, we can
use the next()
method to get the
next-most-likely interpretation of the input, and try that
before giving up and complaining to the user.
Field Summary | |
---|---|
static String |
UNCLEAR_UTTERANCE
A distinguished string used to indicate an error condition. |
Constructor Summary | |
---|---|
CommandInput.PossibleCommand()
|
Method Summary | |
---|---|
Apply |
getApply(DanceProgram dp)
Return the parsed command possibility; throwing BadCallException if there is a problem with the parse. |
abstract long |
getEndTime()
Return the time the user input was complete, in milliseconds since the epoch. |
abstract CommandInput.InputMode |
getMode()
The mode used for this input. |
abstract long |
getStartTime()
Return the time the user input began, in milliseconds since the epoch. |
abstract String |
getUserInput()
Return the raw user input, or UNCLEAR_UTTERANCE if
the input mechanism wasn't able to decipher the input. |
Iterator<CommandInput.PossibleCommand> |
iterator()
|
abstract CommandInput.PossibleCommand |
next()
Return the next possible command, or null if there are no more. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String UNCLEAR_UTTERANCE
Constructor Detail |
---|
public CommandInput.PossibleCommand()
Method Detail |
---|
public abstract String getUserInput()
UNCLEAR_UTTERANCE
if
the input mechanism wasn't able to decipher the input.
public abstract CommandInput.InputMode getMode()
public abstract long getStartTime()
public abstract long getEndTime()
public abstract CommandInput.PossibleCommand next()
public final Apply getApply(DanceProgram dp) throws BadCallException
BadCallException
if there is a problem with the parse.
BadCallException
public final Iterator<CommandInput.PossibleCommand> iterator()
iterator
in interface Iterable<CommandInput.PossibleCommand>
|
sdr 0.7 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |